Lines Matching refs:v8
31 #include "src/inspector/v8-function-call.h"
35 #include "src/inspector/v8-debugger.h"
36 #include "src/inspector/v8-inspector-impl.h"
38 #include "include/v8-inspector.h"
43 v8::Local<v8::Context> context,
44 v8::Local<v8::Value> value, const String16& name)
50 void V8FunctionCall::appendArgument(v8::Local<v8::Value> value) {
59 m_arguments.push_back(v8::Number::New(m_context->GetIsolate(), argument));
63 m_arguments.push_back(argument ? v8::True(m_context->GetIsolate())
64 : v8::False(m_context->GetIsolate()));
67 v8::Local<v8::Value> V8FunctionCall::call(bool& hadException,
69 v8::TryCatch tryCatch(m_context->GetIsolate());
72 v8::Local<v8::Value> result = callWithoutExceptionHandling();
77 v8::Local<v8::Value> V8FunctionCall::callWithoutExceptionHandling() {
78 v8::Local<v8::Object> thisObject = v8::Local<v8::Object>::Cast(m_value);
79 v8::Local<v8::Value> value;
81 return v8::Local<v8::Value>();
85 v8::Local<v8::Function> function = v8::Local<v8::Function>::Cast(value);
86 std::unique_ptr<v8::Local<v8::Value>[]> info(
87 new v8::Local<v8::Value>[m_arguments.size()]);
98 v8::MicrotasksScope microtasksScope(m_context->GetIsolate(),
99 v8::MicrotasksScope::kDoNotRunMicrotasks);
100 v8::MaybeLocal<v8::Value> maybeResult = function->Call(
107 v8::Local<v8::Value> result;
108 if (!maybeResult.ToLocal(&result)) return v8::Local<v8::Value>();