v8::Local<v8::Function> V8DOMWrapper::constructorForType(WrapperTypeInfo* type, WorkerContext*) { WorkerScriptController* controller = WorkerScriptController::controllerForContext(); WorkerContextExecutionProxy* proxy = controller ? controller->proxy() : 0; return proxy ? proxy->perContextData()->constructorForType(type) : v8::Local<v8::Function>(); }
V8BindingPerContextData* V8DOMWrapper::perContextData(WorkerContext*) { WorkerScriptController* controller = WorkerScriptController::controllerForContext(); WorkerContextExecutionProxy* proxy = controller ? controller->proxy() : 0; return proxy ? proxy->perContextData() : 0; }