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

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

Issue 7272002: Cleanup to HEnvironment::CopyForInlining (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 6 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 | « AUTHORS ('k') | src/hydrogen.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 2199 matching lines...) Expand 10 before | Expand all | Expand 10 after
2210 return AssignEnvironment(AssignPointerMap(new LStackCheck)); 2210 return AssignEnvironment(AssignPointerMap(new LStackCheck));
2211 } 2211 }
2212 } 2212 }
2213 2213
2214 2214
2215 LInstruction* LChunkBuilder::DoEnterInlined(HEnterInlined* instr) { 2215 LInstruction* LChunkBuilder::DoEnterInlined(HEnterInlined* instr) {
2216 HEnvironment* outer = current_block_->last_environment(); 2216 HEnvironment* outer = current_block_->last_environment();
2217 HConstant* undefined = graph()->GetConstantUndefined(); 2217 HConstant* undefined = graph()->GetConstantUndefined();
2218 HEnvironment* inner = outer->CopyForInlining(instr->closure(), 2218 HEnvironment* inner = outer->CopyForInlining(instr->closure(),
2219 instr->function(), 2219 instr->function(),
2220 HEnvironment::LITHIUM,
2221 undefined, 2220 undefined,
2222 instr->call_kind()); 2221 instr->call_kind());
2223 current_block_->UpdateEnvironment(inner); 2222 current_block_->UpdateEnvironment(inner);
2224 chunk_->AddInlinedClosure(instr->closure()); 2223 chunk_->AddInlinedClosure(instr->closure());
2225 return NULL; 2224 return NULL;
2226 } 2225 }
2227 2226
2228 2227
2229 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { 2228 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) {
2230 HEnvironment* outer = current_block_->last_environment()->outer(); 2229 HEnvironment* outer = current_block_->last_environment()->outer();
2231 current_block_->UpdateEnvironment(outer); 2230 current_block_->UpdateEnvironment(outer);
2232 return NULL; 2231 return NULL;
2233 } 2232 }
2234 2233
2235 2234
2236 LInstruction* LChunkBuilder::DoIn(HIn* instr) { 2235 LInstruction* LChunkBuilder::DoIn(HIn* instr) {
2237 LOperand* key = UseRegisterAtStart(instr->key()); 2236 LOperand* key = UseRegisterAtStart(instr->key());
2238 LOperand* object = UseRegisterAtStart(instr->object()); 2237 LOperand* object = UseRegisterAtStart(instr->object());
2239 LIn* result = new LIn(key, object); 2238 LIn* result = new LIn(key, object);
2240 return MarkAsCall(DefineFixed(result, r0), instr); 2239 return MarkAsCall(DefineFixed(result, r0), instr);
2241 } 2240 }
2242 2241
2243 2242
2244 } } // namespace v8::internal 2243 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « AUTHORS ('k') | src/hydrogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698