| 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. | |
| 17 #if !defined(USING_SIMULATOR) && !defined(__linux__) && !defined(ANDROID) && \ | |
| 18 !TARGET_OS_IOS | |
| 19 #error ARM64 cross-compile only supported on Linux | |
| 20 #endif | |
| 21 | |
| 22 namespace dart { | 16 namespace dart { |
| 23 | 17 |
| 24 DECLARE_FLAG(bool, check_code_pointer); | 18 DECLARE_FLAG(bool, check_code_pointer); |
| 25 DECLARE_FLAG(bool, inline_alloc); | 19 DECLARE_FLAG(bool, inline_alloc); |
| 26 | 20 |
| 27 DEFINE_FLAG(bool, use_far_branches, false, "Always use far branches"); | 21 DEFINE_FLAG(bool, use_far_branches, false, "Always use far branches"); |
| 28 | 22 |
| 29 | 23 |
| 30 Assembler::Assembler(bool use_far_branches) | 24 Assembler::Assembler(bool use_far_branches) |
| 31 : buffer_(), | 25 : buffer_(), |
| (...skipping 1396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1428 add(base, array, Operand(index, LSL, shift)); | 1422 add(base, array, Operand(index, LSL, shift)); |
| 1429 } | 1423 } |
| 1430 const OperandSize size = Address::OperandSizeFor(cid); | 1424 const OperandSize size = Address::OperandSizeFor(cid); |
| 1431 ASSERT(Address::CanHoldOffset(offset, Address::Offset, size)); | 1425 ASSERT(Address::CanHoldOffset(offset, Address::Offset, size)); |
| 1432 return Address(base, offset, Address::Offset, size); | 1426 return Address(base, offset, Address::Offset, size); |
| 1433 } | 1427 } |
| 1434 | 1428 |
| 1435 } // namespace dart | 1429 } // namespace dart |
| 1436 | 1430 |
| 1437 #endif // defined TARGET_ARCH_ARM64 | 1431 #endif // defined TARGET_ARCH_ARM64 |
| OLD | NEW |