Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(994)

Unified Diff: runtime/vm/debugger_mips.cc

Issue 339183010: Specialize breakpoint stubs by set of live registers of the stubs they are intercepting. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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:

Powered by Google App Engine
This is Rietveld 408576698