Lines Matching refs:v8

38 JavaScriptCallFrame::JavaScriptCallFrame(v8::Local<v8::Context> debuggerContext,
39 v8::Local<v8::Object> callFrame)
47 v8::HandleScope handleScope(m_isolate);
48 v8::MicrotasksScope microtasks(m_isolate,
49 v8::MicrotasksScope::kDoNotRunMicrotasks);
50 v8::Local<v8::Context> context =
51 v8::Local<v8::Context>::New(m_isolate, m_debuggerContext);
52 v8::Local<v8::Object> callFrame =
53 v8::Local<v8::Object>::New(m_isolate, m_callFrame);
54 v8::Local<v8::Function> func = v8::Local<v8::Function>::Cast(
57 v8::Local<v8::Value> result;
61 return result.As<v8::Int32>()->Value();
69 v8::HandleScope handleScope(m_isolate);
70 v8::Local<v8::Context> context =
71 v8::Local<v8::Context>::New(m_isolate, m_debuggerContext);
72 v8::Local<v8::Object> callFrame =
73 v8::Local<v8::Object>::New(m_isolate, m_callFrame);
74 v8::Local<v8::Value> result;
79 return result.As<v8::Boolean>()->BooleanValue(context).FromMaybe(false);
82 v8::MaybeLocal<v8::Object> JavaScriptCallFrame::details() const {
83 v8::MicrotasksScope microtasks(m_isolate,
84 v8::MicrotasksScope::kDoNotRunMicrotasks);
85 v8::Local<v8::Context> context =
86 v8::Local<v8::Context>::New(m_isolate, m_debuggerContext);
87 v8::Local<v8::Object> callFrame =
88 v8::Local<v8::Object>::New(m_isolate, m_callFrame);
89 v8::Local<v8::Function> func = v8::Local<v8::Function>::Cast(
92 v8::TryCatch try_catch(m_isolate);
93 v8::Local<v8::Value> details;
95 return v8::Local<v8::Object>::Cast(details);
97 return v8::MaybeLocal<v8::Object>();
100 v8::MaybeLocal<v8::Value> JavaScriptCallFrame::evaluate(
101 v8::Local<v8::Value> expression, bool throwOnSideEffect) {
102 v8::MicrotasksScope microtasks(m_isolate,
103 v8::MicrotasksScope::kRunMicrotasks);
104 v8::Local<v8::Context> context =
105 v8::Local<v8::Context>::New(m_isolate, m_debuggerContext);
106 v8::Local<v8::Object> callFrame =
107 v8::Local<v8::Object>::New(m_isolate, m_callFrame);
108 v8::Local<v8::Function> evalFunction = v8::Local<v8::Function>::Cast(
111 v8::Local<v8::Value> argv[] = {
112 expression, v8::Boolean::New(m_isolate, throwOnSideEffect)};
116 v8::MaybeLocal<v8::Value> JavaScriptCallFrame::restart() {
117 v8::MicrotasksScope microtasks(m_isolate,
118 v8::MicrotasksScope::kDoNotRunMicrotasks);
119 v8::Local<v8::Context> context =
120 v8::Local<v8::Context>::New(m_isolate, m_debuggerContext);
121 v8::Local<v8::Object> callFrame =
122 v8::Local<v8::Object>::New(m_isolate, m_callFrame);
123 v8::Local<v8::Function> restartFunction = v8::Local<v8::Function>::Cast(
126 v8::TryCatch try_catch(m_isolate);
127 v8::debug::SetLiveEditEnabled(m_isolate, true);
128 v8::MaybeLocal<v8::Value> result = restartFunction->Call(
130 v8::debug::SetLiveEditEnabled(m_isolate, false);
134 v8::MaybeLocal<v8::Value> JavaScriptCallFrame::setVariableValue(
135 int scopeNumber, v8::Local<v8::Value> variableName,
136 v8::Local<v8::Value> newValue) {
137 v8::MicrotasksScope microtasks(m_isolate,
138 v8::MicrotasksScope::kDoNotRunMicrotasks);
139 v8::Local<v8::Context> context =
140 v8::Local<v8::Context>::New(m_isolate, m_debuggerContext);
141 v8::Local<v8::Object> callFrame =
142 v8::Local<v8::Object>::New(m_isolate, m_callFrame);
143 v8::Local<v8::Function> setVariableValueFunction =
144 v8::Local<v8::Function>::Cast(
149 v8::Local<v8::Value> argv[] = {
150 v8::Local<v8::Value>(v8::Integer::New(m_isolate, scopeNumber)),
152 v8::TryCatch try_catch(m_isolate);