OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #if V8_TARGET_ARCH_ARM64 | 5 #if V8_TARGET_ARCH_ARM64 |
6 | 6 |
7 #include "src/base/bits.h" | 7 #include "src/base/bits.h" |
8 #include "src/base/division-by-constant.h" | 8 #include "src/base/division-by-constant.h" |
9 #include "src/bootstrapper.h" | 9 #include "src/bootstrapper.h" |
10 #include "src/codegen.h" | 10 #include "src/codegen.h" |
(...skipping 4111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4122 DCHECK(num_unsaved >= 0); | 4122 DCHECK(num_unsaved >= 0); |
4123 Claim(num_unsaved); | 4123 Claim(num_unsaved); |
4124 PushXRegList(kSafepointSavedRegisters); | 4124 PushXRegList(kSafepointSavedRegisters); |
4125 } | 4125 } |
4126 | 4126 |
4127 | 4127 |
4128 void MacroAssembler::PushSafepointRegistersAndDoubles() { | 4128 void MacroAssembler::PushSafepointRegistersAndDoubles() { |
4129 PushSafepointRegisters(); | 4129 PushSafepointRegisters(); |
4130 PushCPURegList(CPURegList( | 4130 PushCPURegList(CPURegList( |
4131 CPURegister::kFPRegister, kDRegSizeInBits, | 4131 CPURegister::kFPRegister, kDRegSizeInBits, |
4132 RegisterConfiguration::ArchDefault(RegisterConfiguration::CRANKSHAFT) | 4132 RegisterConfiguration::Crankshaft()->allocatable_double_codes_mask())); |
4133 ->allocatable_double_codes_mask())); | |
4134 } | 4133 } |
4135 | 4134 |
4136 | 4135 |
4137 void MacroAssembler::PopSafepointRegistersAndDoubles() { | 4136 void MacroAssembler::PopSafepointRegistersAndDoubles() { |
4138 PopCPURegList(CPURegList( | 4137 PopCPURegList(CPURegList( |
4139 CPURegister::kFPRegister, kDRegSizeInBits, | 4138 CPURegister::kFPRegister, kDRegSizeInBits, |
4140 RegisterConfiguration::ArchDefault(RegisterConfiguration::CRANKSHAFT) | 4139 RegisterConfiguration::Crankshaft()->allocatable_double_codes_mask())); |
4141 ->allocatable_double_codes_mask())); | |
4142 PopSafepointRegisters(); | 4140 PopSafepointRegisters(); |
4143 } | 4141 } |
4144 | 4142 |
4145 | 4143 |
4146 int MacroAssembler::SafepointRegisterStackIndex(int reg_code) { | 4144 int MacroAssembler::SafepointRegisterStackIndex(int reg_code) { |
4147 // Make sure the safepoint registers list is what we expect. | 4145 // Make sure the safepoint registers list is what we expect. |
4148 DCHECK(CPURegList::GetSafepointSavedRegisters().list() == 0x6ffcffff); | 4146 DCHECK(CPURegList::GetSafepointSavedRegisters().list() == 0x6ffcffff); |
4149 | 4147 |
4150 // Safepoint registers are stored contiguously on the stack, but not all the | 4148 // Safepoint registers are stored contiguously on the stack, but not all the |
4151 // registers are saved. The following registers are excluded: | 4149 // registers are saved. The following registers are excluded: |
(...skipping 994 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5146 } | 5144 } |
5147 | 5145 |
5148 | 5146 |
5149 #undef __ | 5147 #undef __ |
5150 | 5148 |
5151 | 5149 |
5152 } // namespace internal | 5150 } // namespace internal |
5153 } // namespace v8 | 5151 } // namespace v8 |
5154 | 5152 |
5155 #endif // V8_TARGET_ARCH_ARM64 | 5153 #endif // V8_TARGET_ARCH_ARM64 |
OLD | NEW |