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

Side by Side Diff: src/arm/full-codegen-arm.cc

Issue 6625048: Strict mode arguments do not share binding with formal parameters. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: CR Feedback Created 9 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « src/arm/codegen-arm.cc ('k') | src/ast.h » ('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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 Operand(StandardFrameConstants::kCallerSPOffset + offset)); 205 Operand(StandardFrameConstants::kCallerSPOffset + offset));
206 __ mov(r1, Operand(Smi::FromInt(scope()->num_parameters()))); 206 __ mov(r1, Operand(Smi::FromInt(scope()->num_parameters())));
207 __ Push(r3, r2, r1); 207 __ Push(r3, r2, r1);
208 208
209 // Arguments to ArgumentsAccessStub: 209 // Arguments to ArgumentsAccessStub:
210 // function, receiver address, parameter count. 210 // function, receiver address, parameter count.
211 // The stub will rewrite receiever and parameter count if the previous 211 // The stub will rewrite receiever and parameter count if the previous
212 // stack frame was an arguments adapter frame. 212 // stack frame was an arguments adapter frame.
213 ArgumentsAccessStub stub(ArgumentsAccessStub::NEW_OBJECT); 213 ArgumentsAccessStub stub(ArgumentsAccessStub::NEW_OBJECT);
214 __ CallStub(&stub); 214 __ CallStub(&stub);
215 // Duplicate the value; move-to-slot operation might clobber registers. 215
216 __ mov(r3, r0); 216 Variable* arguments_shadow = scope()->arguments_shadow();
217 if (arguments_shadow != NULL) {
218 // Duplicate the value; move-to-slot operation might clobber registers.
219 __ mov(r3, r0);
220 Move(arguments_shadow->AsSlot(), r3, r1, r2);
221 }
217 Move(arguments->AsSlot(), r0, r1, r2); 222 Move(arguments->AsSlot(), r0, r1, r2);
218 Slot* dot_arguments_slot = scope()->arguments_shadow()->AsSlot();
219 Move(dot_arguments_slot, r3, r1, r2);
220 } 223 }
221 224
222 if (FLAG_trace) { 225 if (FLAG_trace) {
223 __ CallRuntime(Runtime::kTraceEnter, 0); 226 __ CallRuntime(Runtime::kTraceEnter, 0);
224 } 227 }
225 228
226 // Visit the declarations and body unless there is an illegal 229 // Visit the declarations and body unless there is an illegal
227 // redeclaration. 230 // redeclaration.
228 if (scope()->HasIllegalRedeclaration()) { 231 if (scope()->HasIllegalRedeclaration()) {
229 Comment cmnt(masm_, "[ Declarations"); 232 Comment cmnt(masm_, "[ Declarations");
(...skipping 4047 matching lines...) Expand 10 before | Expand all | Expand 10 after
4277 __ mov(r1, Operand(r1, ASR, 1)); // Un-smi-tag value. 4280 __ mov(r1, Operand(r1, ASR, 1)); // Un-smi-tag value.
4278 __ add(pc, r1, Operand(masm_->CodeObject())); 4281 __ add(pc, r1, Operand(masm_->CodeObject()));
4279 } 4282 }
4280 4283
4281 4284
4282 #undef __ 4285 #undef __
4283 4286
4284 } } // namespace v8::internal 4287 } } // namespace v8::internal
4285 4288
4286 #endif // V8_TARGET_ARCH_ARM 4289 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/codegen-arm.cc ('k') | src/ast.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698