OLD | NEW |
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/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #include "src/codegen.h" | 7 #include "src/codegen.h" |
8 #include "src/deoptimizer.h" | 8 #include "src/deoptimizer.h" |
9 #include "src/full-codegen.h" | 9 #include "src/full-codegen.h" |
10 #include "src/safepoint-table.h" | 10 #include "src/safepoint-table.h" |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 | 154 |
155 // Push saved_regs (needed to populate FrameDescription::registers_). | 155 // Push saved_regs (needed to populate FrameDescription::registers_). |
156 // Leave gaps for other registers. | 156 // Leave gaps for other registers. |
157 __ Dsubu(sp, sp, kNumberOfRegisters * kPointerSize); | 157 __ Dsubu(sp, sp, kNumberOfRegisters * kPointerSize); |
158 for (int16_t i = kNumberOfRegisters - 1; i >= 0; i--) { | 158 for (int16_t i = kNumberOfRegisters - 1; i >= 0; i--) { |
159 if ((saved_regs & (1 << i)) != 0) { | 159 if ((saved_regs & (1 << i)) != 0) { |
160 __ sd(ToRegister(i), MemOperand(sp, kPointerSize * i)); | 160 __ sd(ToRegister(i), MemOperand(sp, kPointerSize * i)); |
161 } | 161 } |
162 } | 162 } |
163 | 163 |
| 164 __ li(a2, Operand(ExternalReference(Isolate::kCEntryFPAddress, isolate()))); |
| 165 __ sd(fp, MemOperand(a2)); |
| 166 |
164 const int kSavedRegistersAreaSize = | 167 const int kSavedRegistersAreaSize = |
165 (kNumberOfRegisters * kPointerSize) + kDoubleRegsSize; | 168 (kNumberOfRegisters * kPointerSize) + kDoubleRegsSize; |
166 | 169 |
167 // Get the bailout id from the stack. | 170 // Get the bailout id from the stack. |
168 __ ld(a2, MemOperand(sp, kSavedRegistersAreaSize)); | 171 __ ld(a2, MemOperand(sp, kSavedRegistersAreaSize)); |
169 | 172 |
170 // Get the address of the location in the code object (a3) (return | 173 // Get the address of the location in the code object (a3) (return |
171 // address for lazy deoptimization) and compute the fp-to-sp delta in | 174 // address for lazy deoptimization) and compute the fp-to-sp delta in |
172 // register a4. | 175 // register a4. |
173 __ mov(a3, ra); | 176 __ mov(a3, ra); |
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
375 void FrameDescription::SetCallerConstantPool(unsigned offset, intptr_t value) { | 378 void FrameDescription::SetCallerConstantPool(unsigned offset, intptr_t value) { |
376 // No out-of-line constant pool support. | 379 // No out-of-line constant pool support. |
377 UNREACHABLE(); | 380 UNREACHABLE(); |
378 } | 381 } |
379 | 382 |
380 | 383 |
381 #undef __ | 384 #undef __ |
382 | 385 |
383 | 386 |
384 } } // namespace v8::internal | 387 } } // namespace v8::internal |
OLD | NEW |