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

Side by Side Diff: src/x64/builtins-x64.cc

Issue 923443003: new classes: no longer experimental. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: One more rebase? Created 5 years, 10 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 | « src/runtime/runtime-classes.cc ('k') | src/x64/full-codegen-x64.cc » ('j') | 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 #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/code-factory.h" 9 #include "src/code-factory.h"
10 #include "src/codegen.h" 10 #include "src/codegen.h"
(...skipping 517 matching lines...) Expand 10 before | Expand all | Expand 10 after
528 // Copy arguments and receiver to the expression stack. 528 // Copy arguments and receiver to the expression stack.
529 Label loop, entry; 529 Label loop, entry;
530 __ movp(rcx, rax); 530 __ movp(rcx, rax);
531 __ jmp(&entry); 531 __ jmp(&entry);
532 __ bind(&loop); 532 __ bind(&loop);
533 __ Push(Operand(rbx, rcx, times_pointer_size, 0)); 533 __ Push(Operand(rbx, rcx, times_pointer_size, 0));
534 __ bind(&entry); 534 __ bind(&entry);
535 __ decp(rcx); 535 __ decp(rcx);
536 __ j(greater_equal, &loop); 536 __ j(greater_equal, &loop);
537 537
538 __ incp(rax); // Pushed new.target.
539
540 // Handle step in.
541 Label skip_step_in;
542 ExternalReference debug_step_in_fp =
543 ExternalReference::debug_step_in_fp_address(masm->isolate());
544 __ Move(kScratchRegister, debug_step_in_fp);
545 __ cmpp(Operand(kScratchRegister, 0), Immediate(0));
546 __ j(equal, &skip_step_in);
547
548 __ Push(rax);
549 __ Push(rdi);
550 __ Push(rdi);
551 __ CallRuntime(Runtime::kHandleStepInForDerivedConstructors, 1);
552 __ Pop(rdi);
553 __ Pop(rax);
554
555 __ bind(&skip_step_in);
556
538 // Call the function. 557 // Call the function.
539 __ incp(rax); // Pushed new.target.
540 ParameterCount actual(rax); 558 ParameterCount actual(rax);
541 __ InvokeFunction(rdi, actual, CALL_FUNCTION, NullCallWrapper()); 559 __ InvokeFunction(rdi, actual, CALL_FUNCTION, NullCallWrapper());
542 560
543 // Restore context from the frame. 561 // Restore context from the frame.
544 __ movp(rsi, Operand(rbp, StandardFrameConstants::kContextOffset)); 562 __ movp(rsi, Operand(rbp, StandardFrameConstants::kContextOffset));
545 563
546 __ movp(rbx, Operand(rsp, 0)); // Get arguments count. 564 __ movp(rbx, Operand(rsp, 0)); // Get arguments count.
547 } // Leave construct frame. 565 } // Leave construct frame.
548 566
549 // Remove caller arguments from the stack and return. 567 // Remove caller arguments from the stack and return.
(...skipping 1046 matching lines...) Expand 10 before | Expand all | Expand 10 after
1596 __ bind(&ok); 1614 __ bind(&ok);
1597 __ ret(0); 1615 __ ret(0);
1598 } 1616 }
1599 1617
1600 1618
1601 #undef __ 1619 #undef __
1602 1620
1603 } } // namespace v8::internal 1621 } } // namespace v8::internal
1604 1622
1605 #endif // V8_TARGET_ARCH_X64 1623 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/runtime/runtime-classes.cc ('k') | src/x64/full-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698