Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[JSC] Remove "Embedder" word from wasm implementation #9291

Commits on Jan 29, 2023

  1. [JSC] Remove "Embedder" word from wasm implementation

    https://bugs.webkit.org/show_bug.cgi?id=251331
    rdar://104791730
    
    Reviewed by Mark Lam.
    
    JSC Wasm implementation's embedder is always JS, and we are not planning to change it.
    We should tightly couple our wasm implementation with the rest of JSC to make it super efficient and fast.
    This patch removes "Embedder" word from wasm implementation. Replacing them with "JS".
    
    * Source/JavaScriptCore/CMakeLists.txt:
    * Source/JavaScriptCore/JavaScriptCore.xcodeproj/project.pbxproj:
    * Source/JavaScriptCore/Sources.txt:
    * Source/JavaScriptCore/wasm/WasmAirIRGeneratorBase.h:
    (JSC::Wasm::ExpressionType>::AirIRGeneratorBase):
    (JSC::Wasm::ExpressionType>::addCall):
    (JSC::Wasm::ExpressionType>::addCallIndirect):
    (JSC::Wasm::ExpressionType>::addCallRef):
    * Source/JavaScriptCore/wasm/WasmB3IRGenerator.cpp:
    (JSC::Wasm::B3IRGenerator::B3IRGenerator):
    (JSC::Wasm::B3IRGenerator::addCall):
    (JSC::Wasm::B3IRGenerator::addCallIndirect):
    (JSC::Wasm::B3IRGenerator::addCallRef):
    * Source/JavaScriptCore/wasm/WasmB3IRGenerator.h:
    * Source/JavaScriptCore/wasm/WasmBBQPlan.cpp:
    (JSC::Wasm::BBQPlan::compileFunction):
    (JSC::Wasm::BBQPlan::didCompleteCompilation):
    (JSC::Wasm::BBQPlan::initializeCallees):
    * Source/JavaScriptCore/wasm/WasmBBQPlan.h:
    * Source/JavaScriptCore/wasm/WasmCallee.cpp:
    (JSC::Wasm::Callee::runWithDowncast):
    * Source/JavaScriptCore/wasm/WasmCallee.h:
    * Source/JavaScriptCore/wasm/WasmCalleeGroup.cpp:
    (JSC::Wasm::CalleeGroup::CalleeGroup):
    * Source/JavaScriptCore/wasm/WasmCalleeGroup.h:
    * Source/JavaScriptCore/wasm/WasmCompilationMode.cpp:
    (JSC::Wasm::makeString):
    * Source/JavaScriptCore/wasm/WasmCompilationMode.h:
    (JSC::Wasm::isOSREntry):
    (JSC::Wasm::isAnyBBQ):
    (JSC::Wasm::isAnyOMG):
    * Source/JavaScriptCore/wasm/WasmInstance.cpp:
    (JSC::Wasm::Instance::initElementSegment):
    * Source/JavaScriptCore/wasm/WasmInstance.h:
    * Source/JavaScriptCore/wasm/WasmJS.h: Renamed from Source/JavaScriptCore/wasm/WasmEmbedder.h.
    * Source/JavaScriptCore/wasm/WasmLLIntPlan.cpp:
    (JSC::Wasm::LLIntPlan::didCompleteCompilation):
    * Source/JavaScriptCore/wasm/WasmLLIntPlan.h:
    * Source/JavaScriptCore/wasm/WasmModule.h:
    * Source/JavaScriptCore/wasm/WasmPlan.h:
    * Source/JavaScriptCore/wasm/WasmTable.h:
    * Source/JavaScriptCore/wasm/WasmThunks.h:
    * Source/JavaScriptCore/wasm/js/WasmToJS.h:
    * Source/JavaScriptCore/wasm/js/WebAssemblyModuleRecord.cpp:
    (JSC::WebAssemblyModuleRecord::initializeExports):
    
    Canonical link: https://commits.webkit.org/259534@main
    Constellation committed Jan 29, 2023
    Configuration menu
    Copy the full SHA
    2a2d8e7 View commit details
    Browse the repository at this point in the history