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 3970 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3981 DCHECK(num_unsaved >= 0); | 3981 DCHECK(num_unsaved >= 0); |
3982 Claim(num_unsaved); | 3982 Claim(num_unsaved); |
3983 PushXRegList(kSafepointSavedRegisters); | 3983 PushXRegList(kSafepointSavedRegisters); |
3984 } | 3984 } |
3985 | 3985 |
3986 | 3986 |
3987 void MacroAssembler::PushSafepointRegistersAndDoubles() { | 3987 void MacroAssembler::PushSafepointRegistersAndDoubles() { |
3988 PushSafepointRegisters(); | 3988 PushSafepointRegisters(); |
3989 PushCPURegList(CPURegList( | 3989 PushCPURegList(CPURegList( |
3990 CPURegister::kFPRegister, kDRegSizeInBits, | 3990 CPURegister::kFPRegister, kDRegSizeInBits, |
3991 RegisterConfiguration::ArchDefault()->allocatable_double_codes_mask())); | 3991 RegisterConfiguration::ArchDefault(RegisterConfiguration::CRANKSHAFT) |
| 3992 ->allocatable_double_codes_mask())); |
3992 } | 3993 } |
3993 | 3994 |
3994 | 3995 |
3995 void MacroAssembler::PopSafepointRegistersAndDoubles() { | 3996 void MacroAssembler::PopSafepointRegistersAndDoubles() { |
3996 PopCPURegList(CPURegList( | 3997 PopCPURegList(CPURegList( |
3997 CPURegister::kFPRegister, kDRegSizeInBits, | 3998 CPURegister::kFPRegister, kDRegSizeInBits, |
3998 RegisterConfiguration::ArchDefault()->allocatable_double_codes_mask())); | 3999 RegisterConfiguration::ArchDefault(RegisterConfiguration::CRANKSHAFT) |
| 4000 ->allocatable_double_codes_mask())); |
3999 PopSafepointRegisters(); | 4001 PopSafepointRegisters(); |
4000 } | 4002 } |
4001 | 4003 |
4002 | 4004 |
4003 int MacroAssembler::SafepointRegisterStackIndex(int reg_code) { | 4005 int MacroAssembler::SafepointRegisterStackIndex(int reg_code) { |
4004 // Make sure the safepoint registers list is what we expect. | 4006 // Make sure the safepoint registers list is what we expect. |
4005 DCHECK(CPURegList::GetSafepointSavedRegisters().list() == 0x6ffcffff); | 4007 DCHECK(CPURegList::GetSafepointSavedRegisters().list() == 0x6ffcffff); |
4006 | 4008 |
4007 // Safepoint registers are stored contiguously on the stack, but not all the | 4009 // Safepoint registers are stored contiguously on the stack, but not all the |
4008 // registers are saved. The following registers are excluded: | 4010 // registers are saved. The following registers are excluded: |
(...skipping 1056 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5065 } | 5067 } |
5066 | 5068 |
5067 | 5069 |
5068 #undef __ | 5070 #undef __ |
5069 | 5071 |
5070 | 5072 |
5071 } // namespace internal | 5073 } // namespace internal |
5072 } // namespace v8 | 5074 } // namespace v8 |
5073 | 5075 |
5074 #endif // V8_TARGET_ARCH_ARM64 | 5076 #endif // V8_TARGET_ARCH_ARM64 |
OLD | NEW |