Home | History | Annotate | Download | only in v8

Lines Matching refs:scriptState

45     // Used by ToV8Value<WithScriptState, ScriptState*>.
46 static v8::Handle<v8::Object> getCreationContext(ScriptState* scriptState)
48 return scriptState->context()->Global();
54 ScriptPromise::ScriptPromise(ScriptState* scriptState, v8::Handle<v8::Value> value)
55 : m_scriptState(scriptState)
61 m_promise = ScriptValue(scriptState, v8::Handle<v8::Value>());
62 V8ThrowException::throwTypeError("the given value is not a Promise", scriptState->isolate());
65 m_promise = ScriptValue(scriptState, value);
96 ScriptPromise ScriptPromise::cast(ScriptState* scriptState, const ScriptValue& value)
98 return ScriptPromise::cast(scriptState, value.v8Value());
101 ScriptPromise ScriptPromise::cast(ScriptState* scriptState, v8::Handle<v8::Value> value)
106 return ScriptPromise(scriptState, value);
108 RefPtr<ScriptPromiseResolver> resolver = ScriptPromiseResolver::create(scriptState);
114 ScriptPromise ScriptPromise::reject(ScriptState* scriptState, const ScriptValue& value)
116 return ScriptPromise::reject(scriptState, value.v8Value());
119 ScriptPromise ScriptPromise::reject(ScriptState* scriptState, v8::Handle<v8::Value> value)
123 RefPtr<ScriptPromiseResolver> resolver = ScriptPromiseResolver::create(scriptState);
129 ScriptPromise ScriptPromise::rejectWithDOMException(ScriptState* scriptState, PassRefPtrWillBeRawPtr<DOMException> exception)
131 ASSERT(scriptState->isolate()->InContext());
132 return reject(scriptState, ToV8Value<WithScriptState, v8::Handle<v8::Object> >::toV8Value(exception, scriptState->context()->Global(), scriptState->isolate()));