Searched defs:globalObject (Results 76 - 100 of 160) sorted by relevance

1234567

/external/webkit/Source/WebCore/bindings/js/
H A DJSDocumentCustom.cpp73 JSLocation* jsLocation = new (exec) JSLocation(getDOMStructure<JSLocation>(exec, globalObject()), globalObject(), location);
97 JSValue toJS(ExecState* exec, JSDOMGlobalObject* globalObject, Document* document) argument
107 wrapper = CREATE_DOM_NODE_WRAPPER(exec, globalObject, HTMLDocument, document);
110 wrapper = CREATE_DOM_NODE_WRAPPER(exec, globalObject, SVGDocument, document);
113 wrapper = CREATE_DOM_NODE_WRAPPER(exec, globalObject, Document, document);
H A DJSInjectedScriptManager.cpp55 JSDOMGlobalObject* globalObject = static_cast<JSDOMGlobalObject*>(scriptState->lexicalGlobalObject()); local
57 Completion comp = JSMainThreadExecState::evaluate(scriptState, globalObject->globalScopeChain(), sourceCode, globalThisValue);
67 args.append(toJS(scriptState, globalObject, m_injectedScriptHost.get()));
78 JSDOMGlobalObject* globalObject = static_cast<JSDOMGlobalObject*>(scriptState->lexicalGlobalObject()); local
79 globalObject->setInjectedScript(0);
85 JSDOMGlobalObject* globalObject = static_cast<JSDOMGlobalObject*>(scriptState->lexicalGlobalObject()); local
86 JSObject* injectedScript = globalObject->injectedScript();
94 globalObject->setInjectedScript(injectedScriptObject.second.jsObject());
H A DJSDOMGlobalObject.h58 JSDOMGlobalObject* globalObject() { return this; } function in class:WebCore::JSDOMGlobalObject
87 inline JSC::JSObject* getDOMConstructor(JSC::ExecState* exec, const JSDOMGlobalObject* globalObject) argument
89 if (JSC::JSObject* constructor = const_cast<JSDOMGlobalObject*>(globalObject)->constructors().get(&ConstructorClass::s_info).get())
91 JSC::JSObject* constructor = new (exec) ConstructorClass(exec, const_cast<JSDOMGlobalObject*>(globalObject));
92 ASSERT(!const_cast<JSDOMGlobalObject*>(globalObject)->constructors().contains(&ConstructorClass::s_info));
94 const_cast<JSDOMGlobalObject*>(globalObject)->constructors().add(&ConstructorClass::s_info, temp).first->second.set(exec->globalData(), globalObject, constructor);
H A DJSDataViewCustom.cpp45 JSValue toJS(ExecState* exec, JSDOMGlobalObject* globalObject, DataView* object) argument
47 return wrap<JSDataView>(exec, globalObject, object);
62 return JSValue::encode(asObject(toJS(exec, jsConstructor->globalObject(), view.get())));
H A DJSHTMLCollectionCustom.cpp48 return toJS(exec, collection->globalObject(), namedItems[0].get());
53 return toJS(exec, collection->globalObject(), StaticNodeList::adopt(namedItems).get());
75 return JSValue::encode(toJS(exec, jsCollection->globalObject(), collection->item(index)));
90 return JSValue::encode(toJS(exec, jsCollection->globalObject(), node));
123 return toJS(exec, globalObject(), impl()->item(index));
132 JSValue toJS(ExecState* exec, JSDOMGlobalObject* globalObject, HTMLCollection* collection) argument
144 wrapper = CREATE_DOM_OBJECT_WRAPPER(exec, globalObject, HTMLOptionsCollection, collection);
147 wrapper = CREATE_DOM_OBJECT_WRAPPER(exec, globalObject, HTMLAllCollection, collection);
150 wrapper = CREATE_DOM_OBJECT_WRAPPER(exec, globalObject, HTMLCollection, collection);
H A DJSNamedNodeMapCustom.cpp96 JSC::JSValue toJS(JSC::ExecState* exec, JSDOMGlobalObject* globalObject, NamedNodeMap* impl) argument
98 return wrap<JSNamedNodeMap>(exec, globalObject, impl);
H A DJSNodeCustom.cpp248 static ALWAYS_INLINE JSValue createWrapperInline(ExecState* exec, JSDOMGlobalObject* globalObject, Node* node) argument
257 wrapper = createJSHTMLWrapper(exec, globalObject, toHTMLElement(node));
260 wrapper = createJSSVGWrapper(exec, globalObject, static_cast<SVGElement*>(node));
263 wrapper = CREATE_DOM_NODE_WRAPPER(exec, globalObject, Element, node);
266 wrapper = CREATE_DOM_NODE_WRAPPER(exec, globalObject, Attr, node);
269 wrapper = CREATE_DOM_NODE_WRAPPER(exec, globalObject, Text, node);
272 wrapper = CREATE_DOM_NODE_WRAPPER(exec, globalObject, CDATASection, node);
275 wrapper = CREATE_DOM_NODE_WRAPPER(exec, globalObject, Entity, node);
278 wrapper = CREATE_DOM_NODE_WRAPPER(exec, globalObject, ProcessingInstruction, node);
281 wrapper = CREATE_DOM_NODE_WRAPPER(exec, globalObject, Commen
305 createWrapper(ExecState* exec, JSDOMGlobalObject* globalObject, Node* node) argument
310 toJSNewlyCreated(ExecState* exec, JSDOMGlobalObject* globalObject, Node* node) argument
[all...]
H A DJSNodeListCustom.cpp72 JSC::JSValue toJS(JSC::ExecState* exec, JSDOMGlobalObject* globalObject, NodeList* impl) argument
74 return wrap<JSNodeList>(exec, globalObject, impl);
H A DScheduledAction.cpp90 void ScheduledAction::executeFunctionInContext(JSGlobalObject* globalObject, JSValue thisValue, ScriptExecutionContext* context) argument
100 ExecState* exec = globalObject->globalExec();
107 globalObject->globalData().timeoutChecker.start();
112 globalObject->globalData().timeoutChecker.stop();
/external/webkit/Source/WebCore/bindings/scripts/test/JS/
H A DJSTestCallback.cpp38 JSTestCallback::JSTestCallback(JSObject* callback, JSDOMGlobalObject* globalObject) argument
39 : ActiveDOMCallback(globalObject->scriptExecutionContext())
40 , m_data(new JSCallbackData(callback, globalObject))
69 ExecState* exec = m_data->globalObject()->globalExec();
86 ExecState* exec = m_data->globalObject()->globalExec();
104 ExecState* exec = m_data->globalObject()->globalExec();
123 ExecState* exec = m_data->globalObject()->globalExec();
/external/webkit/Source/JavaScriptCore/API/
H A DJSContextRef.cpp96 JSGlobalObject* globalObject = new (globalData.get()) JSGlobalObject(*globalData); local
97 return JSGlobalContextRetain(toGlobalRef(globalObject->globalExec()));
100 JSGlobalObject* globalObject = new (globalData.get()) JSCallbackObject<JSGlobalObject>(*globalData, globalObjectClass, JSCallbackObject<JSGlobalObject>::createStructure(*globalData, jsNull())); local
101 ExecState* exec = globalObject->globalExec();
105 globalObject->resetPrototype(*globalData, prototype);
/external/webkit/Source/JavaScriptCore/debugger/
H A DDebugger.cpp81 ExecState* exec = function->scope()->globalObject->JSGlobalObject::globalExec();
83 if (m_debugger == function->scope()->globalObject->debugger())
98 void Debugger::attach(JSGlobalObject* globalObject) argument
100 ASSERT(!globalObject->debugger());
101 globalObject->setDebugger(this);
102 m_globalObjects.add(globalObject);
105 void Debugger::detach(JSGlobalObject* globalObject) argument
107 ASSERT(m_globalObjects.contains(globalObject));
108 m_globalObjects.remove(globalObject);
109 globalObject
124 evaluateInGlobalCallFrame(const UString& script, JSValue& exception, JSGlobalObject* globalObject) argument
[all...]
/external/webkit/Source/JavaScriptCore/runtime/
H A DExceptionHelpers.cpp83 JSObject* createStackOverflowError(JSGlobalObject* globalObject) argument
85 return createRangeError(globalObject, "Maximum call stack size exceeded.");
135 JSObject* createOutOfMemoryError(JSGlobalObject* globalObject) argument
137 return createError(globalObject, "Out of memory");
H A DFunctionConstructor.cpp40 FunctionConstructor::FunctionConstructor(ExecState* exec, JSGlobalObject* globalObject, Structure* structure, FunctionPrototype* functionPrototype) argument
41 : InternalFunction(&exec->globalData(), globalObject, structure, Identifier(exec, functionPrototype->classInfo()->className))
52 return JSValue::encode(constructFunction(exec, asInternalFunction(exec->callee())->globalObject(), args));
64 return JSValue::encode(constructFunction(exec, asInternalFunction(exec->callee())->globalObject(), args));
75 JSObject* constructFunction(ExecState* exec, JSGlobalObject* globalObject, const ArgList& args, const Identifier& functionName, const UString& sourceURL, int lineNumber) argument
99 JSGlobalData& globalData = globalObject->globalData();
108 ScopeChainNode* scopeChain = new (exec) ScopeChainNode(0, globalObject, &globalData, globalObject, exec->globalThisValue());
113 JSObject* constructFunction(ExecState* exec, JSGlobalObject* globalObject, const ArgList& args) argument
115 return constructFunction(exec, globalObject, arg
[all...]
H A DFunctionPrototype.cpp40 FunctionPrototype::FunctionPrototype(ExecState* exec, JSGlobalObject* globalObject, Structure* structure) argument
41 : InternalFunction(&exec->globalData(), globalObject, structure, exec->propertyNames().nullIdentifier)
46 void FunctionPrototype::addFunctionProperties(ExecState* exec, JSGlobalObject* globalObject, Structure* functionStructure, JSFunction** callFunction, JSFunction** applyFunction) argument
48 putDirectFunctionWithoutTransition(exec, new (exec) JSFunction(exec, globalObject, functionStructure, 0, exec->propertyNames().toString, functionProtoFuncToString), DontEnum);
49 *applyFunction = new (exec) JSFunction(exec, globalObject, functionStructure, 2, exec->propertyNames().apply, functionProtoFuncApply);
51 *callFunction = new (exec) JSFunction(exec, globalObject, functionStructure, 1, exec->propertyNames().call, functionProtoFuncCall);
H A DNumberConstructor.cpp57 NumberConstructor::NumberConstructor(ExecState* exec, JSGlobalObject* globalObject, Structure* structure, NumberPrototype* numberPrototype) argument
58 : InternalFunction(&exec->globalData(), globalObject, structure, Identifier(exec, numberPrototype->s_info.className))
107 NumberObject* object = new (exec) NumberObject(exec->globalData(), asInternalFunction(exec->callee())->globalObject()->numberObjectStructure());
H A DObjectPrototype.cpp43 ObjectPrototype::ObjectPrototype(ExecState* exec, JSGlobalObject* globalObject, Structure* stucture, Structure* functionStructure) argument
47 putDirectFunctionWithoutTransition(exec, new (exec) JSFunction(exec, globalObject, functionStructure, 0, exec->propertyNames().toString, objectProtoFuncToString), DontEnum);
48 putDirectFunctionWithoutTransition(exec, new (exec) JSFunction(exec, globalObject, functionStructure, 0, exec->propertyNames().toLocaleString, objectProtoFuncToLocaleString), DontEnum);
49 putDirectFunctionWithoutTransition(exec, new (exec) JSFunction(exec, globalObject, functionStructure, 0, exec->propertyNames().valueOf, objectProtoFuncValueOf), DontEnum);
50 putDirectFunctionWithoutTransition(exec, new (exec) JSFunction(exec, globalObject, functionStructure, 1, exec->propertyNames().hasOwnProperty, objectProtoFuncHasOwnProperty), DontEnum);
51 putDirectFunctionWithoutTransition(exec, new (exec) JSFunction(exec, globalObject, functionStructure, 1, exec->propertyNames().propertyIsEnumerable, objectProtoFuncPropertyIsEnumerable), DontEnum);
52 putDirectFunctionWithoutTransition(exec, new (exec) JSFunction(exec, globalObject, functionStructure, 1, exec->propertyNames().isPrototypeOf, objectProtoFuncIsPrototypeOf), DontEnum);
55 putDirectFunctionWithoutTransition(exec, new (exec) JSFunction(exec, globalObject, functionStructure, 2, exec->propertyNames().__defineGetter__, objectProtoFuncDefineGetter), DontEnum);
56 putDirectFunctionWithoutTransition(exec, new (exec) JSFunction(exec, globalObject, functionStructure, 2, exec->propertyNames().__defineSetter__, objectProtoFuncDefineSetter), DontEnum);
57 putDirectFunctionWithoutTransition(exec, new (exec) JSFunction(exec, globalObject, functionStructur
[all...]
H A DDateConstructor.cpp60 DateConstructor::DateConstructor(ExecState* exec, JSGlobalObject* globalObject, Structure* structure, Structure* functionStructure, DatePrototype* datePrototype) argument
61 : InternalFunction(&exec->globalData(), globalObject, structure, Identifier(exec, datePrototype->classInfo()->className))
65 putDirectFunctionWithoutTransition(exec, new (exec) JSFunction(exec, globalObject, functionStructure, 1, exec->propertyNames().parse, dateParse), DontEnum);
66 putDirectFunctionWithoutTransition(exec, new (exec) JSFunction(exec, globalObject, functionStructure, 7, exec->propertyNames().UTC, dateUTC), DontEnum);
67 putDirectFunctionWithoutTransition(exec, new (exec) JSFunction(exec, globalObject, functionStructure, 0, exec->propertyNames().now, dateNow), DontEnum);
73 JSObject* constructDate(ExecState* exec, JSGlobalObject* globalObject, const ArgList& args) argument
124 return new (exec) DateInstance(exec, globalObject->dateStructure(), value);
130 return JSValue::encode(constructDate(exec, asInternalFunction(exec->callee())->globalObject(), args));
H A DError.cpp42 JSObject* createError(JSGlobalObject* globalObject, const UString& message) argument
45 return ErrorInstance::create(&globalObject->globalData(), globalObject->errorStructure(), message);
48 JSObject* createEvalError(JSGlobalObject* globalObject, const UString& message) argument
51 return ErrorInstance::create(&globalObject->globalData(), globalObject->evalErrorConstructor()->errorStructure(), message);
54 JSObject* createRangeError(JSGlobalObject* globalObject, const UString& message) argument
57 return ErrorInstance::create(&globalObject->globalData(), globalObject->rangeErrorConstructor()->errorStructure(), message);
60 JSObject* createReferenceError(JSGlobalObject* globalObject, cons argument
66 createSyntaxError(JSGlobalObject* globalObject, const UString& message) argument
72 createTypeError(JSGlobalObject* globalObject, const UString& message) argument
78 createURIError(JSGlobalObject* globalObject, const UString& message) argument
170 StrictModeTypeErrorFunction(ExecState* exec, JSGlobalObject* globalObject, Structure* structure, const UString& message) argument
[all...]
H A DMathObject.cpp89 MathObject::MathObject(ExecState* exec, JSGlobalObject* globalObject, Structure* structure) argument
90 : JSObjectWithGlobalObject(globalObject, structure)
/external/webkit/Source/WebCore/bridge/
H A Druntime_method.cpp46 RuntimeMethod::RuntimeMethod(ExecState* exec, JSGlobalObject* globalObject, Structure* structure, const Identifier& ident, Bindings::MethodList& m) argument
48 : InternalFunction(&exec->globalData(), globalObject, structure, ident)
H A Druntime_root.cpp64 RootObject* findRootObject(JSGlobalObject* globalObject) argument
68 if ((*it)->globalObject() == globalObject)
78 PassRefPtr<RootObject> RootObject::create(const void* nativeHandle, JSGlobalObject* globalObject) argument
80 return adoptRef(new RootObject(nativeHandle, globalObject));
83 RootObject::RootObject(const void* nativeHandle, JSGlobalObject* globalObject) argument
86 , m_globalObject(globalObject->globalData(), globalObject)
88 ASSERT(globalObject);
166 JSGlobalObject* RootObject::globalObject() cons function in class:JSC::Bindings::RootObject
172 updateGlobalObject(JSGlobalObject* globalObject) argument
[all...]
/external/webkit/Source/JavaScriptCore/API/tests/
H A Dminidom.c47 JSObjectRef globalObject = JSContextGetGlobalObject(context); local
50 JSObjectSetProperty(context, globalObject, printIString, JSObjectMakeFunctionWithCallback(context, printIString, print), kJSPropertyAttributeNone, NULL);
54 JSObjectSetProperty(context, globalObject, node, JSObjectMakeConstructor(context, JSNode_class(context), JSNode_construct), kJSPropertyAttributeNone, NULL);
76 globalObject = 0;
/external/webkit/Source/JavaScriptCore/qt/api/
H A Dqscriptengine.cpp34 The globalObject() is initialized to have properties as described in ECMA-262, Section 15.1.
403 QScriptValue QScriptEngine::globalObject() const function in class:QScriptEngine
405 return QScriptValuePrivate::get(d_ptr->globalObject());
H A Dqscriptengine_p.cpp163 QScriptValuePrivate* QScriptEnginePrivate::globalObject() const function in class:QScriptEnginePrivate
165 JSObjectRef globalObject = JSContextGetGlobalObject(m_context); local
166 return new QScriptValuePrivate(this, globalObject);

Completed in 471 milliseconds

1234567