Title: [210202] trunk/Source/_javascript_Core
Revision
210202
Author
[email protected]
Date
2016-12-28 16:18:44 -0800 (Wed, 28 Dec 2016)

Log Message

Unreviewed. Fix jsc.cpp build error.

* jsc.cpp:
(functionTestWasmModuleFunctions):

Modified Paths

Diff

Modified: trunk/Source/_javascript_Core/ChangeLog (210201 => 210202)


--- trunk/Source/_javascript_Core/ChangeLog	2016-12-29 00:06:52 UTC (rev 210201)
+++ trunk/Source/_javascript_Core/ChangeLog	2016-12-29 00:18:44 UTC (rev 210202)
@@ -1,5 +1,12 @@
 2016-12-28  Saam Barati  <[email protected]>
 
+        Unreviewed. Fix jsc.cpp build error.
+
+        * jsc.cpp:
+        (functionTestWasmModuleFunctions):
+
+2016-12-28  Saam Barati  <[email protected]>
+
         WebAssembly: Implement grow_memory and current_memory
         https://bugs.webkit.org/show_bug.cgi?id=166448
         <rdar://problem/29803676>

Modified: trunk/Source/_javascript_Core/jsc.cpp (210201 => 210202)


--- trunk/Source/_javascript_Core/jsc.cpp	2016-12-29 00:06:52 UTC (rev 210201)
+++ trunk/Source/_javascript_Core/jsc.cpp	2016-12-29 00:18:44 UTC (rev 210202)
@@ -2648,21 +2648,9 @@
             });
     }
 
-    void* memoryBytes = nullptr;
-    uint32_t memorySize = 0;
-    std::unique_ptr<Wasm::Memory> memory;
     std::unique_ptr<Wasm::ModuleInformation> moduleInformation = plan.takeModuleInformation();
+    RELEASE_ASSERT(!moduleInformation->memory);
 
-    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;
-
     for (uint32_t i = 0; i < functionCount; ++i) {
         JSArray* testCases = jsCast<JSArray*>(exec->argument(i + 2));
         for (unsigned testIndex = 0; testIndex < testCases->length(); ++testIndex) {
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to