Ignore:
Timestamp:
Dec 6, 2016, 4:27:58 PM (9 years ago)
Author:
[email protected]
Message:

Remove old Wasm object model
https://bugs.webkit.org/show_bug.cgi?id=165481

Reviewed by Keith Miller and Mark Lam.

Source/JavaScriptCore:

It's confusing to see code that consults both the old
Wasm object model alongside the new one. The old object
model is not a thing, and it's not being used. Let's
remove it now to prevent further confusion.

  • CMakeLists.txt:
  • JavaScriptCore.xcodeproj/project.pbxproj:
  • bytecode/CodeBlock.cpp:

(JSC::CodeBlock::finalizeLLIntInlineCaches):
(JSC::CodeBlock::replacement):
(JSC::CodeBlock::computeCapabilityLevel):
(JSC::CodeBlock::updateAllPredictions):

  • bytecode/CodeBlock.h:
  • bytecode/WebAssemblyCodeBlock.cpp: Removed.
  • bytecode/WebAssemblyCodeBlock.h: Removed.
  • dfg/DFGCapabilities.cpp:

(JSC::DFG::isSupportedForInlining):

  • interpreter/Interpreter.cpp:

(JSC::GetStackTraceFunctor::operator()):
(JSC::UnwindFunctor::operator()):
(JSC::isWebAssemblyExecutable): Deleted.

  • jit/JITOperations.cpp:
  • jit/Repatch.cpp:

(JSC::linkPolymorphicCall):

  • llint/LLIntSlowPaths.cpp:

(JSC::LLInt::setUpCall):

  • runtime/ExecutableBase.cpp:

(JSC::ExecutableBase::clearCode):

  • runtime/ExecutableBase.h:

(JSC::ExecutableBase::isWebAssemblyExecutable): Deleted.

  • runtime/JSFunction.cpp:
  • runtime/JSFunction.h:
  • runtime/JSFunctionInlines.h:

(JSC::JSFunction::isBuiltinFunction):

  • runtime/VM.cpp:

(JSC::VM::VM):

  • runtime/VM.h:
  • runtime/WebAssemblyExecutable.cpp: Removed.
  • runtime/WebAssemblyExecutable.h: Removed.

Source/WebCore:

  • testing/Internals.cpp:

(WebCore::Internals::parserMetaData):

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/jit/Repatch.cpp

    r208761 r209433  
    5454#include "StructureStubInfo.h"
    5555#include "ThunkGenerators.h"
    56 #include "WebAssemblyCodeBlock.h"
    5756#include <wtf/CommaPrinter.h>
    5857#include <wtf/ListDump.h>
     
    715714        else {
    716715            ExecutableBase* executable = variant.executable();
    717 #if ENABLE(WEBASSEMBLY)
    718             if (executable->isWebAssemblyExecutable())
    719                 codeBlock = jsCast<WebAssemblyExecutable*>(executable)->codeBlockForCall();
    720             else
    721 #endif
    722                 codeBlock = jsCast<FunctionExecutable*>(executable)->codeBlockForCall();
     716            codeBlock = jsCast<FunctionExecutable*>(executable)->codeBlockForCall();
    723717            // If we cannot handle a callee, either because we don't have a CodeBlock or because arity mismatch,
    724718            // assume that it's better for this whole thing to be a virtual call.
Note: See TracChangeset for help on using the changeset viewer.