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

Side by Side Diff: runtime/vm/stub_code_x64.cc

Issue 14991010: Make breakpoints on == fire reliably (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/vm/stub_code_mips.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "vm/globals.h" 5 #include "vm/globals.h"
6 #if defined(TARGET_ARCH_X64) 6 #if defined(TARGET_ARCH_X64)
7 7
8 #include "vm/assembler.h" 8 #include "vm/assembler.h"
9 #include "vm/compiler.h" 9 #include "vm/compiler.h"
10 #include "vm/dart_entry.h" 10 #include "vm/dart_entry.h"
(...skipping 1667 matching lines...) Expand 10 before | Expand all | Expand 10 after
1678 } 1678 }
1679 1679
1680 1680
1681 // Megamorphic call is currently implemented as IC call but through a stub 1681 // Megamorphic call is currently implemented as IC call but through a stub
1682 // that does not check/count function invocations. 1682 // that does not check/count function invocations.
1683 void StubCode::GenerateMegamorphicCallStub(Assembler* assembler) { 1683 void StubCode::GenerateMegamorphicCallStub(Assembler* assembler) {
1684 GenerateNArgsCheckInlineCacheStub(assembler, 1); 1684 GenerateNArgsCheckInlineCacheStub(assembler, 1);
1685 } 1685 }
1686 1686
1687 1687
1688 // RBX: ICData.
1689 // TOS(0): return address (Dart code).
1690 void StubCode::GenerateBreakpointEqNullStub(Assembler* assembler) {
1691 __ EnterStubFrame();
1692 __ pushq(RBX); // Preserve ICData.
1693 __ CallRuntime(kBreakpointClosureHandlerRuntimeEntry);
1694 __ popq(RBX); // Restore arguments descriptor.
1695 __ LeaveFrame();
1696 __ jmp(&StubCode::EqualityWithNullArgLabel());
1697 }
1698
1699
1688 // R10: Arguments descriptor array. 1700 // R10: Arguments descriptor array.
1689 // TOS(0): return address (Dart code). 1701 // TOS(0): return address (Dart code).
1690 void StubCode::GenerateBreakpointClosureStub(Assembler* assembler) { 1702 void StubCode::GenerateBreakpointClosureStub(Assembler* assembler) {
1691 __ EnterStubFrame(); 1703 __ EnterStubFrame();
1692 __ pushq(R10); // Preserve arguments descriptor. 1704 __ pushq(R10); // Preserve arguments descriptor.
1693 __ CallRuntime(kBreakpointClosureHandlerRuntimeEntry); 1705 __ CallRuntime(kBreakpointClosureHandlerRuntimeEntry);
1694 __ popq(R10); // Restore arguments descriptor. 1706 __ popq(R10); // Restore arguments descriptor.
1695 __ LeaveFrame(); 1707 __ LeaveFrame();
1696 __ jmp(&StubCode::CallClosureFunctionLabel()); 1708 __ jmp(&StubCode::CallClosureFunctionLabel());
1697 } 1709 }
(...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after
2092 __ cmpq(left, right); 2104 __ cmpq(left, right);
2093 __ Bind(&done); 2105 __ Bind(&done);
2094 __ popq(right); 2106 __ popq(right);
2095 __ popq(left); 2107 __ popq(left);
2096 __ ret(); 2108 __ ret();
2097 } 2109 }
2098 2110
2099 } // namespace dart 2111 } // namespace dart
2100 2112
2101 #endif // defined TARGET_ARCH_X64 2113 #endif // defined TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « runtime/vm/stub_code_mips.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698