Lines Matching refs:v8

43                                v8::Local<v8::Context> context,  in V8FunctionCall()
44 v8::Local<v8::Value> value, const String16& name) in V8FunctionCall()
50 void V8FunctionCall::appendArgument(v8::Local<v8::Value> value) { in appendArgument()
59 m_arguments.push_back(v8::Number::New(m_context->GetIsolate(), argument)); in appendArgument()
63 m_arguments.push_back(argument ? v8::True(m_context->GetIsolate()) in appendArgument()
64 : v8::False(m_context->GetIsolate())); in appendArgument()
67 v8::Local<v8::Value> V8FunctionCall::call(bool& hadException, in call()
69 v8::TryCatch tryCatch(m_context->GetIsolate()); in call()
72 v8::Local<v8::Value> result = callWithoutExceptionHandling(); in call()
77 v8::Local<v8::Value> V8FunctionCall::callWithoutExceptionHandling() { in callWithoutExceptionHandling()
78 v8::Context::Scope contextScope(m_context); in callWithoutExceptionHandling()
80 v8::Local<v8::Object> thisObject = v8::Local<v8::Object>::Cast(m_value); in callWithoutExceptionHandling()
81 v8::Local<v8::Value> value; in callWithoutExceptionHandling()
83 return v8::Local<v8::Value>(); in callWithoutExceptionHandling()
87 v8::Local<v8::Function> function = v8::Local<v8::Function>::Cast(value); in callWithoutExceptionHandling()
88 std::unique_ptr<v8::Local<v8::Value>[]> info( in callWithoutExceptionHandling()
89 new v8::Local<v8::Value>[m_arguments.size()]); in callWithoutExceptionHandling()
100 v8::MicrotasksScope microtasksScope(m_context->GetIsolate(), in callWithoutExceptionHandling()
101 v8::MicrotasksScope::kDoNotRunMicrotasks); in callWithoutExceptionHandling()
102 v8::Isolate::AllowJavascriptExecutionScope(m_context->GetIsolate()); in callWithoutExceptionHandling()
103 v8::MaybeLocal<v8::Value> maybeResult = function->Call( in callWithoutExceptionHandling()
110 v8::Local<v8::Value> result; in callWithoutExceptionHandling()
111 if (!maybeResult.ToLocal(&result)) return v8::Local<v8::Value>(); in callWithoutExceptionHandling()