| 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 3222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3233 void Assembler::EnterStubFrame() { | 3233 void Assembler::EnterStubFrame() { |
| 3234 EnterDartFrame(0); | 3234 EnterDartFrame(0); |
| 3235 } | 3235 } |
| 3236 | 3236 |
| 3237 | 3237 |
| 3238 void Assembler::LeaveStubFrame() { | 3238 void Assembler::LeaveStubFrame() { |
| 3239 LeaveDartFrame(); | 3239 LeaveDartFrame(); |
| 3240 } | 3240 } |
| 3241 | 3241 |
| 3242 | 3242 |
| 3243 void Assembler::NoMonomorphicCheckedEntry() { | |
| 3244 buffer_.Reset(); | |
| 3245 bkpt(0); | |
| 3246 bkpt(0); | |
| 3247 ASSERT(CodeSize() == Instructions::kCheckedEntryOffset); | |
| 3248 } | |
| 3249 | |
| 3250 | |
| 3251 // R0 receiver, R9 guarded cid as Smi | 3243 // R0 receiver, R9 guarded cid as Smi |
| 3252 void Assembler::MonomorphicCheckedEntry() { | 3244 void Assembler::MonomorphicCheckedEntry() { |
| 3245 ASSERT(has_single_entry_point_); |
| 3246 has_single_entry_point_ = false; |
| 3253 #if defined(TESTING) || defined(DEBUG) | 3247 #if defined(TESTING) || defined(DEBUG) |
| 3254 bool saved_use_far_branches = use_far_branches(); | 3248 bool saved_use_far_branches = use_far_branches(); |
| 3255 set_use_far_branches(false); | 3249 set_use_far_branches(false); |
| 3256 #endif | 3250 #endif |
| 3257 | 3251 |
| 3258 Label miss; | 3252 Label miss; |
| 3259 Bind(&miss); | 3253 Bind(&miss); |
| 3260 ldr(IP, Address(THR, Thread::monomorphic_miss_entry_offset())); | 3254 ldr(IP, Address(THR, Thread::monomorphic_miss_entry_offset())); |
| 3261 bx(IP); | 3255 bx(IP); |
| 3262 | 3256 |
| (...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3638 | 3632 |
| 3639 | 3633 |
| 3640 const char* Assembler::FpuRegisterName(FpuRegister reg) { | 3634 const char* Assembler::FpuRegisterName(FpuRegister reg) { |
| 3641 ASSERT((0 <= reg) && (reg < kNumberOfFpuRegisters)); | 3635 ASSERT((0 <= reg) && (reg < kNumberOfFpuRegisters)); |
| 3642 return fpu_reg_names[reg]; | 3636 return fpu_reg_names[reg]; |
| 3643 } | 3637 } |
| 3644 | 3638 |
| 3645 } // namespace dart | 3639 } // namespace dart |
| 3646 | 3640 |
| 3647 #endif // defined TARGET_ARCH_ARM | 3641 #endif // defined TARGET_ARCH_ARM |
| OLD | NEW |