Lines Matching defs:ScriptState
47 class ScriptState {
48 WTF_MAKE_NONCOPYABLE(ScriptState);
73 static ScriptState* forContext(v8::Handle<v8::Context>);
74 static ScriptState* current();
77 ScriptState()
82 ~ScriptState();
85 friend ScriptState* mainWorldScriptState(Frame*);
86 explicit ScriptState(v8::Handle<v8::Context>);
88 static void makeWeakCallback(v8::Isolate*, v8::Persistent<v8::Context>*, ScriptState*);
95 class EmptyScriptState : public ScriptState {
97 EmptyScriptState() : ScriptState() { }
109 ScriptStateProtectedPtr(ScriptState* scriptState)
110 : m_scriptState(scriptState)
113 // Keep the context from being GC'ed. ScriptState is guaranteed to be live while the context is live.
114 m_context.set(scriptState->isolate(), scriptState->context());
117 ScriptState* get() const { return m_scriptState; }
120 ScriptState* m_scriptState;
124 ScriptState* mainWorldScriptState(Frame*);
126 ScriptState* scriptStateFromWorkerGlobalScope(WorkerGlobalScope*);