Changeset 251529 in webkit for trunk/Source/JavaScriptCore/interpreter
- Timestamp:
- Oct 23, 2019, 10:34:21 PM (6 years ago)
- Location:
- trunk/Source/JavaScriptCore/interpreter
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/interpreter/CallFrame.cpp
r251475 r251529 191 191 } 192 192 193 JSGlobalObject* CallFrame::wasmAwareLexicalGlobalObject(VM& vm)194 {195 #if ENABLE(WEBASSEMBLY)196 if (!callee().isWasm())197 return lexicalGlobalObject();198 return vm.wasmContext.load()->owner<JSWebAssemblyInstance>()->globalObject();199 #else200 UNUSED_PARAM(vm);201 return lexicalGlobalObject();202 #endif203 }204 205 193 bool CallFrame::isAnyWasmCallee() 206 194 { … … 358 346 } 359 347 348 #if ENABLE(WEBASSEMBLY) 349 JSGlobalObject* CallFrame::lexicalGlobalObjectFromWasmCallee(VM& vm) const 350 { 351 return vm.wasmContext.load()->owner<JSWebAssemblyInstance>()->globalObject(); 352 } 353 #endif 354 360 355 bool isFromJSCode(void* returnAddress) 361 356 { -
trunk/Source/JavaScriptCore/interpreter/CallFrame.h
r251475 r251529 126 126 } 127 127 128 JSGlobalObject* wasmAwareLexicalGlobalObject(VM&);129 130 128 JS_EXPORT_PRIVATE bool isAnyWasmCallee(); 131 129 132 130 // Global object in which the currently executing code was defined. 133 131 // Differs from VM::deprecatedVMEntryGlobalObject() during function calls across web browser frames. 134 JSGlobalObject* lexicalGlobalObject( ) const;132 JSGlobalObject* lexicalGlobalObject(VM&) const; 135 133 136 134 // FIXME: Remove this function … … 170 168 private: 171 169 unsigned callSiteBitsAsBytecodeOffset() const; 170 #if ENABLE(WEBASSEMBLY) 171 JS_EXPORT_PRIVATE JSGlobalObject* lexicalGlobalObjectFromWasmCallee(VM&) const; 172 #endif 172 173 public: 173 174 -
trunk/Source/JavaScriptCore/interpreter/Interpreter.cpp
r251468 r251529 516 516 ALWAYS_INLINE static void notifyDebuggerOfUnwinding(VM& vm, CallFrame* callFrame) 517 517 { 518 JSGlobalObject* globalObject = callFrame-> wasmAwareLexicalGlobalObject(vm);518 JSGlobalObject* globalObject = callFrame->lexicalGlobalObject(vm); 519 519 auto catchScope = DECLARE_CATCH_SCOPE(vm); 520 520 if (Debugger* debugger = globalObject->debugger()) { … … 1217 1217 VM& vm = callFrame->deprecatedVM(); 1218 1218 auto scope = DECLARE_CATCH_SCOPE(vm); 1219 Debugger* debugger = callFrame->lexicalGlobalObject( )->debugger();1219 Debugger* debugger = callFrame->lexicalGlobalObject(vm)->debugger(); 1220 1220 if (!debugger) 1221 1221 return; -
trunk/Source/JavaScriptCore/interpreter/StackVisitor.cpp
r251468 r251529 370 370 } 371 371 372 ClonedArguments* StackVisitor::Frame::createArguments( )372 ClonedArguments* StackVisitor::Frame::createArguments(VM& vm) 373 373 { 374 374 ASSERT(m_callFrame); … … 376 376 // FIXME: Revisit JSGlobalObject. 377 377 // https://bugs.webkit.org/show_bug.cgi?id=203204 378 JSGlobalObject* globalObject = physicalFrame->lexicalGlobalObject( );378 JSGlobalObject* globalObject = physicalFrame->lexicalGlobalObject(vm); 379 379 ClonedArguments* arguments; 380 380 ArgumentsMode mode; -
trunk/Source/JavaScriptCore/interpreter/StackVisitor.h
r251468 r251529 98 98 #endif 99 99 100 ClonedArguments* createArguments( );100 ClonedArguments* createArguments(VM&); 101 101 CallFrame* callFrame() const { return m_callFrame; } 102 102
Note:
See TracChangeset
for help on using the changeset viewer.