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

Side by Side Diff: runtime/vm/assembler_mips.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_ia32.cc ('k') | runtime/vm/assembler_x64.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) 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_MIPS) 6 #if defined(TARGET_ARCH_MIPS)
7 7
8 #include "vm/assembler.h" 8 #include "vm/assembler.h"
9 #include "vm/longjump.h" 9 #include "vm/longjump.h"
10 #include "vm/runtime_entry.h" 10 #include "vm/runtime_entry.h"
11 #include "vm/simulator.h" 11 #include "vm/simulator.h"
12 #include "vm/stack_frame.h" 12 #include "vm/stack_frame.h"
13 #include "vm/stub_code.h" 13 #include "vm/stub_code.h"
14 14
15 namespace dart { 15 namespace dart {
16 16
17 DECLARE_FLAG(bool, allow_absolute_addresses);
18 DECLARE_FLAG(bool, check_code_pointer); 17 DECLARE_FLAG(bool, check_code_pointer);
19 DECLARE_FLAG(bool, inline_alloc); 18 DECLARE_FLAG(bool, inline_alloc);
20 #if defined(USING_SIMULATOR) 19 #if defined(USING_SIMULATOR)
21 DECLARE_FLAG(int, trace_sim_after); 20 DECLARE_FLAG(int, trace_sim_after);
22 #endif 21 #endif
23 22
24 DEFINE_FLAG(bool, print_stop_message, false, "Print stop message.");
25
26 void Assembler::InitializeMemoryWithBreakpoints(uword data, intptr_t length) { 23 void Assembler::InitializeMemoryWithBreakpoints(uword data, intptr_t length) {
27 ASSERT(Utils::IsAligned(data, 4)); 24 ASSERT(Utils::IsAligned(data, 4));
28 ASSERT(Utils::IsAligned(length, 4)); 25 ASSERT(Utils::IsAligned(length, 4));
29 const uword end = data + length; 26 const uword end = data + length;
30 while (data < end) { 27 while (data < end) {
31 *reinterpret_cast<int32_t*>(data) = Instr::kBreakPointInstruction; 28 *reinterpret_cast<int32_t*>(data) = Instr::kBreakPointInstruction;
32 data += 4; 29 data += 4;
33 } 30 }
34 } 31 }
35 32
(...skipping 1318 matching lines...) Expand 10 before | Expand all | Expand 10 after
1354 Label stop; 1351 Label stop;
1355 b(&stop); 1352 b(&stop);
1356 Emit(reinterpret_cast<int32_t>(message)); 1353 Emit(reinterpret_cast<int32_t>(message));
1357 Bind(&stop); 1354 Bind(&stop);
1358 break_(Instr::kStopMessageCode); 1355 break_(Instr::kStopMessageCode);
1359 } 1356 }
1360 1357
1361 } // namespace dart 1358 } // namespace dart
1362 1359
1363 #endif // defined TARGET_ARCH_MIPS 1360 #endif // defined TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « runtime/vm/assembler_ia32.cc ('k') | runtime/vm/assembler_x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698