OLD | NEW |
---|---|
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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_ARM64) | 6 #if defined(TARGET_ARCH_ARM64) |
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) && !TA RGET_OS_IOS |
Cutch
2015/10/21 22:00:08
80 columns
rmacnak
2015/10/21 23:06:18
Same guard on arm32.
rmacnak
2015/10/21 23:06:18
Zach, is this needed on ARM64? As far as I know w
Chinmay
2015/10/22 00:13:17
ack
| |
18 #error ARM64 cross-compile only supported on Linux | 18 #error ARM64 cross-compile only supported on Linux |
19 #endif | 19 #endif |
20 | 20 |
21 namespace dart { | 21 namespace dart { |
22 | 22 |
23 DECLARE_FLAG(bool, allow_absolute_addresses); | 23 DECLARE_FLAG(bool, allow_absolute_addresses); |
24 DEFINE_FLAG(bool, use_far_branches, false, "Always use far branches"); | 24 DEFINE_FLAG(bool, use_far_branches, false, "Always use far branches"); |
25 DEFINE_FLAG(bool, print_stop_message, false, "Print stop message."); | 25 DEFINE_FLAG(bool, print_stop_message, false, "Print stop message."); |
26 DECLARE_FLAG(bool, inline_alloc); | 26 DECLARE_FLAG(bool, inline_alloc); |
27 | 27 |
(...skipping 1432 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1460 add(base, array, Operand(index, LSL, shift)); | 1460 add(base, array, Operand(index, LSL, shift)); |
1461 } | 1461 } |
1462 const OperandSize size = Address::OperandSizeFor(cid); | 1462 const OperandSize size = Address::OperandSizeFor(cid); |
1463 ASSERT(Address::CanHoldOffset(offset, Address::Offset, size)); | 1463 ASSERT(Address::CanHoldOffset(offset, Address::Offset, size)); |
1464 return Address(base, offset, Address::Offset, size); | 1464 return Address(base, offset, Address::Offset, size); |
1465 } | 1465 } |
1466 | 1466 |
1467 } // namespace dart | 1467 } // namespace dart |
1468 | 1468 |
1469 #endif // defined TARGET_ARCH_ARM64 | 1469 #endif // defined TARGET_ARCH_ARM64 |
OLD | NEW |