Changeset 191291 in webkit
- Timestamp:
- Oct 19, 2015, 9:20:08 AM (10 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r191290 r191291 1 2015-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 1 16 2015-10-19 Mark Lam <mark.lam@apple.com> 2 17 -
trunk/Source/JavaScriptCore/bytecode/CodeBlock.cpp
r191191 r191291 2204 2204 2205 2205 #if ENABLE(WEBASSEMBLY) 2206 CodeBlock::CodeBlock(VM* vm, Structure* structure, WebAssemblyExecutable* ownerExecutable, VM& vm,JSGlobalObject* globalObject)2207 : JSCell( vm, structure)2206 CodeBlock::CodeBlock(VM* vm, Structure* structure, WebAssemblyExecutable* ownerExecutable, JSGlobalObject* globalObject) 2207 : JSCell(*vm, structure) 2208 2208 , m_globalObject(globalObject->vm(), this, globalObject) 2209 2209 , m_heap(&m_globalObject->vm().heap) … … 2218 2218 , m_numBreakpoints(0) 2219 2219 , m_ownerExecutable(m_globalObject->vm(), this, ownerExecutable) 2220 , m_vm( &vm)2220 , m_vm(vm) 2221 2221 , m_isStrictMode(false) 2222 2222 , m_needsActivation(false) -
trunk/Source/JavaScriptCore/bytecode/CodeBlock.h
r191139 r191291 112 112 CodeBlock(VM*, Structure*, ScriptExecutable* ownerExecutable, UnlinkedCodeBlock*, JSScope*, PassRefPtr<SourceProvider>, unsigned sourceOffset, unsigned firstLineColumnOffset); 113 113 #if ENABLE(WEBASSEMBLY) 114 CodeBlock(VM*, Structure*, WebAssemblyExecutable* ownerExecutable, VM&,JSGlobalObject*);114 CodeBlock(VM*, Structure*, WebAssemblyExecutable* ownerExecutable, JSGlobalObject*); 115 115 #endif 116 116 … … 1287 1287 class WebAssemblyCodeBlock : public CodeBlock { 1288 1288 public: 1289 typedef CodeBlock Base; 1289 1290 DECLARE_INFO; 1290 1291 … … 1293 1294 WebAssemblyCodeBlock* instance = new (NotNull, allocateCell<WebAssemblyCodeBlock>(vm->heap)) 1294 1295 WebAssemblyCodeBlock(vm, vm->webAssemblyCodeBlockStructure.get(), CopyParsedBlock, other); 1295 instance->finishCreation(*vm );1296 instance->finishCreation(*vm, CopyParsedBlock, other); 1296 1297 return instance; 1297 1298 } … … 1301 1302 WebAssemblyCodeBlock* instance = new (NotNull, allocateCell<WebAssemblyCodeBlock>(vm->heap)) 1302 1303 WebAssemblyCodeBlock(vm, vm->webAssemblyCodeBlockStructure.get(), ownerExecutable, globalObject); 1303 instance->finishCreation(*vm );1304 instance->finishCreation(*vm, ownerExecutable, globalObject); 1304 1305 return instance; 1305 1306 } … … 1311 1312 1312 1313 private: 1313 WebAssemblyCodeBlock(VM &vm, Structure* structure, CopyParsedBlockTag, WebAssemblyCodeBlock& other)1314 WebAssemblyCodeBlock(VM* vm, Structure* structure, CopyParsedBlockTag, WebAssemblyCodeBlock& other) 1314 1315 : CodeBlock(vm, structure, CopyParsedBlock, other) 1315 1316 { 1316 1317 } 1317 1318 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) 1320 1321 { 1321 1322 } -
trunk/Source/JavaScriptCore/runtime/Executable.cpp
r190827 r191291 739 739 DeferGC deferGC(vm.heap); 740 740 741 WebAssemblyCodeBlock* codeBlock = WebAssemblyCodeBlock::create( vm,742 this, exec->lexicalGlobalObject()) );741 WebAssemblyCodeBlock* codeBlock = WebAssemblyCodeBlock::create(&vm, 742 this, exec->lexicalGlobalObject()); 743 743 744 744 WASMFunctionParser::compile(vm, codeBlock, m_module.get(), m_source, m_functionIndex);
Note:
See TracChangeset
for help on using the changeset viewer.