[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.
(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):
(JSC::RetrieveArgumentsFunctor::RetrieveArgumentsFunctor):
(JSC::RetrieveArgumentsFunctor::operator() const):
(JSC::retrieveArguments):
(JSC::CallFrame::lexicalGlobalObject const):
(JSC::RegExp::matchInline):
(JSC::Wasm::wasmToJS):
Source/WebCore:
- bindings/js/CommonVM.cpp:
(WebCore::lexicalFrameFromCommonVM):
- bindings/js/JSDOMWindowBase.cpp:
(WebCore::responsibleDocument):
- bindings/js/StructuredClone.cpp:
(WebCore::cloneArrayBufferImpl):
(WebCore::Document::shouldBypassMainWorldContentSecurityPolicy const):
(WebCore::Internals::parserMetaData):
(WebCore::Internals::isFromCurrentWorld const):