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_IA32) | 6 #if defined(TARGET_ARCH_IA32) |
7 | 7 |
8 #include "vm/assembler.h" | 8 #include "vm/assembler.h" |
9 #include "vm/code_generator.h" | 9 #include "vm/code_generator.h" |
10 #include "vm/heap.h" | 10 #include "vm/heap.h" |
(...skipping 1497 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1508 } | 1508 } |
1509 | 1509 |
1510 | 1510 |
1511 void Assembler::MoveRegister(Register to, Register from) { | 1511 void Assembler::MoveRegister(Register to, Register from) { |
1512 if (to != from) { | 1512 if (to != from) { |
1513 movl(to, from); | 1513 movl(to, from); |
1514 } | 1514 } |
1515 } | 1515 } |
1516 | 1516 |
1517 | 1517 |
1518 void Assembler::PushRegister(Register r) { | |
1519 pushl(r); | |
1520 } | |
1521 | |
1522 | |
1523 void Assembler::PopRegister(Register r) { | 1518 void Assembler::PopRegister(Register r) { |
1524 popl(r); | 1519 popl(r); |
1525 } | 1520 } |
1526 | 1521 |
1527 | 1522 |
1528 void Assembler::AddImmediate(Register reg, const Immediate& imm) { | 1523 void Assembler::AddImmediate(Register reg, const Immediate& imm) { |
1529 int value = imm.value(); | 1524 int value = imm.value(); |
1530 if (value > 0) { | 1525 if (value > 0) { |
1531 if (value == 1) { | 1526 if (value == 1) { |
1532 incl(reg); | 1527 incl(reg); |
(...skipping 524 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2057 | 2052 |
2058 const char* Assembler::XmmRegisterName(XmmRegister reg) { | 2053 const char* Assembler::XmmRegisterName(XmmRegister reg) { |
2059 ASSERT((0 <= reg) && (reg < kNumberOfXmmRegisters)); | 2054 ASSERT((0 <= reg) && (reg < kNumberOfXmmRegisters)); |
2060 return xmm_reg_names[reg]; | 2055 return xmm_reg_names[reg]; |
2061 } | 2056 } |
2062 | 2057 |
2063 | 2058 |
2064 } // namespace dart | 2059 } // namespace dart |
2065 | 2060 |
2066 #endif // defined TARGET_ARCH_IA32 | 2061 #endif // defined TARGET_ARCH_IA32 |
OLD | NEW |