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

Side by Side Diff: src/arm/deoptimizer-arm.cc

Issue 2827743002: [ARM] Reserve scratch q-register. (Closed)
Patch Set: Fix issue with allocatable double registers without VFP32DREGS. Created 3 years, 8 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/arm/assembler-arm.h ('k') | src/compiler/arm/code-generator-arm.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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/assembler-inl.h" 5 #include "src/assembler-inl.h"
6 #include "src/codegen.h" 6 #include "src/codegen.h"
7 #include "src/deoptimizer.h" 7 #include "src/deoptimizer.h"
8 #include "src/full-codegen/full-codegen.h" 8 #include "src/full-codegen/full-codegen.h"
9 #include "src/objects-inl.h" 9 #include "src/objects-inl.h"
10 #include "src/register-configuration.h" 10 #include "src/register-configuration.h"
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 // Save all general purpose registers before messing with them. 117 // Save all general purpose registers before messing with them.
118 const int kNumberOfRegisters = Register::kNumRegisters; 118 const int kNumberOfRegisters = Register::kNumRegisters;
119 119
120 // Everything but pc, lr and ip which will be saved but not restored. 120 // Everything but pc, lr and ip which will be saved but not restored.
121 RegList restored_regs = kJSCallerSaved | kCalleeSaved | ip.bit(); 121 RegList restored_regs = kJSCallerSaved | kCalleeSaved | ip.bit();
122 122
123 const int kDoubleRegsSize = kDoubleSize * DwVfpRegister::kMaxNumRegisters; 123 const int kDoubleRegsSize = kDoubleSize * DwVfpRegister::kMaxNumRegisters;
124 const int kFloatRegsSize = kFloatSize * SwVfpRegister::kMaxNumRegisters; 124 const int kFloatRegsSize = kFloatSize * SwVfpRegister::kMaxNumRegisters;
125 125
126 // Save all allocatable VFP registers before messing with them. 126 // Save all allocatable VFP registers before messing with them.
127 DCHECK(kDoubleRegZero.code() == 14); 127 DCHECK(kDoubleRegZero.code() == 13);
128 DCHECK(kScratchDoubleReg.code() == 15); 128 DCHECK(kScratchDoubleReg.code() == 14);
129 129
130 { 130 {
131 // We use a run-time check for VFP32DREGS. 131 // We use a run-time check for VFP32DREGS.
132 CpuFeatureScope scope(masm(), VFP32DREGS, 132 CpuFeatureScope scope(masm(), VFP32DREGS,
133 CpuFeatureScope::kDontCheckSupported); 133 CpuFeatureScope::kDontCheckSupported);
134 134
135 // Check CPU flags for number of registers, setting the Z condition flag. 135 // Check CPU flags for number of registers, setting the Z condition flag.
136 __ CheckFor32DRegs(ip); 136 __ CheckFor32DRegs(ip);
137 137
138 // Push registers d0-d15, and possibly d16-d31, on the stack. 138 // Push registers d0-d15, and possibly d16-d31, on the stack.
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
393 void FrameDescription::SetCallerConstantPool(unsigned offset, intptr_t value) { 393 void FrameDescription::SetCallerConstantPool(unsigned offset, intptr_t value) {
394 // No embedded constant pool support. 394 // No embedded constant pool support.
395 UNREACHABLE(); 395 UNREACHABLE();
396 } 396 }
397 397
398 398
399 #undef __ 399 #undef __
400 400
401 } // namespace internal 401 } // namespace internal
402 } // namespace v8 402 } // namespace v8
OLDNEW
« no previous file with comments | « src/arm/assembler-arm.h ('k') | src/compiler/arm/code-generator-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698