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

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

Issue 11300008: Fix ugly typo in GenerateNewNonStrictFast. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
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 | « no previous file | src/x64/code-stubs-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 // 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 3575 matching lines...) Expand 10 before | Expand all | Expand 10 after
3586 __ pop(eax); // Address of arguments object. 3586 __ pop(eax); // Address of arguments object.
3587 __ pop(ebx); // Parameter count. 3587 __ pop(ebx); // Parameter count.
3588 3588
3589 // Return and remove the on-stack parameters. 3589 // Return and remove the on-stack parameters.
3590 __ ret(3 * kPointerSize); 3590 __ ret(3 * kPointerSize);
3591 3591
3592 // Do the runtime call to allocate the arguments object. 3592 // Do the runtime call to allocate the arguments object.
3593 __ bind(&runtime); 3593 __ bind(&runtime);
3594 __ pop(eax); // Remove saved parameter count. 3594 __ pop(eax); // Remove saved parameter count.
3595 __ mov(Operand(esp, 1 * kPointerSize), ecx); // Patch argument count. 3595 __ mov(Operand(esp, 1 * kPointerSize), ecx); // Patch argument count.
3596 __ TailCallRuntime(Runtime::kNewStrictArgumentsFast, 3, 1); 3596 __ TailCallRuntime(Runtime::kNewArgumentsFast, 3, 1);
3597 } 3597 }
3598 3598
3599 3599
3600 void ArgumentsAccessStub::GenerateNewStrict(MacroAssembler* masm) { 3600 void ArgumentsAccessStub::GenerateNewStrict(MacroAssembler* masm) {
3601 // esp[0] : return address 3601 // esp[0] : return address
3602 // esp[4] : number of parameters 3602 // esp[4] : number of parameters
3603 // esp[8] : receiver displacement 3603 // esp[8] : receiver displacement
3604 // esp[12] : function 3604 // esp[12] : function
3605 3605
3606 // Check if the calling frame is an arguments adaptor frame. 3606 // Check if the calling frame is an arguments adaptor frame.
(...skipping 3920 matching lines...) Expand 10 before | Expand all | Expand 10 after
7527 // Restore ecx. 7527 // Restore ecx.
7528 __ pop(ecx); 7528 __ pop(ecx);
7529 __ ret(0); 7529 __ ret(0);
7530 } 7530 }
7531 7531
7532 #undef __ 7532 #undef __
7533 7533
7534 } } // namespace v8::internal 7534 } } // namespace v8::internal
7535 7535
7536 #endif // V8_TARGET_ARCH_IA32 7536 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « no previous file | src/x64/code-stubs-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698