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

Side by Side Diff: src/s390/deoptimizer-s390.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/s390/assembler-s390.h ('k') | src/s390/disasm-s390.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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/deoptimizer.h" 5 #include "src/deoptimizer.h"
6 #include "src/codegen.h" 6 #include "src/codegen.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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 109
110 // Save all the registers onto the stack 110 // Save all the registers onto the stack
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 114
115 const int kDoubleRegsSize = kDoubleSize * DoubleRegister::kNumRegisters; 115 const int kDoubleRegsSize = kDoubleSize * DoubleRegister::kNumRegisters;
116 116
117 // Save all double registers before messing with them. 117 // Save all double registers before messing with them.
118 __ lay(sp, MemOperand(sp, -kDoubleRegsSize)); 118 __ lay(sp, MemOperand(sp, -kDoubleRegsSize));
119 const RegisterConfiguration* config = 119 const RegisterConfiguration* config = RegisterConfiguration::Crankshaft();
120 RegisterConfiguration::ArchDefault(RegisterConfiguration::CRANKSHAFT);
121 for (int i = 0; i < config->num_allocatable_double_registers(); ++i) { 120 for (int i = 0; i < config->num_allocatable_double_registers(); ++i) {
122 int code = config->GetAllocatableDoubleCode(i); 121 int code = config->GetAllocatableDoubleCode(i);
123 const DoubleRegister dreg = DoubleRegister::from_code(code); 122 const DoubleRegister dreg = DoubleRegister::from_code(code);
124 int offset = code * kDoubleSize; 123 int offset = code * kDoubleSize;
125 __ StoreDouble(dreg, MemOperand(sp, offset)); 124 __ StoreDouble(dreg, MemOperand(sp, offset));
126 } 125 }
127 126
128 // Push all GPRs onto the stack 127 // Push all GPRs onto the stack
129 __ lay(sp, MemOperand(sp, -kNumberOfRegisters * kPointerSize)); 128 __ lay(sp, MemOperand(sp, -kNumberOfRegisters * kPointerSize));
130 __ StoreMultipleP(r0, sp, MemOperand(sp)); // Save all 16 registers 129 __ StoreMultipleP(r0, sp, MemOperand(sp)); // Save all 16 registers
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
329 328
330 void FrameDescription::SetCallerConstantPool(unsigned offset, intptr_t value) { 329 void FrameDescription::SetCallerConstantPool(unsigned offset, intptr_t value) {
331 // No out-of-line constant pool support. 330 // No out-of-line constant pool support.
332 UNREACHABLE(); 331 UNREACHABLE();
333 } 332 }
334 333
335 #undef __ 334 #undef __
336 335
337 } // namespace internal 336 } // namespace internal
338 } // namespace v8 337 } // namespace v8
OLDNEW
« no previous file with comments | « src/s390/assembler-s390.h ('k') | src/s390/disasm-s390.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698