| Index: src/wasm/wasm-module.cc
|
| diff --git a/src/wasm/wasm-module.cc b/src/wasm/wasm-module.cc
|
| index 342f10c630d46f4ab88b4c863871c274ead08604..f571f5f568ab560eefc82aff3f01bc81c7a42e21 100644
|
| --- a/src/wasm/wasm-module.cc
|
| +++ b/src/wasm/wasm-module.cc
|
| @@ -459,8 +459,9 @@ MaybeHandle<JSObject> WasmModule::Instantiate(Isolate* isolate,
|
| //-------------------------------------------------------------------------
|
|
|
| // First pass: compile each function and initialize the code table.
|
| - index = 0;
|
| - for (const WasmFunction& func : functions) {
|
| + index = FLAG_skip_compiling_wasm_funcs;
|
| + while (index < functions.size()) {
|
| + const WasmFunction& func = functions[index];
|
| if (thrower.error()) break;
|
| DCHECK_EQ(index, func.func_index);
|
|
|
|
|