JSWorkerContextBase::JSWorkerContextBase(JSC::JSGlobalData& globalData, JSC::Structure* structure, PassRefPtr<WorkerContext> impl)
    : JSDOMGlobalObject(globalData, structure, normalWorld(globalData), this)
    , m_impl(impl)
{
    ASSERT(inherits(&s_info));
}
Esempio n. 2
0
JSWorkerGlobalScopeBase::JSWorkerGlobalScopeBase(JSC::VM& vm, JSC::Structure* structure, PassRefPtr<WorkerGlobalScope> impl)
    : JSDOMGlobalObject(vm, structure, &normalWorld(vm), &s_globalObjectMethodTable)
    , m_wrapped(impl)
{
}
JSWorkerContextBase::JSWorkerContextBase(JSC::VM& vm, JSC::Structure* structure, PassRefPtr<WorkerContext> impl)
    : JSDOMGlobalObject(vm, structure, normalWorld(vm))
    , m_impl(impl)
{
}
JSWorkerContextBase::JSWorkerContextBase(JSC::JSGlobalData& globalData, JSC::Structure* structure, PassRefPtr<WorkerContext> impl)
    : JSDOMGlobalObject(globalData, structure, normalWorld(globalData))
    , m_impl(impl)
{
}
Esempio n. 5
0
DOMWrapperWorld* mainThreadNormalWorld()
{
    ASSERT(isMainThread());
    static DOMWrapperWorld* cachedNormalWorld = normalWorld(*JSDOMWindow::commonJSGlobalData());
    return cachedNormalWorld;
}