OLD | NEW |
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/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 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 | 165 |
166 // Push saved_regs (needed to populate FrameDescription::registers_). | 166 // Push saved_regs (needed to populate FrameDescription::registers_). |
167 // Leave gaps for other registers. | 167 // Leave gaps for other registers. |
168 __ subi(sp, sp, Operand(kNumberOfRegisters * kPointerSize)); | 168 __ subi(sp, sp, Operand(kNumberOfRegisters * kPointerSize)); |
169 for (int16_t i = kNumberOfRegisters - 1; i >= 0; i--) { | 169 for (int16_t i = kNumberOfRegisters - 1; i >= 0; i--) { |
170 if ((saved_regs & (1 << i)) != 0) { | 170 if ((saved_regs & (1 << i)) != 0) { |
171 __ StoreP(ToRegister(i), MemOperand(sp, kPointerSize * i)); | 171 __ StoreP(ToRegister(i), MemOperand(sp, kPointerSize * i)); |
172 } | 172 } |
173 } | 173 } |
174 | 174 |
| 175 __ mov(ip, Operand(ExternalReference(Isolate::kCEntryFPAddress, isolate()))); |
| 176 __ StoreP(fp, MemOperand(ip)); |
| 177 |
175 const int kSavedRegistersAreaSize = | 178 const int kSavedRegistersAreaSize = |
176 (kNumberOfRegisters * kPointerSize) + kDoubleRegsSize; | 179 (kNumberOfRegisters * kPointerSize) + kDoubleRegsSize; |
177 | 180 |
178 // Get the bailout id from the stack. | 181 // Get the bailout id from the stack. |
179 __ LoadP(r5, MemOperand(sp, kSavedRegistersAreaSize)); | 182 __ LoadP(r5, MemOperand(sp, kSavedRegistersAreaSize)); |
180 | 183 |
181 // Get the address of the location in the code object (r6) (return | 184 // Get the address of the location in the code object (r6) (return |
182 // address for lazy deoptimization) and compute the fp-to-sp delta in | 185 // address for lazy deoptimization) and compute the fp-to-sp delta in |
183 // register r7. | 186 // register r7. |
184 __ mflr(r6); | 187 __ mflr(r6); |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
359 #else | 362 #else |
360 // No out-of-line constant pool support. | 363 // No out-of-line constant pool support. |
361 UNREACHABLE(); | 364 UNREACHABLE(); |
362 #endif | 365 #endif |
363 } | 366 } |
364 | 367 |
365 | 368 |
366 #undef __ | 369 #undef __ |
367 } | 370 } |
368 } // namespace v8::internal | 371 } // namespace v8::internal |
OLD | NEW |