Changeset 191291 in webkit


Ignore:
Timestamp:
Oct 19, 2015, 9:20:08 AM (10 years ago)
Author:
Csaba Osztrogonác
Message:

Fix the ENABLE(WEBASSEMBLY) build after r190827
https://bugs.webkit.org/show_bug.cgi?id=150330

Reviewed by Geoffrey Garen.

  • bytecode/CodeBlock.cpp:

(JSC::CodeBlock::CodeBlock): Removed the duplicated VM argument.

  • bytecode/CodeBlock.h:

(JSC::WebAssemblyCodeBlock::create): Added new parameters to finishCreation() calls.
(JSC::WebAssemblyCodeBlock::WebAssemblyCodeBlock): Change VM parameter to pointer to match *CodeBlock classes.

  • runtime/Executable.cpp:

(JSC::WebAssemblyExecutable::prepareForExecution): Removed extra ")" and pass pointer as it is expected.

Location:
trunk/Source/JavaScriptCore
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r191290 r191291  
     12015-10-19  Csaba Osztrogonác  <ossy@webkit.org>
     2
     3        Fix the ENABLE(WEBASSEMBLY) build after r190827
     4        https://bugs.webkit.org/show_bug.cgi?id=150330
     5
     6        Reviewed by Geoffrey Garen.
     7
     8        * bytecode/CodeBlock.cpp:
     9        (JSC::CodeBlock::CodeBlock): Removed the duplicated VM argument.
     10        * bytecode/CodeBlock.h:
     11        (JSC::WebAssemblyCodeBlock::create): Added new parameters to finishCreation() calls.
     12        (JSC::WebAssemblyCodeBlock::WebAssemblyCodeBlock): Change VM parameter to pointer to match *CodeBlock classes.
     13        * runtime/Executable.cpp:
     14        (JSC::WebAssemblyExecutable::prepareForExecution): Removed extra ")" and pass pointer as it is expected.
     15
    1162015-10-19  Mark Lam  <mark.lam@apple.com>
    217
  • trunk/Source/JavaScriptCore/bytecode/CodeBlock.cpp

    r191191 r191291  
    22042204
    22052205#if ENABLE(WEBASSEMBLY)
    2206 CodeBlock::CodeBlock(VM* vm, Structure* structure, WebAssemblyExecutable* ownerExecutable, VM& vm, JSGlobalObject* globalObject)
    2207     : JSCell(vm, structure)
     2206CodeBlock::CodeBlock(VM* vm, Structure* structure, WebAssemblyExecutable* ownerExecutable, JSGlobalObject* globalObject)
     2207    : JSCell(*vm, structure)
    22082208    , m_globalObject(globalObject->vm(), this, globalObject)
    22092209    , m_heap(&m_globalObject->vm().heap)
     
    22182218    , m_numBreakpoints(0)
    22192219    , m_ownerExecutable(m_globalObject->vm(), this, ownerExecutable)
    2220     , m_vm(&vm)
     2220    , m_vm(vm)
    22212221    , m_isStrictMode(false)
    22222222    , m_needsActivation(false)
  • trunk/Source/JavaScriptCore/bytecode/CodeBlock.h

    r191139 r191291  
    112112    CodeBlock(VM*, Structure*, ScriptExecutable* ownerExecutable, UnlinkedCodeBlock*, JSScope*, PassRefPtr<SourceProvider>, unsigned sourceOffset, unsigned firstLineColumnOffset);
    113113#if ENABLE(WEBASSEMBLY)
    114     CodeBlock(VM*, Structure*, WebAssemblyExecutable* ownerExecutable, VM&, JSGlobalObject*);
     114    CodeBlock(VM*, Structure*, WebAssemblyExecutable* ownerExecutable, JSGlobalObject*);
    115115#endif
    116116
     
    12871287class WebAssemblyCodeBlock : public CodeBlock {
    12881288public:
     1289    typedef CodeBlock Base;
    12891290    DECLARE_INFO;
    12901291
     
    12931294        WebAssemblyCodeBlock* instance = new (NotNull, allocateCell<WebAssemblyCodeBlock>(vm->heap))
    12941295            WebAssemblyCodeBlock(vm, vm->webAssemblyCodeBlockStructure.get(), CopyParsedBlock, other);
    1295         instance->finishCreation(*vm);
     1296        instance->finishCreation(*vm, CopyParsedBlock, other);
    12961297        return instance;
    12971298    }
     
    13011302        WebAssemblyCodeBlock* instance = new (NotNull, allocateCell<WebAssemblyCodeBlock>(vm->heap))
    13021303            WebAssemblyCodeBlock(vm, vm->webAssemblyCodeBlockStructure.get(), ownerExecutable, globalObject);
    1303         instance->finishCreation(*vm);
     1304        instance->finishCreation(*vm, ownerExecutable, globalObject);
    13041305        return instance;
    13051306    }
     
    13111312
    13121313private:
    1313     WebAssemblyCodeBlock(VM& vm, Structure* structure, CopyParsedBlockTag, WebAssemblyCodeBlock& other)
     1314    WebAssemblyCodeBlock(VM* vm, Structure* structure, CopyParsedBlockTag, WebAssemblyCodeBlock& other)
    13141315        : CodeBlock(vm, structure, CopyParsedBlock, other)
    13151316    {
    13161317    }
    13171318
    1318     WebAssemblyCodeBlock(VM& vm, Structure* structure, WebAssemblyExecutable* ownerExecutable, JSGlobalObject* globalObject)
    1319         : CodeBlock(vm, structure, ownerExecutable, vm, globalObject)
     1319    WebAssemblyCodeBlock(VM* vm, Structure* structure, WebAssemblyExecutable* ownerExecutable, JSGlobalObject* globalObject)
     1320        : CodeBlock(vm, structure, ownerExecutable, globalObject)
    13201321    {
    13211322    }
  • trunk/Source/JavaScriptCore/runtime/Executable.cpp

    r190827 r191291  
    739739    DeferGC deferGC(vm.heap);
    740740
    741     WebAssemblyCodeBlock* codeBlock = WebAssemblyCodeBlock::create(vm,
    742         this, exec->lexicalGlobalObject()));
     741    WebAssemblyCodeBlock* codeBlock = WebAssemblyCodeBlock::create(&vm,
     742        this, exec->lexicalGlobalObject());
    743743
    744744    WASMFunctionParser::compile(vm, codeBlock, m_module.get(), m_source, m_functionIndex);
Note: See TracChangeset for help on using the changeset viewer.