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

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

Issue 6624085: [Isolates] Merge 7051:7083 from bleeding_edge to isolates. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/isolates/
Patch Set: 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/x64/deoptimizer-x64.cc ('k') | src/x64/lithium-codegen-x64.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 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 __ lea(rdx, 193 __ lea(rdx,
194 Operand(rbp, StandardFrameConstants::kCallerSPOffset + offset)); 194 Operand(rbp, StandardFrameConstants::kCallerSPOffset + offset));
195 __ push(rdx); 195 __ push(rdx);
196 __ Push(Smi::FromInt(scope()->num_parameters())); 196 __ Push(Smi::FromInt(scope()->num_parameters()));
197 // Arguments to ArgumentsAccessStub: 197 // Arguments to ArgumentsAccessStub:
198 // function, receiver address, parameter count. 198 // function, receiver address, parameter count.
199 // The stub will rewrite receiver and parameter count if the previous 199 // The stub will rewrite receiver and parameter count if the previous
200 // stack frame was an arguments adapter frame. 200 // stack frame was an arguments adapter frame.
201 ArgumentsAccessStub stub(ArgumentsAccessStub::NEW_OBJECT); 201 ArgumentsAccessStub stub(ArgumentsAccessStub::NEW_OBJECT);
202 __ CallStub(&stub); 202 __ CallStub(&stub);
203 // Store new arguments object in both "arguments" and ".arguments" slots. 203
204 __ movq(rcx, rax); 204 Variable* arguments_shadow = scope()->arguments_shadow();
205 if (arguments_shadow != NULL) {
206 // Store new arguments object in both "arguments" and ".arguments" slots.
207 __ movq(rcx, rax);
208 Move(arguments_shadow->AsSlot(), rcx, rbx, rdx);
209 }
205 Move(arguments->AsSlot(), rax, rbx, rdx); 210 Move(arguments->AsSlot(), rax, rbx, rdx);
206 Slot* dot_arguments_slot = scope()->arguments_shadow()->AsSlot();
207 Move(dot_arguments_slot, rcx, rbx, rdx);
208 } 211 }
209 212
210 if (FLAG_trace) { 213 if (FLAG_trace) {
211 __ CallRuntime(Runtime::kTraceEnter, 0); 214 __ CallRuntime(Runtime::kTraceEnter, 0);
212 } 215 }
213 216
214 // Visit the declarations and body unless there is an illegal 217 // Visit the declarations and body unless there is an illegal
215 // redeclaration. 218 // redeclaration.
216 if (scope()->HasIllegalRedeclaration()) { 219 if (scope()->HasIllegalRedeclaration()) {
217 Comment cmnt(masm_, "[ Declarations"); 220 Comment cmnt(masm_, "[ Declarations");
(...skipping 3760 matching lines...) Expand 10 before | Expand all | Expand 10 after
3978 __ ret(0); 3981 __ ret(0);
3979 } 3982 }
3980 3983
3981 3984
3982 #undef __ 3985 #undef __
3983 3986
3984 3987
3985 } } // namespace v8::internal 3988 } } // namespace v8::internal
3986 3989
3987 #endif // V8_TARGET_ARCH_X64 3990 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/deoptimizer-x64.cc ('k') | src/x64/lithium-codegen-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698