| Index: test/cctest/wasm/test-run-wasm-interpreter.cc
|
| diff --git a/test/cctest/wasm/test-run-wasm-interpreter.cc b/test/cctest/wasm/test-run-wasm-interpreter.cc
|
| index 42b0f8811286a00968f68a650d6a8f7cf658bde9..7970054a154cf3bfe29784aa92f2b769d774a59e 100644
|
| --- a/test/cctest/wasm/test-run-wasm-interpreter.cc
|
| +++ b/test/cctest/wasm/test-run-wasm-interpreter.cc
|
| @@ -178,8 +178,8 @@ TEST(Breakpoint_I32Add) {
|
| WasmInterpreter* interpreter = r.interpreter();
|
| WasmInterpreter::Thread* thread = interpreter->GetThread(0);
|
| for (int i = 0; i < kNumBreakpoints; i++) {
|
| - interpreter->SetBreakpoint(r.function(), kLocalsDeclSize + offsets[i],
|
| - true);
|
| + interpreter->SetBreakpoint(r.function()->func_index,
|
| + kLocalsDeclSize + offsets[i], true);
|
| }
|
|
|
| FOR_UINT32_INPUTS(a) {
|
| @@ -260,8 +260,8 @@ TEST(Breakpoint_I32And_disable) {
|
| for (uint32_t b = 11; b < 3000000000u; b += 1000000000u) {
|
| // Run with and without breakpoints.
|
| for (int do_break = 0; do_break < 2; do_break++) {
|
| - interpreter->SetBreakpoint(r.function(), kLocalsDeclSize + offsets[0],
|
| - do_break);
|
| + interpreter->SetBreakpoint(r.function()->func_index,
|
| + kLocalsDeclSize + offsets[0], do_break);
|
| thread->Reset();
|
| WasmVal args[] = {WasmVal(*a), WasmVal(b)};
|
| thread->PushFrame(r.function(), args);
|
|
|