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

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

Issue 6372013: Revert "Reapply change to with/arguments interaction." (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 10 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/code-stubs-ia32.cc ('k') | src/ia32/full-codegen-ia32.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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 __ int3(); 202 __ int3();
203 } 203 }
204 #endif 204 #endif
205 205
206 frame_->Enter(); 206 frame_->Enter();
207 207
208 // Allocate space for locals and initialize them. 208 // Allocate space for locals and initialize them.
209 frame_->AllocateStackSlots(); 209 frame_->AllocateStackSlots();
210 210
211 // Allocate the local context if needed. 211 // Allocate the local context if needed.
212 int heap_slots = scope()->num_heap_slots(); 212 int heap_slots = scope()->num_heap_slots() - Context::MIN_CONTEXT_SLOTS;
213 if (heap_slots > 0) { 213 if (heap_slots > 0) {
214 Comment cmnt(masm_, "[ allocate local context"); 214 Comment cmnt(masm_, "[ allocate local context");
215 // Allocate local context. 215 // Allocate local context.
216 // Get outer context and create a new context based on it. 216 // Get outer context and create a new context based on it.
217 frame_->PushFunction(); 217 frame_->PushFunction();
218 Result context; 218 Result context;
219 if (heap_slots <= FastNewContextStub::kMaximumSlots) { 219 if (heap_slots <= FastNewContextStub::kMaximumSlots) {
220 FastNewContextStub stub(heap_slots); 220 FastNewContextStub stub(heap_slots);
221 context = frame_->CallStub(&stub, 1); 221 context = frame_->CallStub(&stub, 1);
222 } else { 222 } else {
(...skipping 10087 matching lines...) Expand 10 before | Expand all | Expand 10 after
10310 memcpy(chunk->GetStartAddress(), desc.buffer, desc.instr_size); 10310 memcpy(chunk->GetStartAddress(), desc.buffer, desc.instr_size);
10311 CPU::FlushICache(chunk->GetStartAddress(), desc.instr_size); 10311 CPU::FlushICache(chunk->GetStartAddress(), desc.instr_size);
10312 return FUNCTION_CAST<MemCopyFunction>(chunk->GetStartAddress()); 10312 return FUNCTION_CAST<MemCopyFunction>(chunk->GetStartAddress());
10313 } 10313 }
10314 10314
10315 #undef __ 10315 #undef __
10316 10316
10317 } } // namespace v8::internal 10317 } } // namespace v8::internal
10318 10318
10319 #endif // V8_TARGET_ARCH_IA32 10319 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/code-stubs-ia32.cc ('k') | src/ia32/full-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698