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

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

Issue 6248014: Reapply change to with/arguments interaction. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge/build/ia32
Patch Set: Change test to be more consistent. Created 9 years, 11 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/ia32/codegen-ia32.cc ('k') | src/scopes.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 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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 __ mov(eax, Immediate(Factory::undefined_value())); 135 __ mov(eax, Immediate(Factory::undefined_value()));
136 for (int i = 0; i < locals_count; i++) { 136 for (int i = 0; i < locals_count; i++) {
137 __ push(eax); 137 __ push(eax);
138 } 138 }
139 } 139 }
140 } 140 }
141 141
142 bool function_in_register = true; 142 bool function_in_register = true;
143 143
144 // Possibly allocate a local context. 144 // Possibly allocate a local context.
145 int heap_slots = scope()->num_heap_slots() - Context::MIN_CONTEXT_SLOTS; 145 int heap_slots = scope()->num_heap_slots();
146 if (heap_slots > 0) { 146 if (heap_slots > 0) {
147 Comment cmnt(masm_, "[ Allocate local context"); 147 Comment cmnt(masm_, "[ Allocate local context");
148 // Argument to NewContext is the function, which is still in edi. 148 // Argument to NewContext is the function, which is still in edi.
149 __ push(edi); 149 __ push(edi);
150 if (heap_slots <= FastNewContextStub::kMaximumSlots) { 150 if (heap_slots <= FastNewContextStub::kMaximumSlots) {
151 FastNewContextStub stub(heap_slots); 151 FastNewContextStub stub(heap_slots);
152 __ CallStub(&stub); 152 __ CallStub(&stub);
153 } else { 153 } else {
154 __ CallRuntime(Runtime::kNewContext, 1); 154 __ CallRuntime(Runtime::kNewContext, 1);
155 } 155 }
(...skipping 4209 matching lines...) Expand 10 before | Expand all | Expand 10 after
4365 // And return. 4365 // And return.
4366 __ ret(0); 4366 __ ret(0);
4367 } 4367 }
4368 4368
4369 4369
4370 #undef __ 4370 #undef __
4371 4371
4372 } } // namespace v8::internal 4372 } } // namespace v8::internal
4373 4373
4374 #endif // V8_TARGET_ARCH_IA32 4374 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/codegen-ia32.cc ('k') | src/scopes.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698