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

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

Issue 11035053: Rollback trunk to bleeding_edge revision 12525 (Closed) Base URL: https://v8.googlecode.com/svn/trunk
Patch Set: Created 8 years, 2 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/lithium-codegen-x64.cc ('k') | test/benchmarks/testcfg.py » ('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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 2110 matching lines...) Expand 10 before | Expand all | Expand 10 after
2121 2121
2122 LInstruction* LChunkBuilder::DoDeleteProperty(HDeleteProperty* instr) { 2122 LInstruction* LChunkBuilder::DoDeleteProperty(HDeleteProperty* instr) {
2123 LOperand* object = UseAtStart(instr->object()); 2123 LOperand* object = UseAtStart(instr->object());
2124 LOperand* key = UseOrConstantAtStart(instr->key()); 2124 LOperand* key = UseOrConstantAtStart(instr->key());
2125 LDeleteProperty* result = new(zone()) LDeleteProperty(object, key); 2125 LDeleteProperty* result = new(zone()) LDeleteProperty(object, key);
2126 return MarkAsCall(DefineFixed(result, rax), instr); 2126 return MarkAsCall(DefineFixed(result, rax), instr);
2127 } 2127 }
2128 2128
2129 2129
2130 LInstruction* LChunkBuilder::DoOsrEntry(HOsrEntry* instr) { 2130 LInstruction* LChunkBuilder::DoOsrEntry(HOsrEntry* instr) {
2131 ASSERT(argument_count_ == 0);
2132 allocator_->MarkAsOsrEntry(); 2131 allocator_->MarkAsOsrEntry();
2133 current_block_->last_environment()->set_ast_id(instr->ast_id()); 2132 current_block_->last_environment()->set_ast_id(instr->ast_id());
2134 return AssignEnvironment(new(zone()) LOsrEntry); 2133 return AssignEnvironment(new(zone()) LOsrEntry);
2135 } 2134 }
2136 2135
2137 2136
2138 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) { 2137 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) {
2139 int spill_index = chunk()->GetParameterStackSlot(instr->index()); 2138 int spill_index = chunk()->GetParameterStackSlot(instr->index());
2140 return DefineAsSpilled(new(zone()) LParameter, spill_index); 2139 return DefineAsSpilled(new(zone()) LParameter, spill_index);
2141 } 2140 }
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
2261 chunk_->AddInlinedClosure(instr->closure()); 2260 chunk_->AddInlinedClosure(instr->closure());
2262 return NULL; 2261 return NULL;
2263 } 2262 }
2264 2263
2265 2264
2266 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { 2265 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) {
2267 LInstruction* pop = NULL; 2266 LInstruction* pop = NULL;
2268 2267
2269 HEnvironment* env = current_block_->last_environment(); 2268 HEnvironment* env = current_block_->last_environment();
2270 2269
2271 if (env->entry()->arguments_pushed()) { 2270 if (instr->arguments_pushed()) {
2272 int argument_count = env->arguments_environment()->parameter_count(); 2271 int argument_count = env->arguments_environment()->parameter_count();
2273 pop = new(zone()) LDrop(argument_count); 2272 pop = new(zone()) LDrop(argument_count);
2274 argument_count_ -= argument_count; 2273 argument_count_ -= argument_count;
2275 } 2274 }
2276 2275
2277 HEnvironment* outer = current_block_->last_environment()-> 2276 HEnvironment* outer = current_block_->last_environment()->
2278 DiscardInlined(false); 2277 DiscardInlined(false);
2279 current_block_->UpdateEnvironment(outer); 2278 current_block_->UpdateEnvironment(outer);
2280 2279
2281 return pop; 2280 return pop;
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
2314 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2313 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2315 LOperand* object = UseRegister(instr->object()); 2314 LOperand* object = UseRegister(instr->object());
2316 LOperand* index = UseTempRegister(instr->index()); 2315 LOperand* index = UseTempRegister(instr->index());
2317 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); 2316 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index));
2318 } 2317 }
2319 2318
2320 2319
2321 } } // namespace v8::internal 2320 } } // namespace v8::internal
2322 2321
2323 #endif // V8_TARGET_ARCH_X64 2322 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/lithium-codegen-x64.cc ('k') | test/benchmarks/testcfg.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698