| 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/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #if V8_TARGET_ARCH_X64 | 7 #if V8_TARGET_ARCH_X64 |
| 8 | 8 |
| 9 #include "src/codegen.h" | 9 #include "src/codegen.h" |
| 10 #include "src/deoptimizer.h" | 10 #include "src/deoptimizer.h" |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 // We push all registers onto the stack, even though we do not need | 153 // We push all registers onto the stack, even though we do not need |
| 154 // to restore all later. | 154 // to restore all later. |
| 155 for (int i = 0; i < kNumberOfRegisters; i++) { | 155 for (int i = 0; i < kNumberOfRegisters; i++) { |
| 156 Register r = Register::from_code(i); | 156 Register r = Register::from_code(i); |
| 157 __ pushq(r); | 157 __ pushq(r); |
| 158 } | 158 } |
| 159 | 159 |
| 160 const int kSavedRegistersAreaSize = kNumberOfRegisters * kRegisterSize + | 160 const int kSavedRegistersAreaSize = kNumberOfRegisters * kRegisterSize + |
| 161 kDoubleRegsSize; | 161 kDoubleRegsSize; |
| 162 | 162 |
| 163 __ Store(ExternalReference(Isolate::kCEntryFPAddress, isolate()), rbp); |
| 164 |
| 163 // We use this to keep the value of the fifth argument temporarily. | 165 // We use this to keep the value of the fifth argument temporarily. |
| 164 // Unfortunately we can't store it directly in r8 (used for passing | 166 // Unfortunately we can't store it directly in r8 (used for passing |
| 165 // this on linux), since it is another parameter passing register on windows. | 167 // this on linux), since it is another parameter passing register on windows. |
| 166 Register arg5 = r11; | 168 Register arg5 = r11; |
| 167 | 169 |
| 168 // Get the bailout id from the stack. | 170 // Get the bailout id from the stack. |
| 169 __ movp(arg_reg_3, Operand(rsp, kSavedRegistersAreaSize)); | 171 __ movp(arg_reg_3, Operand(rsp, kSavedRegistersAreaSize)); |
| 170 | 172 |
| 171 // Get the address of the location in the code object | 173 // Get the address of the location in the code object |
| 172 // and compute the fp-to-sp delta in register arg5. | 174 // and compute the fp-to-sp delta in register arg5. |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 349 UNREACHABLE(); | 351 UNREACHABLE(); |
| 350 } | 352 } |
| 351 | 353 |
| 352 | 354 |
| 353 #undef __ | 355 #undef __ |
| 354 | 356 |
| 355 | 357 |
| 356 } } // namespace v8::internal | 358 } } // namespace v8::internal |
| 357 | 359 |
| 358 #endif // V8_TARGET_ARCH_X64 | 360 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |