| Index: src/inspector/v8-inspector-impl.cc
|
| diff --git a/src/inspector/v8-inspector-impl.cc b/src/inspector/v8-inspector-impl.cc
|
| index 34e41208acd7cbe788a79b3f0afb63e49463b438..0f02b81667ff2e4fcadaeca22bda1d2d915e85b3 100644
|
| --- a/src/inspector/v8-inspector-impl.cc
|
| +++ b/src/inspector/v8-inspector-impl.cc
|
| @@ -90,52 +90,6 @@ V8ProfilerAgentImpl* V8InspectorImpl::enabledProfilerAgentForGroup(
|
| return agent && agent->enabled() ? agent : nullptr;
|
| }
|
|
|
| -v8::MaybeLocal<v8::Value> V8InspectorImpl::runCompiledScript(
|
| - v8::Local<v8::Context> context, v8::Local<v8::Script> script) {
|
| - v8::MicrotasksScope microtasksScope(m_isolate,
|
| - v8::MicrotasksScope::kRunMicrotasks);
|
| - int groupId = contextGroupId(context);
|
| - if (V8DebuggerAgentImpl* agent = enabledDebuggerAgentForGroup(groupId))
|
| - agent->willExecuteScript(script->GetUnboundScript()->GetId());
|
| - v8::MaybeLocal<v8::Value> result = script->Run(context);
|
| - // Get agent from the map again, since it could have detached during script
|
| - // execution.
|
| - if (V8DebuggerAgentImpl* agent = enabledDebuggerAgentForGroup(groupId))
|
| - agent->didExecuteScript();
|
| - return result;
|
| -}
|
| -
|
| -v8::MaybeLocal<v8::Value> V8InspectorImpl::callFunction(
|
| - v8::Local<v8::Function> function, v8::Local<v8::Context> context,
|
| - v8::Local<v8::Value> receiver, int argc, v8::Local<v8::Value> info[]) {
|
| - return callFunction(function, context, receiver, argc, info,
|
| - v8::MicrotasksScope::kRunMicrotasks);
|
| -}
|
| -
|
| -v8::MaybeLocal<v8::Value> V8InspectorImpl::callInternalFunction(
|
| - v8::Local<v8::Function> function, v8::Local<v8::Context> context,
|
| - v8::Local<v8::Value> receiver, int argc, v8::Local<v8::Value> info[]) {
|
| - return callFunction(function, context, receiver, argc, info,
|
| - v8::MicrotasksScope::kDoNotRunMicrotasks);
|
| -}
|
| -
|
| -v8::MaybeLocal<v8::Value> V8InspectorImpl::callFunction(
|
| - v8::Local<v8::Function> function, v8::Local<v8::Context> context,
|
| - v8::Local<v8::Value> receiver, int argc, v8::Local<v8::Value> info[],
|
| - v8::MicrotasksScope::Type runMicrotasks) {
|
| - v8::MicrotasksScope microtasksScope(m_isolate, runMicrotasks);
|
| - int groupId = contextGroupId(context);
|
| - if (V8DebuggerAgentImpl* agent = enabledDebuggerAgentForGroup(groupId))
|
| - agent->willExecuteScript(function->ScriptId());
|
| - v8::MaybeLocal<v8::Value> result =
|
| - function->Call(context, receiver, argc, info);
|
| - // Get agent from the map again, since it could have detached during script
|
| - // execution.
|
| - if (V8DebuggerAgentImpl* agent = enabledDebuggerAgentForGroup(groupId))
|
| - agent->didExecuteScript();
|
| - return result;
|
| -}
|
| -
|
| v8::MaybeLocal<v8::Value> V8InspectorImpl::compileAndRunInternalScript(
|
| v8::Local<v8::Context> context, v8::Local<v8::String> source) {
|
| v8::Local<v8::UnboundScript> unboundScript;
|
| @@ -287,17 +241,9 @@ void V8InspectorImpl::resetContextGroup(int contextGroupId) {
|
|
|
| void V8InspectorImpl::willExecuteScript(v8::Local<v8::Context> context,
|
| int scriptId) {
|
| - if (V8DebuggerAgentImpl* agent =
|
| - enabledDebuggerAgentForGroup(contextGroupId(context))) {
|
| - agent->willExecuteScript(scriptId);
|
| - }
|
| }
|
|
|
| void V8InspectorImpl::didExecuteScript(v8::Local<v8::Context> context) {
|
| - if (V8DebuggerAgentImpl* agent =
|
| - enabledDebuggerAgentForGroup(contextGroupId(context))) {
|
| - agent->didExecuteScript();
|
| - }
|
| }
|
|
|
| void V8InspectorImpl::idleStarted() {
|
|
|