Index: src/wasm/wasm-debug.cc |
diff --git a/src/wasm/wasm-debug.cc b/src/wasm/wasm-debug.cc |
index 0327c1f1414166e6946096f5a19b4eb84b04f808..79a1b7e92cd75c7677b1c737539d63082b68228f 100644 |
--- a/src/wasm/wasm-debug.cc |
+++ b/src/wasm/wasm-debug.cc |
@@ -386,7 +386,8 @@ void RedirectCallsitesInCode(Code* code, Code* old_target, Code* new_target) { |
DCHECK(RelocInfo::IsCodeTarget(it.rinfo()->rmode())); |
Code* target = Code::GetCodeFromTargetAddress(it.rinfo()->target_address()); |
if (target != old_target) continue; |
- it.rinfo()->set_target_address(new_target->instruction_start()); |
+ it.rinfo()->set_target_address(code->GetIsolate(), |
+ new_target->instruction_start()); |
} |
} |