| 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 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 320 __ push(eax); | 320 __ push(eax); |
| 321 __ PrepareCallCFunction(1, ebx); | 321 __ PrepareCallCFunction(1, ebx); |
| 322 __ mov(Operand(esp, 0 * kPointerSize), eax); | 322 __ mov(Operand(esp, 0 * kPointerSize), eax); |
| 323 { | 323 { |
| 324 AllowExternalCallThatCantCauseGC scope(masm()); | 324 AllowExternalCallThatCantCauseGC scope(masm()); |
| 325 __ CallCFunction( | 325 __ CallCFunction( |
| 326 ExternalReference::compute_output_frames_function(isolate()), 1); | 326 ExternalReference::compute_output_frames_function(isolate()), 1); |
| 327 } | 327 } |
| 328 __ pop(eax); | 328 __ pop(eax); |
| 329 __ pop(edi); | 329 __ pop(edi); |
| 330 __ mov(esp, Operand(eax, Deoptimizer::caller_frame_top_offset())); |
| 330 | 331 |
| 331 // Replace the current frame with the output frames. | 332 // Replace the current (input) frame with the output frames. |
| 332 Label outer_push_loop, inner_push_loop, | 333 Label outer_push_loop, inner_push_loop, |
| 333 outer_loop_header, inner_loop_header; | 334 outer_loop_header, inner_loop_header; |
| 334 // Outer loop state: eax = current FrameDescription**, edx = one past the | 335 // Outer loop state: eax = current FrameDescription**, edx = one past the |
| 335 // last FrameDescription**. | 336 // last FrameDescription**. |
| 336 __ mov(edx, Operand(eax, Deoptimizer::output_count_offset())); | 337 __ mov(edx, Operand(eax, Deoptimizer::output_count_offset())); |
| 337 __ mov(eax, Operand(eax, Deoptimizer::output_offset())); | 338 __ mov(eax, Operand(eax, Deoptimizer::output_offset())); |
| 338 __ lea(edx, Operand(eax, edx, times_4, 0)); | 339 __ lea(edx, Operand(eax, edx, times_4, 0)); |
| 339 __ jmp(&outer_loop_header); | 340 __ jmp(&outer_loop_header); |
| 340 __ bind(&outer_push_loop); | 341 __ bind(&outer_push_loop); |
| 341 // Inner loop state: ebx = current FrameDescription*, ecx = loop index. | 342 // Inner loop state: ebx = current FrameDescription*, ecx = loop index. |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 422 } | 423 } |
| 423 | 424 |
| 424 | 425 |
| 425 #undef __ | 426 #undef __ |
| 426 | 427 |
| 427 | 428 |
| 428 } // namespace internal | 429 } // namespace internal |
| 429 } // namespace v8 | 430 } // namespace v8 |
| 430 | 431 |
| 431 #endif // V8_TARGET_ARCH_X87 | 432 #endif // V8_TARGET_ARCH_X87 |
| OLD | NEW |