| Index: src/compiler/wasm-compiler.cc
|
| diff --git a/src/compiler/wasm-compiler.cc b/src/compiler/wasm-compiler.cc
|
| index 1b87c3567445b3baa226294d1d82341f1b8b50a3..c3a84d24d66cfc20ef41c136925694fed8b47723 100644
|
| --- a/src/compiler/wasm-compiler.cc
|
| +++ b/src/compiler/wasm-compiler.cc
|
| @@ -2530,7 +2530,7 @@ Handle<JSFunction> CompileJSToWasmWrapper(
|
| //----------------------------------------------------------------------------
|
| // Create the Graph
|
| //----------------------------------------------------------------------------
|
| - Zone zone;
|
| + Zone zone(isolate->allocator());
|
| Graph graph(&zone);
|
| CommonOperatorBuilder common(&zone);
|
| JSOperatorBuilder javascript(&zone);
|
| @@ -2622,7 +2622,7 @@ Handle<Code> CompileWasmToJSWrapper(Isolate* isolate, wasm::ModuleEnv* module,
|
| //----------------------------------------------------------------------------
|
| // Create the Graph
|
| //----------------------------------------------------------------------------
|
| - Zone zone;
|
| + Zone zone(isolate->allocator());
|
| Graph graph(&zone);
|
| CommonOperatorBuilder common(&zone);
|
| JSOperatorBuilder javascript(&zone);
|
| @@ -2716,7 +2716,7 @@ Handle<Code> CompileWasmFunction(wasm::ErrorThrower& thrower, Isolate* isolate,
|
| }
|
|
|
| // Create a TF graph during decoding.
|
| - Zone zone;
|
| + Zone zone(isolate->allocator());
|
| Graph graph(&zone);
|
| CommonOperatorBuilder common(&zone);
|
| MachineOperatorBuilder machine(
|
| @@ -2728,7 +2728,8 @@ Handle<Code> CompileWasmFunction(wasm::ErrorThrower& thrower, Isolate* isolate,
|
| module_env, function.sig, module_env->module->module_start,
|
| module_env->module->module_start + function.code_start_offset,
|
| module_env->module->module_start + function.code_end_offset};
|
| - wasm::TreeResult result = wasm::BuildTFGraph(&builder, body);
|
| + wasm::TreeResult result =
|
| + wasm::BuildTFGraph(isolate->allocator(), &builder, body);
|
|
|
| if (result.failed()) {
|
| if (FLAG_trace_wasm_compiler) {
|
| @@ -2747,7 +2748,7 @@ Handle<Code> CompileWasmFunction(wasm::ErrorThrower& thrower, Isolate* isolate,
|
|
|
| int index = static_cast<int>(function.func_index);
|
| if (index >= FLAG_trace_wasm_ast_start && index < FLAG_trace_wasm_ast_end) {
|
| - PrintAst(body);
|
| + PrintAst(isolate->allocator(), body);
|
| }
|
|
|
| if (FLAG_trace_wasm_decode_time) {
|
|
|