| 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 1792 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1803 }; | 1803 }; |
| 1804 | 1804 |
| 1805 | 1805 |
| 1806 // XMM0 is used only as a scratch register in the optimized code. No need to | 1806 // XMM0 is used only as a scratch register in the optimized code. No need to |
| 1807 // save it. | 1807 // save it. |
| 1808 static const intptr_t kNumberOfVolatileXmmRegisters = | 1808 static const intptr_t kNumberOfVolatileXmmRegisters = |
| 1809 kNumberOfXmmRegisters - 1; | 1809 kNumberOfXmmRegisters - 1; |
| 1810 | 1810 |
| 1811 | 1811 |
| 1812 void Assembler::EnterCallRuntimeFrame(intptr_t frame_space) { | 1812 void Assembler::EnterCallRuntimeFrame(intptr_t frame_space) { |
| 1813 enter(Immediate(0)); | 1813 EnterFrame(0); |
| 1814 | 1814 |
| 1815 // Preserve volatile CPU registers. | 1815 // Preserve volatile CPU registers. |
| 1816 for (intptr_t i = 0; i < kNumberOfVolatileCpuRegisters; i++) { | 1816 for (intptr_t i = 0; i < kNumberOfVolatileCpuRegisters; i++) { |
| 1817 pushl(volatile_cpu_registers[i]); | 1817 pushl(volatile_cpu_registers[i]); |
| 1818 } | 1818 } |
| 1819 | 1819 |
| 1820 // Preserve all XMM registers except XMM0 | 1820 // Preserve all XMM registers except XMM0 |
| 1821 subl(ESP, Immediate((kNumberOfXmmRegisters - 1) * kDoubleSize)); | 1821 subl(ESP, Immediate((kNumberOfXmmRegisters - 1) * kDoubleSize)); |
| 1822 // Store XMM registers with the lowest register number at the lowest | 1822 // Store XMM registers with the lowest register number at the lowest |
| 1823 // address. | 1823 // address. |
| (...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2097 | 2097 |
| 2098 const char* Assembler::XmmRegisterName(XmmRegister reg) { | 2098 const char* Assembler::XmmRegisterName(XmmRegister reg) { |
| 2099 ASSERT((0 <= reg) && (reg < kNumberOfXmmRegisters)); | 2099 ASSERT((0 <= reg) && (reg < kNumberOfXmmRegisters)); |
| 2100 return xmm_reg_names[reg]; | 2100 return xmm_reg_names[reg]; |
| 2101 } | 2101 } |
| 2102 | 2102 |
| 2103 | 2103 |
| 2104 } // namespace dart | 2104 } // namespace dart |
| 2105 | 2105 |
| 2106 #endif // defined TARGET_ARCH_IA32 | 2106 #endif // defined TARGET_ARCH_IA32 |
| OLD | NEW |