Index: test/cctest/wasm/wasm-run-utils.h |
diff --git a/test/cctest/wasm/wasm-run-utils.h b/test/cctest/wasm/wasm-run-utils.h |
index 1f758bb8535dcf5ec316210a4a2b70829aa35aa9..17fb27c8df3d5fa90d42095da609ac635a8621b7 100644 |
--- a/test/cctest/wasm/wasm-run-utils.h |
+++ b/test/cctest/wasm/wasm-run-utils.h |
@@ -73,9 +73,10 @@ class TestingModule : public ModuleEnv { |
: execution_mode_(mode), |
instance_(&module_), |
isolate_(CcTest::InitIsolateOnce()), |
+ zone_(&allocator_), |
global_offset(0), |
interpreter_(mode == kExecuteInterpreted |
- ? new WasmInterpreter(&instance_, &allocator_) |
+ ? new WasmInterpreter(&instance_, &zone_) |
: nullptr) { |
module = &module_; |
instance = &instance_; |
@@ -240,6 +241,7 @@ class TestingModule : public ModuleEnv { |
WasmModuleInstance instance_; |
Isolate* isolate_; |
v8::base::AccountingAllocator allocator_; |
+ Zone zone_; |
uint32_t global_offset; |
V8_ALIGNED(8) byte global_data[kMaxGlobalsSize]; // preallocated global data. |
WasmInterpreter* interpreter_; |
@@ -445,7 +447,7 @@ class WasmFunctionCompiler : public HandleAndZoneScope, |
function_->func_index = 0; |
function_->sig_index = 0; |
if (mode == kExecuteInterpreted) { |
- interpreter_ = new WasmInterpreter(nullptr, zone()->allocator()); |
+ interpreter_ = new WasmInterpreter(nullptr, zone()); |
int index = interpreter_->AddFunctionForTesting(function_); |
CHECK_EQ(0, index); |
} |