| 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" |
| 11 #include "vm/runtime_entry.h" | 11 #include "vm/runtime_entry.h" |
| 12 #include "vm/simulator.h" | 12 #include "vm/simulator.h" |
| 13 #include "vm/stack_frame.h" | 13 #include "vm/stack_frame.h" |
| 14 #include "vm/stub_code.h" | 14 #include "vm/stub_code.h" |
| 15 | 15 |
| 16 // An extra check since we are assuming the existence of /proc/cpuinfo below. | 16 // An extra check since we are assuming the existence of /proc/cpuinfo below. |
| 17 #if !defined(USING_SIMULATOR) && !defined(__linux__) && !defined(ANDROID) && \ | 17 #if !defined(USING_SIMULATOR) && !defined(__linux__) && !defined(ANDROID) && \ |
| 18 !TARGET_OS_IOS | 18 !TARGET_OS_IOS |
| 19 #error ARM cross-compile only supported on Linux | 19 #error ARM cross-compile only supported on Linux |
| 20 #endif | 20 #endif |
| 21 | 21 |
| 22 namespace dart { | 22 namespace dart { |
| 23 | 23 |
| 24 DECLARE_FLAG(bool, allow_absolute_addresses); |
| 24 DECLARE_FLAG(bool, check_code_pointer); | 25 DECLARE_FLAG(bool, check_code_pointer); |
| 25 DECLARE_FLAG(bool, inline_alloc); | 26 DECLARE_FLAG(bool, inline_alloc); |
| 26 | 27 |
| 28 DEFINE_FLAG(bool, print_stop_message, true, "Print stop message."); |
| 29 |
| 27 uint32_t Address::encoding3() const { | 30 uint32_t Address::encoding3() const { |
| 28 if (kind_ == Immediate) { | 31 if (kind_ == Immediate) { |
| 29 uint32_t offset = encoding_ & kOffset12Mask; | 32 uint32_t offset = encoding_ & kOffset12Mask; |
| 30 ASSERT(offset < 256); | 33 ASSERT(offset < 256); |
| 31 return (encoding_ & ~kOffset12Mask) | B22 | | 34 return (encoding_ & ~kOffset12Mask) | B22 | |
| 32 ((offset & 0xf0) << 4) | (offset & 0xf); | 35 ((offset & 0xf0) << 4) | (offset & 0xf); |
| 33 } | 36 } |
| 34 ASSERT(kind_ == IndexRegister); | 37 ASSERT(kind_ == IndexRegister); |
| 35 return encoding_; | 38 return encoding_; |
| 36 } | 39 } |
| (...skipping 3642 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3679 | 3682 |
| 3680 | 3683 |
| 3681 const char* Assembler::FpuRegisterName(FpuRegister reg) { | 3684 const char* Assembler::FpuRegisterName(FpuRegister reg) { |
| 3682 ASSERT((0 <= reg) && (reg < kNumberOfFpuRegisters)); | 3685 ASSERT((0 <= reg) && (reg < kNumberOfFpuRegisters)); |
| 3683 return fpu_reg_names[reg]; | 3686 return fpu_reg_names[reg]; |
| 3684 } | 3687 } |
| 3685 | 3688 |
| 3686 } // namespace dart | 3689 } // namespace dart |
| 3687 | 3690 |
| 3688 #endif // defined TARGET_ARCH_ARM | 3691 #endif // defined TARGET_ARCH_ARM |
| OLD | NEW |