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

Side by Side Diff: src/x64/code-stubs-x64.cc

Issue 11362114: Merged r12816, r12826, r12830 into 3.14 branch. (Closed) Base URL: https://v8.googlecode.com/svn/branches/3.14
Patch Set: Created 8 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « src/version.cc ('k') | test/mjsunit/regress/regress-crbug-157520.js » ('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 // 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
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
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
OLDNEW
« no previous file with comments | « src/version.cc ('k') | test/mjsunit/regress/regress-crbug-157520.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698