OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |