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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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. |
139 // If d16-d31 are not pushed, decrease the stack pointer instead. | 139 // If d16-d31 are not pushed, decrease the stack pointer instead. |
140 __ vstm(db_w, sp, d16, d31, ne); | 140 __ vstm(db_w, sp, d16, d31, ne); |
141 __ sub(sp, sp, Operand(16 * kDoubleSize), LeaveCC, eq); | 141 __ sub(sp, sp, Operand(16 * kDoubleSize), LeaveCC, eq); |
142 __ vstm(db_w, sp, d0, d15); | 142 __ vstm(db_w, sp, d0, d15); |
143 | 143 |
144 // Push registers s0-s15, and possibly s16-s31, on the stack. | 144 // Push registers s0-s31 on the stack. |
145 // If s16-s31 are not pushed, decrease the stack pointer instead. | 145 __ vstm(db_w, sp, s0, s31); |
146 __ vstm(db_w, sp, s16, s31, ne); | |
147 __ sub(sp, sp, Operand(16 * kFloatSize), LeaveCC, eq); | |
148 __ vstm(db_w, sp, s0, s15); | |
149 } | 146 } |
150 | 147 |
151 // Push all 16 registers (needed to populate FrameDescription::registers_). | 148 // Push all 16 registers (needed to populate FrameDescription::registers_). |
152 // TODO(1588) Note that using pc with stm is deprecated, so we should perhaps | 149 // TODO(1588) Note that using pc with stm is deprecated, so we should perhaps |
153 // handle this a bit differently. | 150 // handle this a bit differently. |
154 __ stm(db_w, sp, restored_regs | sp.bit() | lr.bit() | pc.bit()); | 151 __ stm(db_w, sp, restored_regs | sp.bit() | lr.bit() | pc.bit()); |
155 | 152 |
156 __ mov(ip, Operand(ExternalReference(Isolate::kCEntryFPAddress, isolate()))); | 153 __ mov(ip, Operand(ExternalReference(Isolate::kCEntryFPAddress, isolate()))); |
157 __ str(fp, MemOperand(ip)); | 154 __ str(fp, MemOperand(ip)); |
158 | 155 |
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
393 void FrameDescription::SetCallerConstantPool(unsigned offset, intptr_t value) { | 390 void FrameDescription::SetCallerConstantPool(unsigned offset, intptr_t value) { |
394 // No embedded constant pool support. | 391 // No embedded constant pool support. |
395 UNREACHABLE(); | 392 UNREACHABLE(); |
396 } | 393 } |
397 | 394 |
398 | 395 |
399 #undef __ | 396 #undef __ |
400 | 397 |
401 } // namespace internal | 398 } // namespace internal |
402 } // namespace v8 | 399 } // namespace v8 |
OLD | NEW |