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

Unified Diff: runtime/vm/stub_code_arm.cc

Issue 140793010: Eliminate another debugger stub (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 11 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
« no previous file with comments | « runtime/vm/stub_code.h ('k') | runtime/vm/stub_code_ia32.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/stub_code_arm.cc
===================================================================
--- runtime/vm/stub_code_arm.cc (revision 31898)
+++ runtime/vm/stub_code_arm.cc (working copy)
@@ -1837,30 +1837,6 @@
// LR: return address (Dart code).
-// R5: IC data (unoptimized static call).
-void StubCode::GenerateBreakpointStaticStub(Assembler* assembler) {
- // Create a stub frame as we are pushing some objects on the stack before
- // calling into the runtime.
- __ EnterStubFrame();
- __ LoadImmediate(R0, reinterpret_cast<intptr_t>(Object::null()));
- // Preserve arguments descriptor and make room for result.
- __ PushList((1 << R0) | (1 << R5));
- __ CallRuntime(kBreakpointStaticHandlerRuntimeEntry, 0);
- // Pop code object result and restore arguments descriptor.
- __ PopList((1 << R0) | (1 << R5));
- __ LeaveStubFrame();
-
- // Now call the static function. The breakpoint handler function
- // ensures that the call target is compiled.
- __ ldr(R0, FieldAddress(R0, Code::instructions_offset()));
- __ AddImmediate(R0, Instructions::HeaderSize() - kHeapObjectTag);
- // Load arguments descriptor into R4.
- __ ldr(R4, FieldAddress(R5, ICData::arguments_descriptor_offset()));
- __ bx(R0);
-}
-
-
-// LR: return address (Dart code).
// R5: inline cache data array.
void StubCode::GenerateBreakpointDynamicStub(Assembler* assembler) {
// Create a stub frame as we are pushing some objects on the stack before
« no previous file with comments | « runtime/vm/stub_code.h ('k') | runtime/vm/stub_code_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698