Index: test/cctest/wasm/test-run-wasm-module.cc |
diff --git a/test/cctest/wasm/test-run-wasm-module.cc b/test/cctest/wasm/test-run-wasm-module.cc |
index e352129d8ec1d7cdef6d3997e76420fec066987b..7019a243d412ea54789ce40a77ad79df0cd94f4b 100644 |
--- a/test/cctest/wasm/test-run-wasm-module.cc |
+++ b/test/cctest/wasm/test-run-wasm-module.cc |
@@ -69,7 +69,7 @@ TEST(Run_WasmModule_CallAdd_rev) { |
TEST(Run_WasmModule_Return114) { |
static const int32_t kReturnValue = 114; |
- Zone zone; |
+ ZoneForTesting zone; |
WasmModuleBuilder* builder = new (&zone) WasmModuleBuilder(&zone); |
uint16_t f_index = builder->AddFunction(); |
WasmFunctionBuilder* f = builder->FunctionAt(f_index); |
@@ -83,7 +83,7 @@ TEST(Run_WasmModule_Return114) { |
TEST(Run_WasmModule_CallAdd) { |
- Zone zone; |
+ ZoneForTesting zone; |
WasmModuleBuilder* builder = new (&zone) WasmModuleBuilder(&zone); |
uint16_t f1_index = builder->AddFunction(); |
WasmFunctionBuilder* f = builder->FunctionAt(f1_index); |
@@ -106,7 +106,7 @@ TEST(Run_WasmModule_CallAdd) { |
TEST(Run_WasmModule_ReadLoadedDataSegment) { |
static const byte kDataSegmentDest0 = 12; |
- Zone zone; |
+ ZoneForTesting zone; |
WasmModuleBuilder* builder = new (&zone) WasmModuleBuilder(&zone); |
uint16_t f_index = builder->AddFunction(); |
WasmFunctionBuilder* f = builder->FunctionAt(f_index); |
@@ -124,7 +124,7 @@ TEST(Run_WasmModule_ReadLoadedDataSegment) { |
TEST(Run_WasmModule_CheckMemoryIsZero) { |
static const int kCheckSize = 16 * 1024; |
- Zone zone; |
+ ZoneForTesting zone; |
WasmModuleBuilder* builder = new (&zone) WasmModuleBuilder(&zone); |
uint16_t f_index = builder->AddFunction(); |
WasmFunctionBuilder* f = builder->FunctionAt(f_index); |
@@ -145,7 +145,7 @@ TEST(Run_WasmModule_CheckMemoryIsZero) { |
} |
TEST(Run_WasmModule_CallMain_recursive) { |
- Zone zone; |
+ ZoneForTesting zone; |
WasmModuleBuilder* builder = new (&zone) WasmModuleBuilder(&zone); |
uint16_t f_index = builder->AddFunction(); |
WasmFunctionBuilder* f = builder->FunctionAt(f_index); |
@@ -166,7 +166,7 @@ TEST(Run_WasmModule_CallMain_recursive) { |
} |
TEST(Run_WasmModule_Global) { |
- Zone zone; |
+ ZoneForTesting zone; |
WasmModuleBuilder* builder = new (&zone) WasmModuleBuilder(&zone); |
uint32_t global1 = builder->AddGlobal(MachineType::Int32(), 0); |
uint32_t global2 = builder->AddGlobal(MachineType::Int32(), 0); |