Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(801)

Side by Side Diff: runtime/vm/assembler_arm64.cc

Issue 1731743003: Move precompilation-related flags to flags list. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: make print_stop_message default false to fix build Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « runtime/vm/assembler_arm.cc ('k') | runtime/vm/assembler_ia32.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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) && \
18 !TARGET_OS_IOS 18 !TARGET_OS_IOS
19 #error ARM64 cross-compile only supported on Linux 19 #error ARM64 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);
25 DECLARE_FLAG(bool, check_code_pointer); 24 DECLARE_FLAG(bool, check_code_pointer);
26 DECLARE_FLAG(bool, inline_alloc); 25 DECLARE_FLAG(bool, inline_alloc);
27 26
28 DEFINE_FLAG(bool, use_far_branches, false, "Always use far branches"); 27 DEFINE_FLAG(bool, use_far_branches, false, "Always use far branches");
29 DEFINE_FLAG(bool, print_stop_message, false, "Print stop message.");
30 28
31 29
32 Assembler::Assembler(bool use_far_branches) 30 Assembler::Assembler(bool use_far_branches)
33 : buffer_(), 31 : buffer_(),
34 prologue_offset_(-1), 32 prologue_offset_(-1),
35 use_far_branches_(use_far_branches), 33 use_far_branches_(use_far_branches),
36 comments_(), 34 comments_(),
37 constant_pool_allowed_(false) { 35 constant_pool_allowed_(false) {
38 } 36 }
39 37
(...skipping 1443 matching lines...) Expand 10 before | Expand all | Expand 10 after
1483 add(base, array, Operand(index, LSL, shift)); 1481 add(base, array, Operand(index, LSL, shift));
1484 } 1482 }
1485 const OperandSize size = Address::OperandSizeFor(cid); 1483 const OperandSize size = Address::OperandSizeFor(cid);
1486 ASSERT(Address::CanHoldOffset(offset, Address::Offset, size)); 1484 ASSERT(Address::CanHoldOffset(offset, Address::Offset, size));
1487 return Address(base, offset, Address::Offset, size); 1485 return Address(base, offset, Address::Offset, size);
1488 } 1486 }
1489 1487
1490 } // namespace dart 1488 } // namespace dart
1491 1489
1492 #endif // defined TARGET_ARCH_ARM64 1490 #endif // defined TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « runtime/vm/assembler_arm.cc ('k') | runtime/vm/assembler_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698