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

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

Issue 9838059: Rollback of r11118, r11109 in trunk branch. (Closed) Base URL: https://v8.googlecode.com/svn/trunk
Patch Set: Created 8 years, 9 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/arm/lithium-arm.h ('k') | src/arm/lithium-codegen-arm.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 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 1059 matching lines...) Expand 10 before | Expand all | Expand 10 after
1070 } 1070 }
1071 1071
1072 1072
1073 LInstruction* LChunkBuilder::DoArgumentsLength(HArgumentsLength* instr) { 1073 LInstruction* LChunkBuilder::DoArgumentsLength(HArgumentsLength* instr) {
1074 LOperand* value = UseRegister(instr->value()); 1074 LOperand* value = UseRegister(instr->value());
1075 return DefineAsRegister(new(zone()) LArgumentsLength(value)); 1075 return DefineAsRegister(new(zone()) LArgumentsLength(value));
1076 } 1076 }
1077 1077
1078 1078
1079 LInstruction* LChunkBuilder::DoArgumentsElements(HArgumentsElements* elems) { 1079 LInstruction* LChunkBuilder::DoArgumentsElements(HArgumentsElements* elems) {
1080 return DefineAsRegister(new(zone()) LArgumentsElements( 1080 return DefineAsRegister(new(zone()) LArgumentsElements);
1081 current_block_->last_environment()->outer() != NULL));
1082 } 1081 }
1083 1082
1084 1083
1085 LInstruction* LChunkBuilder::DoInstanceOf(HInstanceOf* instr) { 1084 LInstruction* LChunkBuilder::DoInstanceOf(HInstanceOf* instr) {
1086 LInstanceOf* result = 1085 LInstanceOf* result =
1087 new(zone()) LInstanceOf(UseFixed(instr->left(), r0), 1086 new(zone()) LInstanceOf(UseFixed(instr->left(), r0),
1088 UseFixed(instr->right(), r1)); 1087 UseFixed(instr->right(), r1));
1089 return MarkAsCall(DefineFixed(result, r0), instr); 1088 return MarkAsCall(DefineFixed(result, r0), instr);
1090 } 1089 }
1091 1090
(...skipping 1173 matching lines...) Expand 10 before | Expand all | Expand 10 after
2265 2264
2266 LInstruction* LChunkBuilder::DoEnterInlined(HEnterInlined* instr) { 2265 LInstruction* LChunkBuilder::DoEnterInlined(HEnterInlined* instr) {
2267 HEnvironment* outer = current_block_->last_environment(); 2266 HEnvironment* outer = current_block_->last_environment();
2268 HConstant* undefined = graph()->GetConstantUndefined(); 2267 HConstant* undefined = graph()->GetConstantUndefined();
2269 HEnvironment* inner = outer->CopyForInlining(instr->closure(), 2268 HEnvironment* inner = outer->CopyForInlining(instr->closure(),
2270 instr->arguments_count(), 2269 instr->arguments_count(),
2271 instr->function(), 2270 instr->function(),
2272 undefined, 2271 undefined,
2273 instr->call_kind(), 2272 instr->call_kind(),
2274 instr->is_construct()); 2273 instr->is_construct());
2275 if (instr->materializes_arguments()) {
2276 inner->Bind(instr->arguments(), graph()->GetArgumentsObject());
2277 }
2278 current_block_->UpdateEnvironment(inner); 2274 current_block_->UpdateEnvironment(inner);
2279 chunk_->AddInlinedClosure(instr->closure()); 2275 chunk_->AddInlinedClosure(instr->closure());
2280 return NULL; 2276 return NULL;
2281 } 2277 }
2282 2278
2283 2279
2284 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { 2280 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) {
2285 LInstruction* pop = NULL;
2286
2287 HEnvironment* env = current_block_->last_environment();
2288
2289 if (instr->arguments_pushed()) {
2290 int argument_count = env->arguments_environment()->parameter_count();
2291 pop = new(zone()) LPop(argument_count);
2292 argument_count_ -= argument_count;
2293 }
2294
2295 HEnvironment* outer = current_block_->last_environment()-> 2281 HEnvironment* outer = current_block_->last_environment()->
2296 DiscardInlined(false); 2282 DiscardInlined(false);
2297 current_block_->UpdateEnvironment(outer); 2283 current_block_->UpdateEnvironment(outer);
2298 2284 return NULL;
2299 return pop;
2300 } 2285 }
2301 2286
2302 2287
2303 LInstruction* LChunkBuilder::DoIn(HIn* instr) { 2288 LInstruction* LChunkBuilder::DoIn(HIn* instr) {
2304 LOperand* key = UseRegisterAtStart(instr->key()); 2289 LOperand* key = UseRegisterAtStart(instr->key());
2305 LOperand* object = UseRegisterAtStart(instr->object()); 2290 LOperand* object = UseRegisterAtStart(instr->object());
2306 LIn* result = new(zone()) LIn(key, object); 2291 LIn* result = new(zone()) LIn(key, object);
2307 return MarkAsCall(DefineFixed(result, r0), instr); 2292 return MarkAsCall(DefineFixed(result, r0), instr);
2308 } 2293 }
2309 2294
(...skipping 20 matching lines...) Expand all
2330 2315
2331 2316
2332 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2317 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2333 LOperand* object = UseRegister(instr->object()); 2318 LOperand* object = UseRegister(instr->object());
2334 LOperand* index = UseRegister(instr->index()); 2319 LOperand* index = UseRegister(instr->index());
2335 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); 2320 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index));
2336 } 2321 }
2337 2322
2338 2323
2339 } } // namespace v8::internal 2324 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/lithium-arm.h ('k') | src/arm/lithium-codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698