| 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, check_code_pointer); | 20 DECLARE_FLAG(bool, check_code_pointer); |
| 21 DECLARE_FLAG(bool, inline_alloc); | 21 DECLARE_FLAG(bool, inline_alloc); |
| 22 | 22 |
| 23 | 23 |
| 24 Assembler::Assembler(bool use_far_branches) | 24 Assembler::Assembler(bool use_far_branches) |
| 25 : buffer_(), | 25 : buffer_(), |
| 26 prologue_offset_(-1), | 26 prologue_offset_(-1), |
| 27 has_single_entry_point_(true), | 27 has_single_entry_point_(true), |
| 28 comments_(), | 28 comments_(), |
| 29 constant_pool_allowed_(false) { | 29 constant_pool_allowed_(false) { |
| 30 // Far branching mode is only needed and implemented for MIPS and ARM. | 30 // Far branching mode is only needed and implemented for ARM. |
| 31 ASSERT(!use_far_branches); | 31 ASSERT(!use_far_branches); |
| 32 } | 32 } |
| 33 | 33 |
| 34 | 34 |
| 35 void Assembler::InitializeMemoryWithBreakpoints(uword data, intptr_t length) { | 35 void Assembler::InitializeMemoryWithBreakpoints(uword data, intptr_t length) { |
| 36 memset(reinterpret_cast<void*>(data), Instr::kBreakPointInstruction, length); | 36 memset(reinterpret_cast<void*>(data), Instr::kBreakPointInstruction, length); |
| 37 } | 37 } |
| 38 | 38 |
| 39 | 39 |
| 40 void Assembler::call(Register reg) { | 40 void Assembler::call(Register reg) { |
| (...skipping 3764 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3805 | 3805 |
| 3806 | 3806 |
| 3807 const char* Assembler::FpuRegisterName(FpuRegister reg) { | 3807 const char* Assembler::FpuRegisterName(FpuRegister reg) { |
| 3808 ASSERT((0 <= reg) && (reg < kNumberOfXmmRegisters)); | 3808 ASSERT((0 <= reg) && (reg < kNumberOfXmmRegisters)); |
| 3809 return xmm_reg_names[reg]; | 3809 return xmm_reg_names[reg]; |
| 3810 } | 3810 } |
| 3811 | 3811 |
| 3812 } // namespace dart | 3812 } // namespace dart |
| 3813 | 3813 |
| 3814 #endif // defined TARGET_ARCH_X64 | 3814 #endif // defined TARGET_ARCH_X64 |
| OLD | NEW |