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_ARM) | 6 #if defined(TARGET_ARCH_ARM) |
7 | 7 |
8 #include "vm/assembler.h" | 8 #include "vm/assembler.h" |
9 #include "vm/cpu.h" | 9 #include "vm/cpu.h" |
10 #include "vm/longjump.h" | 10 #include "vm/longjump.h" |
(...skipping 3291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3302 | 3302 |
3303 void Assembler::CallRuntime(const RuntimeEntry& entry, | 3303 void Assembler::CallRuntime(const RuntimeEntry& entry, |
3304 intptr_t argument_count) { | 3304 intptr_t argument_count) { |
3305 entry.Call(this, argument_count); | 3305 entry.Call(this, argument_count); |
3306 } | 3306 } |
3307 | 3307 |
3308 | 3308 |
3309 void Assembler::EnterDartFrame(intptr_t frame_size) { | 3309 void Assembler::EnterDartFrame(intptr_t frame_size) { |
3310 ASSERT(!constant_pool_allowed()); | 3310 ASSERT(!constant_pool_allowed()); |
3311 | 3311 |
3312 // Registers are pushed in descending order: R5 | R6 | R11 | R14. | 3312 // Registers are pushed in descending order: R5 | R6 | R7/R11 | R14. |
| 3313 COMPILE_ASSERT(PP < CODE_REG); |
| 3314 COMPILE_ASSERT(CODE_REG < FP); |
| 3315 COMPILE_ASSERT(FP < LR); |
3313 EnterFrame((1 << PP) | (1 << CODE_REG) | (1 << FP) | (1 << LR), 0); | 3316 EnterFrame((1 << PP) | (1 << CODE_REG) | (1 << FP) | (1 << LR), 0); |
3314 | 3317 |
3315 // Setup pool pointer for this dart function. | 3318 // Setup pool pointer for this dart function. |
3316 LoadPoolPointer(); | 3319 LoadPoolPointer(); |
3317 | 3320 |
3318 // Reserve space for locals. | 3321 // Reserve space for locals. |
3319 AddImmediate(SP, -frame_size); | 3322 AddImmediate(SP, -frame_size); |
3320 } | 3323 } |
3321 | 3324 |
3322 | 3325 |
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3640 | 3643 |
3641 | 3644 |
3642 const char* Assembler::FpuRegisterName(FpuRegister reg) { | 3645 const char* Assembler::FpuRegisterName(FpuRegister reg) { |
3643 ASSERT((0 <= reg) && (reg < kNumberOfFpuRegisters)); | 3646 ASSERT((0 <= reg) && (reg < kNumberOfFpuRegisters)); |
3644 return fpu_reg_names[reg]; | 3647 return fpu_reg_names[reg]; |
3645 } | 3648 } |
3646 | 3649 |
3647 } // namespace dart | 3650 } // namespace dart |
3648 | 3651 |
3649 #endif // defined TARGET_ARCH_ARM | 3652 #endif // defined TARGET_ARCH_ARM |
OLD | NEW |