Ignore:
Timestamp:
Dec 3, 2019, 5:42:51 PM (5 years ago)
Author:
[email protected]
Message:

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

Reviewed by Tadeu Zagallo.

This patch drops WebAssemblyToJSCallee. It was originally required to put small cell to retrieve VM from callee.
But now this limitation is removed. We can just put JSWebAssemblyModule in callee place instead.

  • JavaScriptCore.xcodeproj/project.pbxproj:
  • Sources.txt:
  • interpreter/CallFrame.cpp:

(JSC::CallFrame::isAnyWasmCallee):

  • interpreter/StackVisitor.cpp:

(JSC::StackVisitor::Frame::calleeSaveRegistersForUnwinding):

  • jit/Repatch.cpp:

(JSC::webAssemblyOwner):
(JSC::linkFor):
(JSC::linkPolymorphicCall):

  • runtime/JSCast.h:
  • runtime/JSCell.cpp:
  • runtime/JSCellInlines.h:

(JSC::isWebAssemblyModule):
(JSC::isWebAssemblyToJSCallee): Deleted.

  • runtime/JSGlobalObject.cpp:

(JSC::JSGlobalObject::init):
(JSC::JSGlobalObject::visitChildren):

  • runtime/JSGlobalObject.h:

(JSC::JSGlobalObject::webAssemblyWrapperFunctionStructure const):
(JSC::JSGlobalObject::webAssemblyToJSCalleeStructure const): Deleted.

  • runtime/JSType.cpp:

(WTF::printInternal):

  • runtime/JSType.h:
  • wasm/WasmOperations.cpp:

(JSC::Wasm::operationWasmToJSException):

  • wasm/js/JSWebAssemblyInstance.cpp:

(JSC::JSWebAssemblyInstance::finishCreation):
(JSC::JSWebAssemblyInstance::visitChildren):

  • wasm/js/JSWebAssemblyInstance.h:
  • wasm/js/JSWebAssemblyModule.cpp:

(JSC::JSWebAssemblyModule::createStructure):
(JSC::JSWebAssemblyModule::finishCreation):
(JSC::JSWebAssemblyModule::visitChildren):
(JSC::JSWebAssemblyModule::callee const): Deleted.

  • wasm/js/JSWebAssemblyModule.h:
  • wasm/js/WasmToJS.cpp:

(JSC::Wasm::handleBadI64Use):
(JSC::Wasm::wasmToJS):

  • wasm/js/WebAssemblyToJSCallee.cpp: Removed.
  • wasm/js/WebAssemblyToJSCallee.h: Removed.
Location:
trunk/Source/JavaScriptCore/interpreter
Files:
2 edited

Legend:

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

    r251534 r253075  
    198198
    199199    ASSERT(callee.isCell());
    200     if (!!callee.rawPtr() && isWebAssemblyToJSCallee(callee.asCell()))
     200    if (!!callee.rawPtr() && isWebAssemblyModule(callee.asCell()))
    201201        return true;
    202202
  • trunk/Source/JavaScriptCore/interpreter/StackVisitor.cpp

    r251584 r253075  
    265265    if (isWasmFrame()) {
    266266        if (callee().isCell()) {
    267             RELEASE_ASSERT(isWebAssemblyToJSCallee(callee().asCell()));
     267            RELEASE_ASSERT(isWebAssemblyModule(callee().asCell()));
    268268            return WTF::nullopt;
    269269        }
Note: See TracChangeset for help on using the changeset viewer.