Changeset 292891 in webkit for trunk/Source/JavaScriptCore/debugger/Debugger.cpp
- Timestamp:
- Apr 14, 2022, 2:56:27 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/debugger/Debugger.cpp
r292830 r292891 608 608 ASSERT(isAttached(globalObject)); 609 609 610 VM& vm = globalObject->vm(); 610 611 const String& condition = breakpoint.condition(); 611 612 if (condition.isEmpty()) … … 615 616 DebuggerCallFrame& debuggerCallFrame = currentDebuggerCallFrame(); 616 617 JSObject* scopeExtensionObject = m_client ? m_client->debuggerScopeExtensionObject(*this, globalObject, debuggerCallFrame) : nullptr; 617 JSValue result = debuggerCallFrame.evaluateWithScopeExtension( condition, scopeExtensionObject, exception);618 JSValue result = debuggerCallFrame.evaluateWithScopeExtension(vm, condition, scopeExtensionObject, exception); 618 619 619 620 // We can lose the debugger while executing JavaScript. … … 634 635 ASSERT(isAttached(globalObject)); 635 636 637 VM& vm = globalObject->vm(); 638 636 639 m_currentProbeBatchId++; 637 640 … … 645 648 case Breakpoint::Action::Type::Log: 646 649 dispatchFunctionToObservers([&] (Observer& observer) { 647 observer.breakpointActionLog(debuggerCallFrame.globalObject( ), action.data);650 observer.breakpointActionLog(debuggerCallFrame.globalObject(vm), action.data); 648 651 }); 649 652 break; … … 652 655 NakedPtr<Exception> exception; 653 656 JSObject* scopeExtensionObject = m_client ? m_client->debuggerScopeExtensionObject(*this, globalObject, debuggerCallFrame) : nullptr; 654 debuggerCallFrame.evaluateWithScopeExtension( action.data, scopeExtensionObject, exception);657 debuggerCallFrame.evaluateWithScopeExtension(vm, action.data, scopeExtensionObject, exception); 655 658 if (exception) 656 reportException(debuggerCallFrame.globalObject( ), exception);659 reportException(debuggerCallFrame.globalObject(vm), exception); 657 660 break; 658 661 } … … 667 670 NakedPtr<Exception> exception; 668 671 JSObject* scopeExtensionObject = m_client ? m_client->debuggerScopeExtensionObject(*this, globalObject, debuggerCallFrame) : nullptr; 669 JSValue result = debuggerCallFrame.evaluateWithScopeExtension( action.data, scopeExtensionObject, exception);670 JSC::JSGlobalObject* debuggerGlobalObject = debuggerCallFrame.globalObject( );672 JSValue result = debuggerCallFrame.evaluateWithScopeExtension(vm, action.data, scopeExtensionObject, exception); 673 JSC::JSGlobalObject* debuggerGlobalObject = debuggerCallFrame.globalObject(vm); 671 674 if (exception) 672 675 reportException(debuggerGlobalObject, exception); … … 1027 1030 return currentException(); 1028 1031 1032 VM& vm = globalObject->vm(); 1029 1033 for (RefPtr<DebuggerCallFrame> frame = ¤tDebuggerCallFrame(); frame; frame = frame->callerFrame()) { 1030 DebuggerScope& scope = *frame->scope( );1034 DebuggerScope& scope = *frame->scope(vm); 1031 1035 if (scope.isCatchScope()) 1032 1036 return scope.caughtValue(globalObject);
Note:
See TracChangeset
for help on using the changeset viewer.