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 #if V8_TARGET_ARCH_X87 | 5 #if V8_TARGET_ARCH_X87 |
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/full-codegen.h" | 9 #include "src/full-codegen/full-codegen.h" |
10 #include "src/register-configuration.h" | 10 #include "src/register-configuration.h" |
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
270 // frame descriptor pointer. | 270 // frame descriptor pointer. |
271 __ mov(ebx, Operand(eax, Deoptimizer::input_offset())); | 271 __ mov(ebx, Operand(eax, Deoptimizer::input_offset())); |
272 | 272 |
273 // Fill in the input registers. | 273 // Fill in the input registers. |
274 for (int i = kNumberOfRegisters - 1; i >= 0; i--) { | 274 for (int i = kNumberOfRegisters - 1; i >= 0; i--) { |
275 int offset = (i * kPointerSize) + FrameDescription::registers_offset(); | 275 int offset = (i * kPointerSize) + FrameDescription::registers_offset(); |
276 __ pop(Operand(ebx, offset)); | 276 __ pop(Operand(ebx, offset)); |
277 } | 277 } |
278 | 278 |
279 int double_regs_offset = FrameDescription::double_registers_offset(); | 279 int double_regs_offset = FrameDescription::double_registers_offset(); |
280 const RegisterConfiguration* config = | 280 const RegisterConfiguration* config = RegisterConfiguration::Crankshaft(); |
281 RegisterConfiguration::ArchDefault(RegisterConfiguration::CRANKSHAFT); | |
282 // Fill in the double input registers. | 281 // Fill in the double input registers. |
283 for (int i = 0; i < X87Register::kMaxNumAllocatableRegisters; ++i) { | 282 for (int i = 0; i < X87Register::kMaxNumAllocatableRegisters; ++i) { |
284 int code = config->GetAllocatableDoubleCode(i); | 283 int code = config->GetAllocatableDoubleCode(i); |
285 int dst_offset = code * kDoubleSize + double_regs_offset; | 284 int dst_offset = code * kDoubleSize + double_regs_offset; |
286 int src_offset = code * kDoubleSize; | 285 int src_offset = code * kDoubleSize; |
287 __ fld_d(Operand(esp, src_offset)); | 286 __ fld_d(Operand(esp, src_offset)); |
288 __ fstp_d(Operand(ebx, dst_offset)); | 287 __ fstp_d(Operand(ebx, dst_offset)); |
289 } | 288 } |
290 | 289 |
291 // Clear FPU all exceptions. | 290 // Clear FPU all exceptions. |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
423 } | 422 } |
424 | 423 |
425 | 424 |
426 #undef __ | 425 #undef __ |
427 | 426 |
428 | 427 |
429 } // namespace internal | 428 } // namespace internal |
430 } // namespace v8 | 429 } // namespace v8 |
431 | 430 |
432 #endif // V8_TARGET_ARCH_X87 | 431 #endif // V8_TARGET_ARCH_X87 |
OLD | NEW |