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

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

Issue 2858623002: Remove MIPS support (Closed)
Patch Set: Merge and cleanup Created 3 years, 6 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.h ('k') | runtime/vm/assembler_ia32.h » ('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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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/assembler.h" 5 #include "vm/assembler.h"
6 6
7 #include "platform/utils.h" 7 #include "platform/utils.h"
8 #include "vm/cpu.h" 8 #include "vm/cpu.h"
9 #include "vm/heap.h" 9 #include "vm/heap.h"
10 #include "vm/memory_region.h" 10 #include "vm/memory_region.h"
11 #include "vm/os.h" 11 #include "vm/os.h"
12 #include "vm/zone.h" 12 #include "vm/zone.h"
13 13
14 namespace dart { 14 namespace dart {
15 15
16 DEFINE_FLAG(bool, 16 DEFINE_FLAG(bool,
17 check_code_pointer, 17 check_code_pointer,
18 false, 18 false,
19 "Verify instructions offset in code object." 19 "Verify instructions offset in code object."
20 "NOTE: This breaks the profiler."); 20 "NOTE: This breaks the profiler.");
21 DEFINE_FLAG(bool, 21 DEFINE_FLAG(bool,
22 code_comments, 22 code_comments,
23 false, 23 false,
24 "Include comments into code and disassembly"); 24 "Include comments into code and disassembly");
25 #if defined(TARGET_ARCH_ARM) || defined(TARGET_ARCH_MIPS) 25 #if defined(TARGET_ARCH_ARM)
26 DEFINE_FLAG(bool, 26 DEFINE_FLAG(bool, use_far_branches, false, "Enable far branches for ARM.");
27 use_far_branches,
28 false,
29 "Enable far branches for ARM and MIPS");
30 #endif 27 #endif
31 28
32 static uword NewContents(intptr_t capacity) { 29 static uword NewContents(intptr_t capacity) {
33 Zone* zone = Thread::Current()->zone(); 30 Zone* zone = Thread::Current()->zone();
34 uword result = zone->AllocUnsafe(capacity); 31 uword result = zone->AllocUnsafe(capacity);
35 #if defined(DEBUG) 32 #if defined(DEBUG)
36 // Initialize the buffer with kBreakPointInstruction to force a break 33 // Initialize the buffer with kBreakPointInstruction to force a break
37 // point if we ever execute an uninitialized part of the code buffer. 34 // point if we ever execute an uninitialized part of the code buffer.
38 Assembler::InitializeMemoryWithBreakpoints(result, capacity); 35 Assembler::InitializeMemoryWithBreakpoints(result, capacity);
39 #endif 36 #endif
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 result.SetObjectAt(i, *object_pool_[i].obj_); 324 result.SetObjectAt(i, *object_pool_[i].obj_);
328 } else { 325 } else {
329 result.SetRawValueAt(i, object_pool_[i].raw_value_); 326 result.SetRawValueAt(i, object_pool_[i].raw_value_);
330 } 327 }
331 } 328 }
332 return result.raw(); 329 return result.raw();
333 } 330 }
334 331
335 332
336 } // namespace dart 333 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/assembler.h ('k') | runtime/vm/assembler_ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698