Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(21)

Side by Side Diff: src/arm64/macro-assembler-arm64.cc

Issue 2092413002: [RegisterConfiguration] Streamline access to arch defaults, simplify Registers. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix compile. Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/arm64/deoptimizer-arm64.cc ('k') | src/assembler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/arm64/deoptimizer-arm64.cc ('k') | src/assembler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698