| 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" | 5 #include "vm/globals.h" |
| 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/heap.h" | 9 #include "vm/heap.h" |
| 10 #include "vm/memory_region.h" | 10 #include "vm/memory_region.h" |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 patchable_pool_entries_.Add(kNotPatchable); | 98 patchable_pool_entries_.Add(kNotPatchable); |
| 99 } | 99 } |
| 100 | 100 |
| 101 if (StubCode::CallToRuntime_entry() != NULL) { | 101 if (StubCode::CallToRuntime_entry() != NULL) { |
| 102 FindExternalLabel(&StubCode::CallToRuntimeLabel(), kNotPatchable); | 102 FindExternalLabel(&StubCode::CallToRuntimeLabel(), kNotPatchable); |
| 103 } else { | 103 } else { |
| 104 object_pool_.Add(Object::null_object(), Heap::kOld); | 104 object_pool_.Add(Object::null_object(), Heap::kOld); |
| 105 patchable_pool_entries_.Add(kNotPatchable); | 105 patchable_pool_entries_.Add(kNotPatchable); |
| 106 } | 106 } |
| 107 | 107 |
| 108 // Create fixed object pool entries for debugger stubs. | 108 // Create fixed object pool entriy for debugger stub. |
| 109 if (StubCode::BreakpointDynamic_entry() != NULL) { | |
| 110 intptr_t index = | |
| 111 FindExternalLabel(&StubCode::BreakpointDynamicLabel(), kNotPatchable); | |
| 112 ASSERT(index == kBreakpointDynamicCPIndex); | |
| 113 } else { | |
| 114 object_pool_.Add(Object::null_object(), Heap::kOld); | |
| 115 patchable_pool_entries_.Add(kNotPatchable); | |
| 116 } | |
| 117 if (StubCode::BreakpointRuntime_entry() != NULL) { | 109 if (StubCode::BreakpointRuntime_entry() != NULL) { |
| 118 intptr_t index = | 110 intptr_t index = |
| 119 FindExternalLabel(&StubCode::BreakpointRuntimeLabel(), kNotPatchable); | 111 FindExternalLabel(&StubCode::BreakpointRuntimeLabel(), kNotPatchable); |
| 120 ASSERT(index == kBreakpointRuntimeCPIndex); | 112 ASSERT(index == kBreakpointRuntimeCPIndex); |
| 121 } else { | 113 } else { |
| 122 object_pool_.Add(Object::null_object(), Heap::kOld); | 114 object_pool_.Add(Object::null_object(), Heap::kOld); |
| 123 patchable_pool_entries_.Add(kNotPatchable); | 115 patchable_pool_entries_.Add(kNotPatchable); |
| 124 } | 116 } |
| 125 } | 117 } |
| 126 } | 118 } |
| (...skipping 2980 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3107 | 3099 |
| 3108 | 3100 |
| 3109 const char* Assembler::FpuRegisterName(FpuRegister reg) { | 3101 const char* Assembler::FpuRegisterName(FpuRegister reg) { |
| 3110 ASSERT((0 <= reg) && (reg < kNumberOfXmmRegisters)); | 3102 ASSERT((0 <= reg) && (reg < kNumberOfXmmRegisters)); |
| 3111 return xmm_reg_names[reg]; | 3103 return xmm_reg_names[reg]; |
| 3112 } | 3104 } |
| 3113 | 3105 |
| 3114 } // namespace dart | 3106 } // namespace dart |
| 3115 | 3107 |
| 3116 #endif // defined TARGET_ARCH_X64 | 3108 #endif // defined TARGET_ARCH_X64 |
| OLD | NEW |