OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 2586 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2597 __ j(less, &arguments_loop, Label::kNear); | 2597 __ j(less, &arguments_loop, Label::kNear); |
2598 | 2598 |
2599 // Return and remove the on-stack parameters. | 2599 // Return and remove the on-stack parameters. |
2600 __ ret(3 * kPointerSize); | 2600 __ ret(3 * kPointerSize); |
2601 | 2601 |
2602 // Do the runtime call to allocate the arguments object. | 2602 // Do the runtime call to allocate the arguments object. |
2603 // rcx = argument count (untagged) | 2603 // rcx = argument count (untagged) |
2604 __ bind(&runtime); | 2604 __ bind(&runtime); |
2605 __ Integer32ToSmi(rcx, rcx); | 2605 __ Integer32ToSmi(rcx, rcx); |
2606 __ movq(Operand(rsp, 1 * kPointerSize), rcx); // Patch argument count. | 2606 __ movq(Operand(rsp, 1 * kPointerSize), rcx); // Patch argument count. |
2607 __ TailCallRuntime(Runtime::kNewStrictArgumentsFast, 3, 1); | 2607 __ TailCallRuntime(Runtime::kNewArgumentsFast, 3, 1); |
2608 } | 2608 } |
2609 | 2609 |
2610 | 2610 |
2611 void ArgumentsAccessStub::GenerateNewNonStrictSlow(MacroAssembler* masm) { | 2611 void ArgumentsAccessStub::GenerateNewNonStrictSlow(MacroAssembler* masm) { |
2612 // esp[0] : return address | 2612 // esp[0] : return address |
2613 // esp[8] : number of parameters | 2613 // esp[8] : number of parameters |
2614 // esp[16] : receiver displacement | 2614 // esp[16] : receiver displacement |
2615 // esp[24] : function | 2615 // esp[24] : function |
2616 | 2616 |
2617 // Check if the calling frame is an arguments adaptor frame. | 2617 // Check if the calling frame is an arguments adaptor frame. |
(...skipping 3881 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6499 #endif | 6499 #endif |
6500 | 6500 |
6501 __ Ret(); | 6501 __ Ret(); |
6502 } | 6502 } |
6503 | 6503 |
6504 #undef __ | 6504 #undef __ |
6505 | 6505 |
6506 } } // namespace v8::internal | 6506 } } // namespace v8::internal |
6507 | 6507 |
6508 #endif // V8_TARGET_ARCH_X64 | 6508 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |