Searched refs:scriptState (Results 1 - 25 of 31) sorted by relevance

12

/macosx-10.9.5/WebCore-7537.78.1/bindings/js/
H A DScriptObject.cpp47 ScriptObject::ScriptObject(ScriptState* scriptState, JSObject* object) argument
48 : ScriptValue(scriptState->vm(), object)
49 , m_scriptState(scriptState)
53 ScriptObject::ScriptObject(ScriptState* scriptState, const ScriptValue& scriptValue) argument
54 : ScriptValue(scriptState->vm(), scriptValue.jsValue())
55 , m_scriptState(scriptState)
59 static bool handleException(ScriptState* scriptState) argument
61 if (!scriptState->hadException())
64 reportException(scriptState, scriptState
68 set(ScriptState* scriptState, const char* name, const ScriptObject& value) argument
76 set(ScriptState* scriptState, const char* name, InspectorFrontendHost* value) argument
84 set(ScriptState* scriptState, const char* name, InjectedScriptHost* value) argument
93 get(ScriptState* scriptState, const char* name, ScriptObject& value) argument
107 remove(ScriptState* scriptState, const char* name) argument
[all...]
H A DJSInjectedScriptManager.cpp53 ScriptObject InjectedScriptManager::createInjectedScript(const String& source, ScriptState* scriptState, int id) argument
55 JSLockHolder lock(scriptState);
58 JSDOMGlobalObject* globalObject = jsCast<JSDOMGlobalObject*>(scriptState->lexicalGlobalObject());
59 JSValue globalThisValue = scriptState->globalThisValue();
64 evaluationReturnValue = JSMainThreadExecState::evaluate(scriptState, sourceCode, globalThisValue, &evaluationException);
66 JSC::JSLockHolder lock(scriptState);
67 evaluationReturnValue = JSC::evaluate(scriptState, sourceCode, globalThisValue, &evaluationException);
79 args.append(toJS(scriptState, globalObject, m_injectedScriptHost.get()));
83 JSValue result = JSC::call(scriptState, functionValue, callType, callData, globalThisValue, args);
85 return ScriptObject(scriptState, resul
89 canAccessInspectedWindow(ScriptState* scriptState) argument
[all...]
H A DScriptValue.cpp47 bool ScriptValue::getString(ScriptState* scriptState, String& result) const argument
51 JSLockHolder lock(scriptState);
52 if (!m_value.get().getString(scriptState, result))
57 String ScriptValue::toString(ScriptState* scriptState) const
59 String result = m_value.get().toString(scriptState)->value(scriptState);
61 if (scriptState->hadException())
62 scriptState->clearException();
66 bool ScriptValue::isEqual(ScriptState* scriptState, const ScriptValue& anotherValue) const argument
71 return JSValueIsEqual(toRef(scriptState), toRe
101 serialize(ScriptState* scriptState, SerializationErrorMode throwExceptions) argument
106 serialize(ScriptState* scriptState, MessagePortArray* messagePorts, ArrayBufferArray* arrayBuffers, bool& didThrow) argument
113 deserialize(ScriptState* scriptState, SerializedScriptValue* value, SerializationErrorMode throwExceptions) argument
119 jsToInspectorValue(ScriptState* scriptState, JSValue value, int maxDepth) argument
[all...]
H A DScriptProfiler.cpp67 JSC::ExecState* scriptState = toJSDOMWindow(inspectedPage->mainFrame(), debuggerWorld())->globalExec(); local
68 start(scriptState, title);
86 JSC::ExecState* scriptState = toJSDOMWindow(inspectedPage->mainFrame(), debuggerWorld())->globalExec(); local
87 return stop(scriptState, title);
H A DScriptState.cpp51 DOMWindow* domWindowFromScriptState(ScriptState* scriptState) argument
53 JSC::JSGlobalObject* globalObject = scriptState->lexicalGlobalObject();
59 ScriptExecutionContext* scriptExecutionContextFromScriptState(ScriptState* scriptState) argument
61 JSC::JSGlobalObject* globalObject = scriptState->lexicalGlobalObject();
H A DScriptObject.h50 ScriptState* scriptState() const { return m_scriptState; } function in class:WebCore::ScriptObject
H A DJSNodeCustom.cpp279 ScriptState* scriptState = mainWorldScriptState(root->document()->frame()); local
280 if (!scriptState)
283 JSLockHolder lock(scriptState);
284 toJS(scriptState, static_cast<JSDOMGlobalObject*>(scriptState->lexicalGlobalObject()), root);
H A DScriptEventListener.cpp106 ScriptState* scriptState = scriptStateFromNode(jsListener->isolatedWorld(), document);
107 return jsFunction->toString(scriptState)->value(scriptState);
H A DScriptFunctionCall.cpp47 if (argument.scriptState() != m_exec) {
112 : ScriptCallArgumentHandler(thisObject.scriptState())
H A DSerializedScriptValue.cpp1913 ScriptValue SerializedScriptValue::deserializeForInspector(ScriptState* scriptState) argument
1915 JSValue value = deserialize(scriptState, scriptState->lexicalGlobalObject(), 0);
1916 return ScriptValue(scriptState->vm(), value);
/macosx-10.9.5/WebCore-7537.78.1/inspector/
H A DInjectedScriptBase.cpp68 return m_inspectedStateAccessCheck(m_injectedScriptObject.scriptState());
78 ScriptExecutionContext* scriptExecutionContext = scriptExecutionContextFromScriptState(m_injectedScriptObject.scriptState());
81 ScriptState* scriptState = m_injectedScriptObject.scriptState(); local
83 if (scriptState) {
84 evalIsDisabled = !scriptState->lexicalGlobalObject()->evalEnabled();
87 scriptState->lexicalGlobalObject()->setEvalEnabled(true);
93 scriptState->lexicalGlobalObject()->setEvalEnabled(false);
111 *result = resultValue.toInspectorValue(m_injectedScriptObject.scriptState());
H A DScriptArguments.cpp38 PassRefPtr<ScriptArguments> ScriptArguments::create(ScriptState* scriptState, Vector<ScriptValue>& arguments) argument
40 return adoptRef(new ScriptArguments(scriptState, arguments));
43 ScriptArguments::ScriptArguments(ScriptState* scriptState, Vector<ScriptValue>& arguments) argument
44 : m_globalObject(scriptState->vm(), scriptState->lexicalGlobalObject())
H A DInjectedScriptModule.cpp49 void InjectedScriptModule::ensureInjected(InjectedScriptManager* injectedScriptManager, ScriptState* scriptState) argument
51 InjectedScript injectedScript = injectedScriptManager->injectedScriptFor(scriptState);
73 ScriptObject moduleObject(scriptState, resultValue);
H A DInjectedScriptManager.cpp90 int InjectedScriptManager::injectedScriptIdFor(ScriptState* scriptState) argument
92 ScriptStateToId::iterator it = m_scriptStateToId.find(scriptState);
96 m_scriptStateToId.set(scriptState, id);
126 ScriptState* scriptState = it->value.scriptState(); local
127 if (window != domWindowFromScriptState(scriptState))
129 m_scriptStateToId.remove(scriptState);
139 ScriptState* scriptState = it->key; local
140 if (window == domWindowFromScriptState(scriptState))
141 scriptStatesToRemove.append(scriptState);
[all...]
H A DPageRuntimeAgent.cpp122 ScriptState* scriptState = mainWorldScriptState(frame); local
123 notifyContextCreated(frameId, scriptState, 0, true);
126 void PageRuntimeAgent::didCreateIsolatedContext(Frame* frame, ScriptState* scriptState, SecurityOrigin* origin) argument
132 notifyContextCreated(frameId, scriptState, origin, false);
138 ScriptState* scriptState = mainWorldScriptState(m_inspectedPage->mainFrame()); local
139 InjectedScript result = injectedScriptManager()->injectedScriptFor(scriptState);
168 ScriptState* scriptState = mainWorldScriptState(frame); local
169 notifyContextCreated(frameId, scriptState, 0, true);
179 void PageRuntimeAgent::notifyContextCreated(const String& frameId, ScriptState* scriptState, SecurityOrigin* securityOrigin, bool isPageContext) argument
182 int executionContextId = injectedScriptManager()->injectedScriptIdFor(scriptState);
[all...]
H A DInjectedScriptBase.h54 ScriptState* scriptState() const { return m_injectedScriptObject.scriptState(); } function in class:WebCore::InjectedScriptBase
H A DWorkerRuntimeAgent.cpp66 ScriptState* scriptState = scriptStateFromWorkerContext(m_workerContext); local
67 return injectedScriptManager()->injectedScriptFor(scriptState);
H A DPageDebuggerAgent.cpp102 ScriptState* scriptState = mainWorldScriptState(m_pageAgent->mainFrame()); local
103 return injectedScriptManager()->injectedScriptFor(scriptState);
H A DInspectorCanvasAgent.cpp217 ScriptState* scriptState = wrappedContext.scriptState(); local
218 DOMWindow* domWindow = scriptState ? domWindowFromScriptState(scriptState) : 0;
228 InjectedScriptCanvasModule InspectorCanvasAgent::injectedScriptCanvasModule(ErrorString* errorString, ScriptState* scriptState) argument
232 InjectedScriptCanvasModule module = InjectedScriptCanvasModule::moduleForState(m_injectedScriptManager, scriptState);
249 return injectedScriptCanvasModule(errorString, scriptObject.scriptState());
261 return injectedScriptCanvasModule(errorString, injectedScript.scriptState());
H A DWorkerDebuggerAgent.cpp133 ScriptState* scriptState = scriptStateFromWorkerContext(m_inspectedWorkerContext); local
134 return injectedScriptManager()->injectedScriptFor(scriptState);
H A DInjectedScript.cpp226 RefPtr<InspectorValue> result = callFramesValue.toInspectorValue(scriptState());
245 RefPtr<InspectorObject> rawResult = r.toInspectorValue(scriptState())->asObject();
263 RefPtr<InspectorObject> rawResult = r.toInspectorValue(scriptState())->asObject();
305 return InjectedScriptHost::nodeAsScriptValue(scriptState(), node);
H A DInjectedScriptCanvasModule.cpp57 InjectedScriptCanvasModule InjectedScriptCanvasModule::moduleForState(InjectedScriptManager* injectedScriptManager, ScriptState* scriptState) argument
60 result.ensureInjected(injectedScriptManager, scriptState);
91 return ScriptObject(context.scriptState(), resultValue);
H A DInspectorDebuggerAgent.cpp359 RefPtr<InspectorValue> value = scriptObject.toInspectorValue(scriptObject.scriptState());
538 scriptDebugServer().compileScript(injectedScript.scriptState(), expression, sourceURL, &scriptIdValue, &exceptionMessage);
565 scriptDebugServer().runScript(injectedScript.scriptState(), scriptId, &value, &wasThrownValue, &exceptionMessage);
699 void InspectorDebuggerAgent::didPause(ScriptState* scriptState, const ScriptValue& callFrames, const ScriptValue& exception) argument
701 ASSERT(scriptState && !m_pausedScriptState);
702 m_pausedScriptState = scriptState;
706 InjectedScript injectedScript = m_injectedScriptManager->injectedScriptFor(scriptState);
H A DInspectorHeapProfilerAgent.cpp213 InjectedScript injectedScript = m_injectedScriptManager->injectedScriptFor(heapObject.scriptState());
/macosx-10.9.5/WebCore-7537.78.1/css/
H A DMediaQueryMatcher.cpp146 ScriptState* scriptState = mainWorldScriptState(m_document->frame()); local
147 if (!scriptState)
156 m_listeners[i]->evaluate(scriptState, evaluator.get());

Completed in 269 milliseconds

12