Ignore:
Timestamp:
Oct 23, 2019, 10:34:21 PM (6 years ago)
Author:
[email protected]
Message:

[JSC] Remove wasmAwareLexicalGlobalObject
https://bugs.webkit.org/show_bug.cgi?id=203351

Reviewed by Mark Lam.

Source/JavaScriptCore:

CallFrame::lexicalGlobalObject() is no longer called frequently. We can just make the current wasmAwareLexicalGlobalObject as CallFrame::lexicalGlobalObject,
and remove wasmAwareLexicalGlobalObject function.

  • debugger/Debugger.cpp:

(JSC::Debugger::hasBreakpoint):
(JSC::Debugger::breakProgram):
(JSC::lexicalGlobalObjectForCallFrame):

  • debugger/DebuggerCallFrame.cpp:

(JSC::DebuggerCallFrame::deprecatedVMEntryGlobalObject const):
(JSC::DebuggerCallFrame::scope):
(JSC::DebuggerCallFrame::thisValue const):
(JSC::DebuggerCallFrame::evaluateWithScopeExtension):

  • debugger/DebuggerCallFrame.h:
  • inspector/JSJavaScriptCallFrame.cpp:

(Inspector::JSJavaScriptCallFrame::thisObject const):

  • inspector/JavaScriptCallFrame.h:

(Inspector::JavaScriptCallFrame::thisValue const):

  • interpreter/CallFrame.cpp:

(JSC::CallFrame::lexicalGlobalObjectFromWasmCallee const):
(JSC::CallFrame::wasmAwareLexicalGlobalObject): Deleted.

  • interpreter/CallFrame.h:
  • interpreter/Interpreter.cpp:

(JSC::notifyDebuggerOfUnwinding):
(JSC::Interpreter::debug):

  • interpreter/StackVisitor.cpp:

(JSC::StackVisitor::Frame::createArguments):

  • interpreter/StackVisitor.h:
  • llint/LLIntSlowPaths.cpp:

(JSC::LLInt::llint_throw_stack_overflow_error):

  • runtime/JSFunction.cpp:

(JSC::RetrieveArgumentsFunctor::RetrieveArgumentsFunctor):
(JSC::RetrieveArgumentsFunctor::operator() const):
(JSC::retrieveArguments):

  • runtime/JSScope.h:

(JSC::CallFrame::lexicalGlobalObject const):

  • runtime/RegExpInlines.h:

(JSC::RegExp::matchInline):

  • wasm/js/WasmToJS.cpp:

(JSC::Wasm::wasmToJS):

Source/WebCore:

  • bindings/js/CommonVM.cpp:

(WebCore::lexicalFrameFromCommonVM):

  • bindings/js/JSDOMWindowBase.cpp:

(WebCore::responsibleDocument):

  • bindings/js/StructuredClone.cpp:

(WebCore::cloneArrayBufferImpl):

  • dom/Document.cpp:

(WebCore::Document::shouldBypassMainWorldContentSecurityPolicy const):

  • testing/Internals.cpp:

(WebCore::Internals::parserMetaData):
(WebCore::Internals::isFromCurrentWorld const):

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/interpreter/CallFrame.cpp

    r251475 r251529  
    191191}
    192192
    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 #else
    200     UNUSED_PARAM(vm);
    201     return lexicalGlobalObject();
    202 #endif
    203 }
    204 
    205193bool CallFrame::isAnyWasmCallee()
    206194{
     
    358346}
    359347
     348#if ENABLE(WEBASSEMBLY)
     349JSGlobalObject* CallFrame::lexicalGlobalObjectFromWasmCallee(VM& vm) const
     350{
     351    return vm.wasmContext.load()->owner<JSWebAssemblyInstance>()->globalObject();
     352}
     353#endif
     354
    360355bool isFromJSCode(void* returnAddress)
    361356{
Note: See TracChangeset for help on using the changeset viewer.