| 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" // NOLINT | 5 #include "vm/globals.h" // NOLINT |
| 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/cpu.h" | 10 #include "vm/cpu.h" |
| (...skipping 2552 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2563 }; | 2563 }; |
| 2564 | 2564 |
| 2565 | 2565 |
| 2566 // XMM0 is used only as a scratch register in the optimized code. No need to | 2566 // XMM0 is used only as a scratch register in the optimized code. No need to |
| 2567 // save it. | 2567 // save it. |
| 2568 static const intptr_t kNumberOfVolatileXmmRegisters = | 2568 static const intptr_t kNumberOfVolatileXmmRegisters = |
| 2569 kNumberOfXmmRegisters - 1; | 2569 kNumberOfXmmRegisters - 1; |
| 2570 | 2570 |
| 2571 | 2571 |
| 2572 void Assembler::EnterCallRuntimeFrame(intptr_t frame_space) { | 2572 void Assembler::EnterCallRuntimeFrame(intptr_t frame_space) { |
| 2573 Comment("EnterCallRuntimeFrame"); |
| 2573 EnterFrame(0); | 2574 EnterFrame(0); |
| 2574 | 2575 |
| 2575 // Preserve volatile CPU registers. | 2576 // Preserve volatile CPU registers. |
| 2576 for (intptr_t i = 0; i < kNumberOfVolatileCpuRegisters; i++) { | 2577 for (intptr_t i = 0; i < kNumberOfVolatileCpuRegisters; i++) { |
| 2577 pushl(volatile_cpu_registers[i]); | 2578 pushl(volatile_cpu_registers[i]); |
| 2578 } | 2579 } |
| 2579 | 2580 |
| 2580 // Preserve all XMM registers except XMM0 | 2581 // Preserve all XMM registers except XMM0 |
| 2581 subl(ESP, Immediate((kNumberOfXmmRegisters - 1) * kFpuRegisterSize)); | 2582 subl(ESP, Immediate((kNumberOfXmmRegisters - 1) * kFpuRegisterSize)); |
| 2582 // Store XMM registers with the lowest register number at the lowest | 2583 // Store XMM registers with the lowest register number at the lowest |
| (...skipping 628 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3211 | 3212 |
| 3212 const char* Assembler::FpuRegisterName(FpuRegister reg) { | 3213 const char* Assembler::FpuRegisterName(FpuRegister reg) { |
| 3213 ASSERT((0 <= reg) && (reg < kNumberOfXmmRegisters)); | 3214 ASSERT((0 <= reg) && (reg < kNumberOfXmmRegisters)); |
| 3214 return xmm_reg_names[reg]; | 3215 return xmm_reg_names[reg]; |
| 3215 } | 3216 } |
| 3216 | 3217 |
| 3217 | 3218 |
| 3218 } // namespace dart | 3219 } // namespace dart |
| 3219 | 3220 |
| 3220 #endif // defined TARGET_ARCH_IA32 | 3221 #endif // defined TARGET_ARCH_IA32 |
| OLD | NEW |