| 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" |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 ASSERT(index == 2); | 42 ASSERT(index == 2); |
| 43 | 43 |
| 44 const Smi& vacant = Smi::Handle(Smi::New(0xfa >> kSmiTagShift)); | 44 const Smi& vacant = Smi::Handle(Smi::New(0xfa >> kSmiTagShift)); |
| 45 StubCode* stub_code = isolate->stub_code(); | 45 StubCode* stub_code = isolate->stub_code(); |
| 46 if (stub_code->UpdateStoreBuffer_entry() != NULL) { | 46 if (stub_code->UpdateStoreBuffer_entry() != NULL) { |
| 47 object_pool_wrapper_.AddExternalLabel( | 47 object_pool_wrapper_.AddExternalLabel( |
| 48 &stub_code->UpdateStoreBufferLabel(), kNotPatchable); | 48 &stub_code->UpdateStoreBufferLabel(), kNotPatchable); |
| 49 } else { | 49 } else { |
| 50 object_pool_wrapper_.AddObject(vacant); | 50 object_pool_wrapper_.AddObject(vacant); |
| 51 } | 51 } |
| 52 | |
| 53 if (stub_code->CallToRuntime_entry() != NULL) { | |
| 54 object_pool_wrapper_.AddExternalLabel( | |
| 55 &stub_code->CallToRuntimeLabel(), kNotPatchable); | |
| 56 } else { | |
| 57 object_pool_wrapper_.AddObject(vacant); | |
| 58 } | |
| 59 } | 52 } |
| 60 } | 53 } |
| 61 | 54 |
| 62 | 55 |
| 63 void Assembler::InitializeMemoryWithBreakpoints(uword data, intptr_t length) { | 56 void Assembler::InitializeMemoryWithBreakpoints(uword data, intptr_t length) { |
| 64 memset(reinterpret_cast<void*>(data), Instr::kBreakPointInstruction, length); | 57 memset(reinterpret_cast<void*>(data), Instr::kBreakPointInstruction, length); |
| 65 } | 58 } |
| 66 | 59 |
| 67 | 60 |
| 68 void Assembler::call(Register reg) { | 61 void Assembler::call(Register reg) { |
| (...skipping 3857 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3926 | 3919 |
| 3927 | 3920 |
| 3928 const char* Assembler::FpuRegisterName(FpuRegister reg) { | 3921 const char* Assembler::FpuRegisterName(FpuRegister reg) { |
| 3929 ASSERT((0 <= reg) && (reg < kNumberOfXmmRegisters)); | 3922 ASSERT((0 <= reg) && (reg < kNumberOfXmmRegisters)); |
| 3930 return xmm_reg_names[reg]; | 3923 return xmm_reg_names[reg]; |
| 3931 } | 3924 } |
| 3932 | 3925 |
| 3933 } // namespace dart | 3926 } // namespace dart |
| 3934 | 3927 |
| 3935 #endif // defined TARGET_ARCH_X64 | 3928 #endif // defined TARGET_ARCH_X64 |
| OLD | NEW |