| Index: src/wasm/wasm-text.cc
|
| diff --git a/src/wasm/wasm-text.cc b/src/wasm/wasm-text.cc
|
| index 1dabdf5691a55af4bf9d1c19d5425eba682623fb..282af4877049044df1b93ea57dfafe20d4564bd8 100644
|
| --- a/src/wasm/wasm-text.cc
|
| +++ b/src/wasm/wasm-text.cc
|
| @@ -69,8 +69,7 @@ void wasm::PrintWasmText(const WasmModule *module,
|
|
|
| // Print the local declarations.
|
| BodyLocalDecls decls(&zone);
|
| - Vector<const byte> func_bytes = wire_bytes.module_bytes.SubVector(
|
| - fun->code_start_offset, fun->code_end_offset);
|
| + Vector<const byte> func_bytes = wire_bytes.GetFunctionBytes(fun);
|
| BytecodeIterator i(func_bytes.begin(), func_bytes.end(), &decls);
|
| DCHECK_LT(func_bytes.begin(), i.pc());
|
| if (!decls.type_list.empty()) {
|
|
|