| Index: runtime/vm/debugger_mips.cc
|
| diff --git a/runtime/vm/debugger_mips.cc b/runtime/vm/debugger_mips.cc
|
| index 570d4d015dccc20bb5af8b391cb19b5ab4ec9925..759ea0fb2f240165fc404ba4cfb770ea01071eab 100644
|
| --- a/runtime/vm/debugger_mips.cc
|
| +++ b/runtime/vm/debugger_mips.cc
|
| @@ -46,12 +46,22 @@ void CodeBreakpoint::PatchCode() {
|
| WritableInstructionsScope writable(instrs.EntryPoint(), instrs.size());
|
| switch (breakpoint_kind_) {
|
| case PcDescriptors::kIcCall:
|
| - case PcDescriptors::kUnoptStaticCall:
|
| - case PcDescriptors::kRuntimeCall:
|
| + case PcDescriptors::kUnoptStaticCall: {
|
| + saved_value_ = CodePatcher::GetStaticCallTargetAt(pc_, code);
|
| + CodePatcher::PatchStaticCallAt(
|
| + pc_, code, StubCode::ICCallBreakpointEntryPoint());
|
| + break;
|
| + }
|
| case PcDescriptors::kClosureCall: {
|
| saved_value_ = CodePatcher::GetStaticCallTargetAt(pc_, code);
|
| - CodePatcher::PatchStaticCallAt(pc_, code,
|
| - StubCode::BreakpointRuntimeEntryPoint());
|
| + CodePatcher::PatchStaticCallAt(
|
| + pc_, code, StubCode::ClosureCallBreakpointEntryPoint());
|
| + break;
|
| + }
|
| + case PcDescriptors::kRuntimeCall: {
|
| + saved_value_ = CodePatcher::GetStaticCallTargetAt(pc_, code);
|
| + CodePatcher::PatchStaticCallAt(
|
| + pc_, code, StubCode::RuntimeCallBreakpointEntryPoint());
|
| break;
|
| }
|
| default:
|
|
|