Index: runtime/vm/stub_code_x64.cc |
=================================================================== |
--- runtime/vm/stub_code_x64.cc (revision 22595) |
+++ runtime/vm/stub_code_x64.cc (working copy) |
@@ -1682,8 +1682,21 @@ |
GenerateNArgsCheckInlineCacheStub(assembler, 1); |
} |
+ |
// R10: Arguments descriptor array. |
// TOS(0): return address (Dart code). |
+void StubCode::GenerateBreakpointClosureStub(Assembler* assembler) { |
+ __ EnterStubFrame(); |
+ __ pushq(R10); // Preserve arguments descriptor. |
+ __ CallRuntime(kBreakpointClosureHandlerRuntimeEntry); |
+ __ popq(R10); // Restore arguments descriptor. |
+ __ LeaveFrame(); |
+ __ jmp(&StubCode::CallClosureFunctionLabel()); |
+} |
+ |
+ |
+// R10: Arguments descriptor array. |
+// TOS(0): return address (Dart code). |
void StubCode::GenerateBreakpointStaticStub(Assembler* assembler) { |
const Immediate& raw_null = |
Immediate(reinterpret_cast<intptr_t>(Object::null())); |