| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |