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

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

Issue 155723005: A64: Synchronize with r19001. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 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/a64/lithium-a64.h ('k') | src/a64/lithium-codegen-a64.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 1003 matching lines...) Expand 10 before | Expand all | Expand 10 after
1014 LCallWithDescriptor* result = new(zone()) LCallWithDescriptor(descriptor, 1014 LCallWithDescriptor* result = new(zone()) LCallWithDescriptor(descriptor,
1015 ops, 1015 ops,
1016 zone()); 1016 zone());
1017 return MarkAsCall(DefineFixed(result, x0), instr); 1017 return MarkAsCall(DefineFixed(result, x0), instr);
1018 } 1018 }
1019 1019
1020 1020
1021 LInstruction* LChunkBuilder::DoCallFunction(HCallFunction* instr) { 1021 LInstruction* LChunkBuilder::DoCallFunction(HCallFunction* instr) {
1022 LOperand* context = UseFixed(instr->context(), cp); 1022 LOperand* context = UseFixed(instr->context(), cp);
1023 LOperand* function = UseFixed(instr->function(), x1); 1023 LOperand* function = UseFixed(instr->function(), x1);
1024 LInstruction* result = 1024 LCallFunction* call = new(zone()) LCallFunction(context, function);
1025 DefineFixed(new(zone()) LCallFunction(context, function), x0); 1025 return MarkAsCall(DefineFixed(call, x0), instr);
1026 if (instr->IsTailCall()) return result;
1027 return MarkAsCall(result, instr);
1028 } 1026 }
1029 1027
1030 1028
1031 LInstruction* LChunkBuilder::DoCallNew(HCallNew* instr) { 1029 LInstruction* LChunkBuilder::DoCallNew(HCallNew* instr) {
1032 LOperand* context = UseFixed(instr->context(), cp); 1030 LOperand* context = UseFixed(instr->context(), cp);
1033 // The call to CallConstructStub will expect the constructor to be in x1. 1031 // The call to CallConstructStub will expect the constructor to be in x1.
1034 LOperand* constructor = UseFixed(instr->constructor(), x1); 1032 LOperand* constructor = UseFixed(instr->constructor(), x1);
1035 LCallNew* result = new(zone()) LCallNew(context, constructor); 1033 LCallNew* result = new(zone()) LCallNew(context, constructor);
1036 return MarkAsCall(DefineFixed(result, x0), instr); 1034 return MarkAsCall(DefineFixed(result, x0), instr);
1037 } 1035 }
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after
1399 return DoArithmeticT(Token::DIV, instr); 1397 return DoArithmeticT(Token::DIV, instr);
1400 } 1398 }
1401 } 1399 }
1402 1400
1403 1401
1404 LInstruction* LChunkBuilder::DoDummyUse(HDummyUse* instr) { 1402 LInstruction* LChunkBuilder::DoDummyUse(HDummyUse* instr) {
1405 return DefineAsRegister(new(zone()) LDummyUse(UseAny(instr->value()))); 1403 return DefineAsRegister(new(zone()) LDummyUse(UseAny(instr->value())));
1406 } 1404 }
1407 1405
1408 1406
1409 LInstruction* LChunkBuilder::DoElementsKind(HElementsKind* instr) {
1410 LOperand* object = UseRegisterAtStart(instr->value());
1411 return DefineAsRegister(new(zone()) LElementsKind(object));
1412 }
1413
1414
1415 LInstruction* LChunkBuilder::DoEnterInlined(HEnterInlined* instr) { 1407 LInstruction* LChunkBuilder::DoEnterInlined(HEnterInlined* instr) {
1416 HEnvironment* outer = current_block_->last_environment(); 1408 HEnvironment* outer = current_block_->last_environment();
1417 HConstant* undefined = graph()->GetConstantUndefined(); 1409 HConstant* undefined = graph()->GetConstantUndefined();
1418 HEnvironment* inner = outer->CopyForInlining(instr->closure(), 1410 HEnvironment* inner = outer->CopyForInlining(instr->closure(),
1419 instr->arguments_count(), 1411 instr->arguments_count(),
1420 instr->function(), 1412 instr->function(),
1421 undefined, 1413 undefined,
1422 instr->inlining_kind()); 1414 instr->inlining_kind());
1423 // Only replay binding of arguments object if it wasn't removed from graph. 1415 // Only replay binding of arguments object if it wasn't removed from graph.
1424 if ((instr->arguments_var() != NULL) && 1416 if ((instr->arguments_var() != NULL) &&
(...skipping 812 matching lines...) Expand 10 before | Expand all | Expand 10 after
2237 2229
2238 LInstruction* LChunkBuilder::DoThisFunction(HThisFunction* instr) { 2230 LInstruction* LChunkBuilder::DoThisFunction(HThisFunction* instr) {
2239 if (instr->HasNoUses()) { 2231 if (instr->HasNoUses()) {
2240 return NULL; 2232 return NULL;
2241 } else { 2233 } else {
2242 return DefineAsRegister(new(zone()) LThisFunction); 2234 return DefineAsRegister(new(zone()) LThisFunction);
2243 } 2235 }
2244 } 2236 }
2245 2237
2246 2238
2247 LInstruction* LChunkBuilder::DoThrow(HThrow* instr) {
2248 LOperand* context = UseFixed(instr->context(), cp);
2249 // TODO(all): This should not need to be a fixed register, as it's pushed to
2250 // the stack in DoThrow. However, we hit an assertion if it's assigned a non-
2251 // fixed register.
2252 LOperand* value = UseFixed(instr->value(), x0);
2253 return MarkAsCall(new(zone()) LThrow(context, value), instr);
2254 }
2255
2256
2257 LInstruction* LChunkBuilder::DoToFastProperties(HToFastProperties* instr) { 2239 LInstruction* LChunkBuilder::DoToFastProperties(HToFastProperties* instr) {
2258 LOperand* object = UseFixed(instr->value(), x0); 2240 LOperand* object = UseFixed(instr->value(), x0);
2259 LToFastProperties* result = new(zone()) LToFastProperties(object); 2241 LToFastProperties* result = new(zone()) LToFastProperties(object);
2260 return MarkAsCall(DefineFixed(result, x0), instr); 2242 return MarkAsCall(DefineFixed(result, x0), instr);
2261 } 2243 }
2262 2244
2263 2245
2264 LInstruction* LChunkBuilder::DoTransitionElementsKind( 2246 LInstruction* LChunkBuilder::DoTransitionElementsKind(
2265 HTransitionElementsKind* instr) { 2247 HTransitionElementsKind* instr) {
2266 LOperand* object = UseRegister(instr->object()); 2248 LOperand* object = UseRegister(instr->object());
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
2419 } 2401 }
2420 return DefineAsSpilled(new(zone()) LUnknownOSRValue, spill_index); 2402 return DefineAsSpilled(new(zone()) LUnknownOSRValue, spill_index);
2421 } 2403 }
2422 2404
2423 2405
2424 LInstruction* LChunkBuilder::DoUseConst(HUseConst* instr) { 2406 LInstruction* LChunkBuilder::DoUseConst(HUseConst* instr) {
2425 return NULL; 2407 return NULL;
2426 } 2408 }
2427 2409
2428 2410
2429 LInstruction* LChunkBuilder::DoValueOf(HValueOf* instr) {
2430 LOperand* object = UseRegister(instr->value());
2431 LValueOf* result = new(zone()) LValueOf(object, TempRegister());
2432 return DefineSameAsFirst(result);
2433 }
2434
2435
2436 LInstruction* LChunkBuilder::DoForInPrepareMap(HForInPrepareMap* instr) { 2411 LInstruction* LChunkBuilder::DoForInPrepareMap(HForInPrepareMap* instr) {
2437 LOperand* context = UseFixed(instr->context(), cp); 2412 LOperand* context = UseFixed(instr->context(), cp);
2438 // Assign object to a fixed register different from those already used in 2413 // Assign object to a fixed register different from those already used in
2439 // LForInPrepareMap. 2414 // LForInPrepareMap.
2440 LOperand* object = UseFixed(instr->enumerable(), x0); 2415 LOperand* object = UseFixed(instr->enumerable(), x0);
2441 LForInPrepareMap* result = new(zone()) LForInPrepareMap(context, object); 2416 LForInPrepareMap* result = new(zone()) LForInPrepareMap(context, object);
2442 return MarkAsCall(DefineFixed(result, x0), instr, CAN_DEOPTIMIZE_EAGERLY); 2417 return MarkAsCall(DefineFixed(result, x0), instr, CAN_DEOPTIMIZE_EAGERLY);
2443 } 2418 }
2444 2419
2445 2420
(...skipping 20 matching lines...) Expand all
2466 2441
2467 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) { 2442 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) {
2468 LOperand* receiver = UseRegister(instr->receiver()); 2443 LOperand* receiver = UseRegister(instr->receiver());
2469 LOperand* function = UseRegister(instr->function()); 2444 LOperand* function = UseRegister(instr->function());
2470 LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function); 2445 LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function);
2471 return AssignEnvironment(DefineAsRegister(result)); 2446 return AssignEnvironment(DefineAsRegister(result));
2472 } 2447 }
2473 2448
2474 2449
2475 } } // namespace v8::internal 2450 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/a64/lithium-a64.h ('k') | src/a64/lithium-codegen-a64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698