| 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/assembler.h" | 8 #include "vm/assembler.h" |
| 9 #include "vm/heap.h" | 9 #include "vm/heap.h" |
| 10 #include "vm/memory_region.h" | 10 #include "vm/memory_region.h" |
| (...skipping 1589 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1600 } | 1600 } |
| 1601 | 1601 |
| 1602 | 1602 |
| 1603 void Assembler::MoveRegister(Register to, Register from) { | 1603 void Assembler::MoveRegister(Register to, Register from) { |
| 1604 if (to != from) { | 1604 if (to != from) { |
| 1605 movq(to, from); | 1605 movq(to, from); |
| 1606 } | 1606 } |
| 1607 } | 1607 } |
| 1608 | 1608 |
| 1609 | 1609 |
| 1610 void Assembler::PushRegister(Register r) { | |
| 1611 pushq(r); | |
| 1612 } | |
| 1613 | |
| 1614 | |
| 1615 void Assembler::PopRegister(Register r) { | 1610 void Assembler::PopRegister(Register r) { |
| 1616 popq(r); | 1611 popq(r); |
| 1617 } | 1612 } |
| 1618 | 1613 |
| 1619 | 1614 |
| 1620 void Assembler::AddImmediate(Register reg, const Immediate& imm) { | 1615 void Assembler::AddImmediate(Register reg, const Immediate& imm) { |
| 1621 int64_t value = imm.value(); | 1616 int64_t value = imm.value(); |
| 1622 if (value > 0) { | 1617 if (value > 0) { |
| 1623 if (value == 1) { | 1618 if (value == 1) { |
| 1624 incq(reg); | 1619 incq(reg); |
| (...skipping 485 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2110 | 2105 |
| 2111 const char* Assembler::XmmRegisterName(XmmRegister reg) { | 2106 const char* Assembler::XmmRegisterName(XmmRegister reg) { |
| 2112 ASSERT((0 <= reg) && (reg < kNumberOfXmmRegisters)); | 2107 ASSERT((0 <= reg) && (reg < kNumberOfXmmRegisters)); |
| 2113 return xmm_reg_names[reg]; | 2108 return xmm_reg_names[reg]; |
| 2114 } | 2109 } |
| 2115 | 2110 |
| 2116 | 2111 |
| 2117 } // namespace dart | 2112 } // namespace dart |
| 2118 | 2113 |
| 2119 #endif // defined TARGET_ARCH_X64 | 2114 #endif // defined TARGET_ARCH_X64 |
| OLD | NEW |