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

Side by Side Diff: src/mips64/deoptimizer-mips64.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/mips64/assembler-mips64.h ('k') | src/mips64/macro-assembler-mips64.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 #include "src/codegen.h" 5 #include "src/codegen.h"
6 #include "src/deoptimizer.h" 6 #include "src/deoptimizer.h"
7 #include "src/full-codegen/full-codegen.h" 7 #include "src/full-codegen/full-codegen.h"
8 #include "src/register-configuration.h" 8 #include "src/register-configuration.h"
9 #include "src/safepoint-table.h" 9 #include "src/safepoint-table.h"
10 10
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 // For the rest, there are gaps on the stack, so the offsets remain the same. 110 // For the rest, there are gaps on the stack, so the offsets remain the same.
111 const int kNumberOfRegisters = Register::kNumRegisters; 111 const int kNumberOfRegisters = Register::kNumRegisters;
112 112
113 RegList restored_regs = kJSCallerSaved | kCalleeSaved; 113 RegList restored_regs = kJSCallerSaved | kCalleeSaved;
114 RegList saved_regs = restored_regs | sp.bit() | ra.bit(); 114 RegList saved_regs = restored_regs | sp.bit() | ra.bit();
115 115
116 const int kDoubleRegsSize = kDoubleSize * DoubleRegister::kMaxNumRegisters; 116 const int kDoubleRegsSize = kDoubleSize * DoubleRegister::kMaxNumRegisters;
117 117
118 // Save all FPU registers before messing with them. 118 // Save all FPU registers before messing with them.
119 __ Dsubu(sp, sp, Operand(kDoubleRegsSize)); 119 __ Dsubu(sp, sp, Operand(kDoubleRegsSize));
120 const RegisterConfiguration* config = 120 const RegisterConfiguration* config = RegisterConfiguration::Crankshaft();
121 RegisterConfiguration::ArchDefault(RegisterConfiguration::CRANKSHAFT);
122 for (int i = 0; i < config->num_allocatable_double_registers(); ++i) { 121 for (int i = 0; i < config->num_allocatable_double_registers(); ++i) {
123 int code = config->GetAllocatableDoubleCode(i); 122 int code = config->GetAllocatableDoubleCode(i);
124 const DoubleRegister fpu_reg = DoubleRegister::from_code(code); 123 const DoubleRegister fpu_reg = DoubleRegister::from_code(code);
125 int offset = code * kDoubleSize; 124 int offset = code * kDoubleSize;
126 __ sdc1(fpu_reg, MemOperand(sp, offset)); 125 __ sdc1(fpu_reg, MemOperand(sp, offset));
127 } 126 }
128 127
129 // Push saved_regs (needed to populate FrameDescription::registers_). 128 // Push saved_regs (needed to populate FrameDescription::registers_).
130 // Leave gaps for other registers. 129 // Leave gaps for other registers.
131 __ Dsubu(sp, sp, kNumberOfRegisters * kPointerSize); 130 __ Dsubu(sp, sp, kNumberOfRegisters * kPointerSize);
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
382 // No embedded constant pool support. 381 // No embedded constant pool support.
383 UNREACHABLE(); 382 UNREACHABLE();
384 } 383 }
385 384
386 385
387 #undef __ 386 #undef __
388 387
389 388
390 } // namespace internal 389 } // namespace internal
391 } // namespace v8 390 } // namespace v8
OLDNEW
« no previous file with comments | « src/mips64/assembler-mips64.h ('k') | src/mips64/macro-assembler-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698