| OLD | NEW |
| 1 | 1 |
| 2 // Copyright 2011 the V8 project authors. All rights reserved. | 2 // Copyright 2011 the V8 project authors. All rights reserved. |
| 3 // Use of this source code is governed by a BSD-style license that can be | 3 // Use of this source code is governed by a BSD-style license that can be |
| 4 // found in the LICENSE file. | 4 // found in the LICENSE file. |
| 5 | 5 |
| 6 #include "src/v8.h" | 6 #include "src/v8.h" |
| 7 | 7 |
| 8 #include "src/codegen.h" | 8 #include "src/codegen.h" |
| 9 #include "src/deoptimizer.h" | 9 #include "src/deoptimizer.h" |
| 10 #include "src/full-codegen.h" | 10 #include "src/full-codegen.h" |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 | 155 |
| 156 // Push saved_regs (needed to populate FrameDescription::registers_). | 156 // Push saved_regs (needed to populate FrameDescription::registers_). |
| 157 // Leave gaps for other registers. | 157 // Leave gaps for other registers. |
| 158 __ Subu(sp, sp, kNumberOfRegisters * kPointerSize); | 158 __ Subu(sp, sp, kNumberOfRegisters * kPointerSize); |
| 159 for (int16_t i = kNumberOfRegisters - 1; i >= 0; i--) { | 159 for (int16_t i = kNumberOfRegisters - 1; i >= 0; i--) { |
| 160 if ((saved_regs & (1 << i)) != 0) { | 160 if ((saved_regs & (1 << i)) != 0) { |
| 161 __ sw(ToRegister(i), MemOperand(sp, kPointerSize * i)); | 161 __ sw(ToRegister(i), MemOperand(sp, kPointerSize * i)); |
| 162 } | 162 } |
| 163 } | 163 } |
| 164 | 164 |
| 165 __ li(a2, Operand(ExternalReference(Isolate::kCEntryFPAddress, isolate()))); |
| 166 __ sw(fp, MemOperand(a2)); |
| 167 |
| 165 const int kSavedRegistersAreaSize = | 168 const int kSavedRegistersAreaSize = |
| 166 (kNumberOfRegisters * kPointerSize) + kDoubleRegsSize; | 169 (kNumberOfRegisters * kPointerSize) + kDoubleRegsSize; |
| 167 | 170 |
| 168 // Get the bailout id from the stack. | 171 // Get the bailout id from the stack. |
| 169 __ lw(a2, MemOperand(sp, kSavedRegistersAreaSize)); | 172 __ lw(a2, MemOperand(sp, kSavedRegistersAreaSize)); |
| 170 | 173 |
| 171 // Get the address of the location in the code object (a3) (return | 174 // Get the address of the location in the code object (a3) (return |
| 172 // address for lazy deoptimization) and compute the fp-to-sp delta in | 175 // address for lazy deoptimization) and compute the fp-to-sp delta in |
| 173 // register t0. | 176 // register t0. |
| 174 __ mov(a3, ra); | 177 __ mov(a3, ra); |
| (...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 398 void FrameDescription::SetCallerConstantPool(unsigned offset, intptr_t value) { | 401 void FrameDescription::SetCallerConstantPool(unsigned offset, intptr_t value) { |
| 399 // No out-of-line constant pool support. | 402 // No out-of-line constant pool support. |
| 400 UNREACHABLE(); | 403 UNREACHABLE(); |
| 401 } | 404 } |
| 402 | 405 |
| 403 | 406 |
| 404 #undef __ | 407 #undef __ |
| 405 | 408 |
| 406 | 409 |
| 407 } } // namespace v8::internal | 410 } } // namespace v8::internal |
| OLD | NEW |