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

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

Issue 7039036: Fix calls of strict mode function with an implicit receiver. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Address comments. Created 9 years, 7 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/lithium-codegen-ia32.cc ('k') | src/ia32/macro-assembler-ia32.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 2214 matching lines...) Expand 10 before | Expand all | Expand 10 after
2225 return MarkAsCall(new LStackCheck, instr); 2225 return MarkAsCall(new LStackCheck, instr);
2226 } 2226 }
2227 2227
2228 2228
2229 LInstruction* LChunkBuilder::DoEnterInlined(HEnterInlined* instr) { 2229 LInstruction* LChunkBuilder::DoEnterInlined(HEnterInlined* instr) {
2230 HEnvironment* outer = current_block_->last_environment(); 2230 HEnvironment* outer = current_block_->last_environment();
2231 HConstant* undefined = graph()->GetConstantUndefined(); 2231 HConstant* undefined = graph()->GetConstantUndefined();
2232 HEnvironment* inner = outer->CopyForInlining(instr->closure(), 2232 HEnvironment* inner = outer->CopyForInlining(instr->closure(),
2233 instr->function(), 2233 instr->function(),
2234 HEnvironment::LITHIUM, 2234 HEnvironment::LITHIUM,
2235 undefined); 2235 undefined,
2236 instr->call_kind());
2236 current_block_->UpdateEnvironment(inner); 2237 current_block_->UpdateEnvironment(inner);
2237 chunk_->AddInlinedClosure(instr->closure()); 2238 chunk_->AddInlinedClosure(instr->closure());
2238 return NULL; 2239 return NULL;
2239 } 2240 }
2240 2241
2241 2242
2242 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { 2243 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) {
2243 HEnvironment* outer = current_block_->last_environment()->outer(); 2244 HEnvironment* outer = current_block_->last_environment()->outer();
2244 current_block_->UpdateEnvironment(outer); 2245 current_block_->UpdateEnvironment(outer);
2245 return NULL; 2246 return NULL;
2246 } 2247 }
2247 2248
2248 2249
2249 LInstruction* LChunkBuilder::DoIn(HIn* instr) { 2250 LInstruction* LChunkBuilder::DoIn(HIn* instr) {
2250 LOperand* key = UseOrConstantAtStart(instr->key()); 2251 LOperand* key = UseOrConstantAtStart(instr->key());
2251 LOperand* object = UseOrConstantAtStart(instr->object()); 2252 LOperand* object = UseOrConstantAtStart(instr->object());
2252 LIn* result = new LIn(key, object); 2253 LIn* result = new LIn(key, object);
2253 return MarkAsCall(DefineFixed(result, eax), instr); 2254 return MarkAsCall(DefineFixed(result, eax), instr);
2254 } 2255 }
2255 2256
2256 2257
2257 } } // namespace v8::internal 2258 } } // namespace v8::internal
2258 2259
2259 #endif // V8_TARGET_ARCH_IA32 2260 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/lithium-codegen-ia32.cc ('k') | src/ia32/macro-assembler-ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698