| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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/bootstrapper.h" | 9 #include "src/bootstrapper.h" |
| 10 #include "src/code-stubs.h" | 10 #include "src/code-stubs.h" |
| (...skipping 589 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 600 void ArgumentsAccessStub::GenerateNewSloppyFast(MacroAssembler* masm) { | 600 void ArgumentsAccessStub::GenerateNewSloppyFast(MacroAssembler* masm) { |
| 601 // Stack layout: | 601 // Stack layout: |
| 602 // rsp[0] : return address | 602 // rsp[0] : return address |
| 603 // rsp[8] : number of parameters (tagged) | 603 // rsp[8] : number of parameters (tagged) |
| 604 // rsp[16] : receiver displacement | 604 // rsp[16] : receiver displacement |
| 605 // rsp[24] : function | 605 // rsp[24] : function |
| 606 // Registers used over the whole function: | 606 // Registers used over the whole function: |
| 607 // rbx: the mapped parameter count (untagged) | 607 // rbx: the mapped parameter count (untagged) |
| 608 // rax: the allocated object (tagged). | 608 // rax: the allocated object (tagged). |
| 609 | 609 |
| 610 CHECK(!has_new_target()); | 610 // CHECK(!has_new_target()); |
| 611 | 611 |
| 612 Factory* factory = isolate()->factory(); | 612 Factory* factory = isolate()->factory(); |
| 613 | 613 |
| 614 StackArgumentsAccessor args(rsp, 3, ARGUMENTS_DONT_CONTAIN_RECEIVER); | 614 StackArgumentsAccessor args(rsp, 3, ARGUMENTS_DONT_CONTAIN_RECEIVER); |
| 615 __ SmiToInteger64(rbx, args.GetArgumentOperand(2)); | 615 __ SmiToInteger64(rbx, args.GetArgumentOperand(2)); |
| 616 // rbx = parameter count (untagged) | 616 // rbx = parameter count (untagged) |
| 617 | 617 |
| 618 // Check if the calling frame is an arguments adaptor frame. | 618 // Check if the calling frame is an arguments adaptor frame. |
| 619 Label runtime; | 619 Label runtime; |
| 620 Label adaptor_frame, try_allocate; | 620 Label adaptor_frame, try_allocate; |
| (...skipping 4805 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5426 kStackSpace, nullptr, return_value_operand, NULL); | 5426 kStackSpace, nullptr, return_value_operand, NULL); |
| 5427 } | 5427 } |
| 5428 | 5428 |
| 5429 | 5429 |
| 5430 #undef __ | 5430 #undef __ |
| 5431 | 5431 |
| 5432 } // namespace internal | 5432 } // namespace internal |
| 5433 } // namespace v8 | 5433 } // namespace v8 |
| 5434 | 5434 |
| 5435 #endif // V8_TARGET_ARCH_X64 | 5435 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |