| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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/code_generator.h" | 8 #include "vm/code_generator.h" |
| 9 #include "vm/compiler.h" | 9 #include "vm/compiler.h" |
| 10 #include "vm/ic_data.h" | 10 #include "vm/ic_data.h" |
| (...skipping 1683 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1694 | 1694 |
| 1695 void StubCode::GenerateTwoArgsCheckInlineCacheStub(Assembler* assembler) { | 1695 void StubCode::GenerateTwoArgsCheckInlineCacheStub(Assembler* assembler) { |
| 1696 return GenerateNArgsCheckInlineCacheStub(assembler, 2); | 1696 return GenerateNArgsCheckInlineCacheStub(assembler, 2); |
| 1697 } | 1697 } |
| 1698 | 1698 |
| 1699 | 1699 |
| 1700 // RBX: Function object. | 1700 // RBX: Function object. |
| 1701 // R10: Arguments array. | 1701 // R10: Arguments array. |
| 1702 // TOS(0): return address (Dart code). | 1702 // TOS(0): return address (Dart code). |
| 1703 void StubCode::GenerateBreakpointStaticStub(Assembler* assembler) { | 1703 void StubCode::GenerateBreakpointStaticStub(Assembler* assembler) { |
| 1704 __ Untested("BreakpointStatic stub"); | |
| 1705 __ EnterFrame(0); | 1704 __ EnterFrame(0); |
| 1706 __ pushq(R10); | 1705 __ pushq(R10); |
| 1707 __ pushq(RBX); | 1706 __ pushq(RBX); |
| 1708 __ CallRuntimeFromStub(kBreakpointStaticHandlerRuntimeEntry); | 1707 __ CallRuntimeFromStub(kBreakpointStaticHandlerRuntimeEntry); |
| 1709 __ popq(RBX); | 1708 __ popq(RBX); |
| 1710 __ popq(R10); | 1709 __ popq(R10); |
| 1711 __ LeaveFrame(); | 1710 __ LeaveFrame(); |
| 1712 | 1711 |
| 1713 // Now call the static function. The breakpoint handler function | 1712 // Now call the static function. The breakpoint handler function |
| 1714 // ensures that the call target is compiled. | 1713 // ensures that the call target is compiled. |
| (...skipping 16 matching lines...) Expand all Loading... |
| 1731 __ popq(R10); | 1730 __ popq(R10); |
| 1732 __ popq(RBX); | 1731 __ popq(RBX); |
| 1733 __ LeaveFrame(); | 1732 __ LeaveFrame(); |
| 1734 // Now call the dynamic function. | 1733 // Now call the dynamic function. |
| 1735 __ jmp(&StubCode::OneArgCheckInlineCacheLabel()); | 1734 __ jmp(&StubCode::OneArgCheckInlineCacheLabel()); |
| 1736 } | 1735 } |
| 1737 | 1736 |
| 1738 } // namespace dart | 1737 } // namespace dart |
| 1739 | 1738 |
| 1740 #endif // defined TARGET_ARCH_X64 | 1739 #endif // defined TARGET_ARCH_X64 |
| OLD | NEW |