| 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/cpu.h" | 9 #include "vm/cpu.h" |
| 10 #include "vm/heap.h" | 10 #include "vm/heap.h" |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 const Smi& vacant = Smi::Handle(Smi::New(0xfa >> kSmiTagShift)); | 51 const Smi& vacant = Smi::Handle(Smi::New(0xfa >> kSmiTagShift)); |
| 52 | 52 |
| 53 StubCode* stub_code = isolate->stub_code(); | 53 StubCode* stub_code = isolate->stub_code(); |
| 54 if (stub_code->UpdateStoreBuffer_entry() != NULL) { | 54 if (stub_code->UpdateStoreBuffer_entry() != NULL) { |
| 55 FindExternalLabel(&stub_code->UpdateStoreBufferLabel(), kNotPatchable); | 55 FindExternalLabel(&stub_code->UpdateStoreBufferLabel(), kNotPatchable); |
| 56 } else { | 56 } else { |
| 57 object_pool_.Add(vacant, Heap::kOld); | 57 object_pool_.Add(vacant, Heap::kOld); |
| 58 patchable_pool_entries_.Add(kNotPatchable); | 58 patchable_pool_entries_.Add(kNotPatchable); |
| 59 } | 59 } |
| 60 | 60 |
| 61 if (StubCode::CallToRuntime_entry() != NULL) { | 61 if (stub_code->CallToRuntime_entry() != NULL) { |
| 62 FindExternalLabel(&StubCode::CallToRuntimeLabel(), kNotPatchable); | 62 FindExternalLabel(&stub_code->CallToRuntimeLabel(), kNotPatchable); |
| 63 } else { | 63 } else { |
| 64 object_pool_.Add(vacant, Heap::kOld); | 64 object_pool_.Add(vacant, Heap::kOld); |
| 65 patchable_pool_entries_.Add(kNotPatchable); | 65 patchable_pool_entries_.Add(kNotPatchable); |
| 66 } | 66 } |
| 67 | 67 |
| 68 // Create fixed object pool entries for debugger stubs. | 68 // Create fixed object pool entries for debugger stubs. |
| 69 if (StubCode::ICCallBreakpoint_entry() != NULL) { | 69 if (stub_code->ICCallBreakpoint_entry() != NULL) { |
| 70 intptr_t index = | 70 intptr_t index = |
| 71 FindExternalLabel(&StubCode::ICCallBreakpointLabel(), | 71 FindExternalLabel(&stub_code->ICCallBreakpointLabel(), |
| 72 kNotPatchable); | 72 kNotPatchable); |
| 73 ASSERT(index == kICCallBreakpointCPIndex); | 73 ASSERT(index == kICCallBreakpointCPIndex); |
| 74 } else { | 74 } else { |
| 75 object_pool_.Add(vacant, Heap::kOld); | 75 object_pool_.Add(vacant, Heap::kOld); |
| 76 patchable_pool_entries_.Add(kNotPatchable); | 76 patchable_pool_entries_.Add(kNotPatchable); |
| 77 } | 77 } |
| 78 if (StubCode::ClosureCallBreakpoint_entry() != NULL) { | 78 if (stub_code->ClosureCallBreakpoint_entry() != NULL) { |
| 79 intptr_t index = | 79 intptr_t index = |
| 80 FindExternalLabel(&StubCode::ClosureCallBreakpointLabel(), | 80 FindExternalLabel(&stub_code->ClosureCallBreakpointLabel(), |
| 81 kNotPatchable); | 81 kNotPatchable); |
| 82 ASSERT(index == kClosureCallBreakpointCPIndex); | 82 ASSERT(index == kClosureCallBreakpointCPIndex); |
| 83 } else { | 83 } else { |
| 84 object_pool_.Add(vacant, Heap::kOld); | 84 object_pool_.Add(vacant, Heap::kOld); |
| 85 patchable_pool_entries_.Add(kNotPatchable); | 85 patchable_pool_entries_.Add(kNotPatchable); |
| 86 } | 86 } |
| 87 if (StubCode::RuntimeCallBreakpoint_entry() != NULL) { | 87 if (stub_code->RuntimeCallBreakpoint_entry() != NULL) { |
| 88 intptr_t index = | 88 intptr_t index = |
| 89 FindExternalLabel(&StubCode::RuntimeCallBreakpointLabel(), | 89 FindExternalLabel(&stub_code->RuntimeCallBreakpointLabel(), |
| 90 kNotPatchable); | 90 kNotPatchable); |
| 91 ASSERT(index == kRuntimeCallBreakpointCPIndex); | 91 ASSERT(index == kRuntimeCallBreakpointCPIndex); |
| 92 } else { | 92 } else { |
| 93 object_pool_.Add(vacant, Heap::kOld); | 93 object_pool_.Add(vacant, Heap::kOld); |
| 94 patchable_pool_entries_.Add(kNotPatchable); | 94 patchable_pool_entries_.Add(kNotPatchable); |
| 95 } | 95 } |
| 96 } | 96 } |
| 97 } | 97 } |
| 98 | 98 |
| 99 | 99 |
| (...skipping 3563 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3663 | 3663 |
| 3664 | 3664 |
| 3665 const char* Assembler::FpuRegisterName(FpuRegister reg) { | 3665 const char* Assembler::FpuRegisterName(FpuRegister reg) { |
| 3666 ASSERT((0 <= reg) && (reg < kNumberOfXmmRegisters)); | 3666 ASSERT((0 <= reg) && (reg < kNumberOfXmmRegisters)); |
| 3667 return xmm_reg_names[reg]; | 3667 return xmm_reg_names[reg]; |
| 3668 } | 3668 } |
| 3669 | 3669 |
| 3670 } // namespace dart | 3670 } // namespace dart |
| 3671 | 3671 |
| 3672 #endif // defined TARGET_ARCH_X64 | 3672 #endif // defined TARGET_ARCH_X64 |
| OLD | NEW |