Unreviewed. Fix jsc.cpp build error.
authorsbarati@apple.com <sbarati@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 29 Dec 2016 00:18:44 +0000 (00:18 +0000)
committersbarati@apple.com <sbarati@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 29 Dec 2016 00:18:44 +0000 (00:18 +0000)
* jsc.cpp:
(functionTestWasmModuleFunctions):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@210202 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/jsc.cpp

index ae2f491..0e1655c 100644 (file)
@@ -1,5 +1,12 @@
 2016-12-28  Saam Barati  <sbarati@apple.com>
 
+        Unreviewed. Fix jsc.cpp build error.
+
+        * jsc.cpp:
+        (functionTestWasmModuleFunctions):
+
+2016-12-28  Saam Barati  <sbarati@apple.com>
+
         WebAssembly: Implement grow_memory and current_memory
         https://bugs.webkit.org/show_bug.cgi?id=166448
         <rdar://problem/29803676>
index a86966b..3eaf4a0 100644 (file)
@@ -2648,20 +2648,8 @@ static EncodedJSValue JSC_HOST_CALL functionTestWasmModuleFunctions(ExecState* e
             });
     }
 
-    void* memoryBytes = nullptr;
-    uint32_t memorySize = 0;
-    std::unique_ptr<Wasm::Memory> memory;
     std::unique_ptr<Wasm::ModuleInformation> moduleInformation = plan.takeModuleInformation();
-
-    if (!!moduleInformation->memory) {
-        bool failed;
-        memory = std::make_unique<Wasm::Memory>(moduleInformation->memory.initial(), moduleInformation->memory.maximum(), failed);
-        RELEASE_ASSERT(!failed);
-        memoryBytes = memory->memory();
-        memorySize = memory->size();
-    }
-    vm.topWasmMemoryPointer = memoryBytes;
-    vm.topWasmMemorySize = memorySize;
+    RELEASE_ASSERT(!moduleInformation->memory);
 
     for (uint32_t i = 0; i < functionCount; ++i) {
         JSArray* testCases = jsCast<JSArray*>(exec->argument(i + 2));