OLD | NEW |
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 DECLARE_FLAG(bool, disassemble); | |
17 DECLARE_FLAG(bool, disassemble_optimized); | |
18 | |
19 DEFINE_FLAG(bool, check_code_pointer, false, | 16 DEFINE_FLAG(bool, check_code_pointer, false, |
20 "Verify instructions offset in code object." | 17 "Verify instructions offset in code object." |
21 "NOTE: This breaks the profiler."); | 18 "NOTE: This breaks the profiler."); |
22 DEFINE_FLAG(bool, code_comments, false, | 19 DEFINE_FLAG(bool, code_comments, false, |
23 "Include comments into code and disassembly"); | 20 "Include comments into code and disassembly"); |
24 #if defined(TARGET_ARCH_ARM) || defined(TARGET_ARCH_MIPS) | 21 #if defined(TARGET_ARCH_ARM) || defined(TARGET_ARCH_MIPS) |
25 DEFINE_FLAG(bool, use_far_branches, false, | 22 DEFINE_FLAG(bool, use_far_branches, false, |
26 "Enable far branches for ARM and MIPS"); | 23 "Enable far branches for ARM and MIPS"); |
27 #endif | 24 #endif |
28 | 25 |
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
317 result.SetObjectAt(i, *object_pool_[i].obj_); | 314 result.SetObjectAt(i, *object_pool_[i].obj_); |
318 } else { | 315 } else { |
319 result.SetRawValueAt(i, object_pool_[i].raw_value_); | 316 result.SetRawValueAt(i, object_pool_[i].raw_value_); |
320 } | 317 } |
321 } | 318 } |
322 return result.raw(); | 319 return result.raw(); |
323 } | 320 } |
324 | 321 |
325 | 322 |
326 } // namespace dart | 323 } // namespace dart |
OLD | NEW |