| OLD | NEW |
| 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_X64) | 6 #if defined(TARGET_ARCH_X64) |
| 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/heap.h" | 10 #include "vm/heap.h" |
| 11 #include "vm/instructions.h" | 11 #include "vm/instructions.h" |
| 12 #include "vm/locations.h" | 12 #include "vm/locations.h" |
| 13 #include "vm/memory_region.h" | 13 #include "vm/memory_region.h" |
| 14 #include "vm/runtime_entry.h" | 14 #include "vm/runtime_entry.h" |
| 15 #include "vm/stack_frame.h" | 15 #include "vm/stack_frame.h" |
| 16 #include "vm/stub_code.h" | 16 #include "vm/stub_code.h" |
| 17 | 17 |
| 18 namespace dart { | 18 namespace dart { |
| 19 | 19 |
| 20 DECLARE_FLAG(bool, allow_absolute_addresses); | |
| 21 DECLARE_FLAG(bool, check_code_pointer); | 20 DECLARE_FLAG(bool, check_code_pointer); |
| 22 DECLARE_FLAG(bool, inline_alloc); | 21 DECLARE_FLAG(bool, inline_alloc); |
| 23 | 22 |
| 24 DEFINE_FLAG(bool, print_stop_message, true, "Print stop message."); | |
| 25 | |
| 26 | 23 |
| 27 Assembler::Assembler(bool use_far_branches) | 24 Assembler::Assembler(bool use_far_branches) |
| 28 : buffer_(), | 25 : buffer_(), |
| 29 prologue_offset_(-1), | 26 prologue_offset_(-1), |
| 30 comments_(), | 27 comments_(), |
| 31 constant_pool_allowed_(false) { | 28 constant_pool_allowed_(false) { |
| 32 // Far branching mode is only needed and implemented for MIPS and ARM. | 29 // Far branching mode is only needed and implemented for MIPS and ARM. |
| 33 ASSERT(!use_far_branches); | 30 ASSERT(!use_far_branches); |
| 34 } | 31 } |
| 35 | 32 |
| (...skipping 3902 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3938 | 3935 |
| 3939 | 3936 |
| 3940 const char* Assembler::FpuRegisterName(FpuRegister reg) { | 3937 const char* Assembler::FpuRegisterName(FpuRegister reg) { |
| 3941 ASSERT((0 <= reg) && (reg < kNumberOfXmmRegisters)); | 3938 ASSERT((0 <= reg) && (reg < kNumberOfXmmRegisters)); |
| 3942 return xmm_reg_names[reg]; | 3939 return xmm_reg_names[reg]; |
| 3943 } | 3940 } |
| 3944 | 3941 |
| 3945 } // namespace dart | 3942 } // namespace dart |
| 3946 | 3943 |
| 3947 #endif // defined TARGET_ARCH_X64 | 3944 #endif // defined TARGET_ARCH_X64 |
| OLD | NEW |