Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(188)

Side by Side Diff: src/x87/deoptimizer-x87.cc

Issue 1785593002: X87: [turbofan] [deoptimizer] Support inlining of ES6 tail calls. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698