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

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

Issue 1405673003: provides a mechanism for optimizing compilers to select the different Register configuration. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add the TODO comments. Created 5 years, 2 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 3970 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
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