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

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

Issue 149133004: A64: Synchronize with r17807. (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/mips/lithium-mips.h ('k') | src/mips/macro-assembler-mips.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 1312 matching lines...) Expand 10 before | Expand all | Expand 10 after
1323 LOperand* context = UseFixed(instr->context(), cp); 1323 LOperand* context = UseFixed(instr->context(), cp);
1324 LOperand* constructor = UseFixed(instr->constructor(), a1); 1324 LOperand* constructor = UseFixed(instr->constructor(), a1);
1325 LCallNewArray* result = new(zone()) LCallNewArray(context, constructor); 1325 LCallNewArray* result = new(zone()) LCallNewArray(context, constructor);
1326 return MarkAsCall(DefineFixed(result, v0), instr); 1326 return MarkAsCall(DefineFixed(result, v0), instr);
1327 } 1327 }
1328 1328
1329 1329
1330 LInstruction* LChunkBuilder::DoCallFunction(HCallFunction* instr) { 1330 LInstruction* LChunkBuilder::DoCallFunction(HCallFunction* instr) {
1331 LOperand* context = UseFixed(instr->context(), cp); 1331 LOperand* context = UseFixed(instr->context(), cp);
1332 LOperand* function = UseFixed(instr->function(), a1); 1332 LOperand* function = UseFixed(instr->function(), a1);
1333 return MarkAsCall( 1333 LCallFunction* call = new(zone()) LCallFunction(context, function);
1334 DefineFixed(new(zone()) LCallFunction(context, function), v0), instr); 1334 LInstruction* result = DefineFixed(call, v0);
1335 if (instr->IsTailCall()) return result;
1336 return MarkAsCall(result, instr);
1335 } 1337 }
1336 1338
1337 1339
1338 LInstruction* LChunkBuilder::DoCallRuntime(HCallRuntime* instr) { 1340 LInstruction* LChunkBuilder::DoCallRuntime(HCallRuntime* instr) {
1339 LOperand* context = UseFixed(instr->context(), cp); 1341 LOperand* context = UseFixed(instr->context(), cp);
1340 return MarkAsCall(DefineFixed(new(zone()) LCallRuntime(context), v0), instr); 1342 return MarkAsCall(DefineFixed(new(zone()) LCallRuntime(context), v0), instr);
1341 } 1343 }
1342 1344
1343 1345
1344 LInstruction* LChunkBuilder::DoRor(HRor* instr) { 1346 LInstruction* LChunkBuilder::DoRor(HRor* instr) {
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after
1696 } 1698 }
1697 1699
1698 1700
1699 LInstruction* LChunkBuilder::DoCompareHoleAndBranch( 1701 LInstruction* LChunkBuilder::DoCompareHoleAndBranch(
1700 HCompareHoleAndBranch* instr) { 1702 HCompareHoleAndBranch* instr) {
1701 LOperand* value = UseRegisterAtStart(instr->value()); 1703 LOperand* value = UseRegisterAtStart(instr->value());
1702 return new(zone()) LCmpHoleAndBranch(value); 1704 return new(zone()) LCmpHoleAndBranch(value);
1703 } 1705 }
1704 1706
1705 1707
1708 LInstruction* LChunkBuilder::DoCompareMinusZeroAndBranch(
1709 HCompareMinusZeroAndBranch* instr) {
1710 LInstruction* goto_instr = CheckElideControlInstruction(instr);
1711 if (goto_instr != NULL) return goto_instr;
1712 LOperand* value = UseRegister(instr->value());
1713 LOperand* scratch = TempRegister();
1714 return new(zone()) LCompareMinusZeroAndBranch(value, scratch);
1715 }
1716
1717
1706 LInstruction* LChunkBuilder::DoIsObjectAndBranch(HIsObjectAndBranch* instr) { 1718 LInstruction* LChunkBuilder::DoIsObjectAndBranch(HIsObjectAndBranch* instr) {
1707 ASSERT(instr->value()->representation().IsTagged()); 1719 ASSERT(instr->value()->representation().IsTagged());
1708 LOperand* temp = TempRegister(); 1720 LOperand* temp = TempRegister();
1709 return new(zone()) LIsObjectAndBranch(UseRegisterAtStart(instr->value()), 1721 return new(zone()) LIsObjectAndBranch(UseRegisterAtStart(instr->value()),
1710 temp); 1722 temp);
1711 } 1723 }
1712 1724
1713 1725
1714 LInstruction* LChunkBuilder::DoIsStringAndBranch(HIsStringAndBranch* instr) { 1726 LInstruction* LChunkBuilder::DoIsStringAndBranch(HIsStringAndBranch* instr) {
1715 ASSERT(instr->value()->representation().IsTagged()); 1727 ASSERT(instr->value()->representation().IsTagged());
(...skipping 612 matching lines...) Expand 10 before | Expand all | Expand 10 after
2328 LOperand* obj = UseFixed(instr->object(), a1); 2340 LOperand* obj = UseFixed(instr->object(), a1);
2329 LOperand* val = UseFixed(instr->value(), a0); 2341 LOperand* val = UseFixed(instr->value(), a0);
2330 2342
2331 LInstruction* result = new(zone()) LStoreNamedGeneric(context, obj, val); 2343 LInstruction* result = new(zone()) LStoreNamedGeneric(context, obj, val);
2332 return MarkAsCall(result, instr); 2344 return MarkAsCall(result, instr);
2333 } 2345 }
2334 2346
2335 2347
2336 LInstruction* LChunkBuilder::DoStringAdd(HStringAdd* instr) { 2348 LInstruction* LChunkBuilder::DoStringAdd(HStringAdd* instr) {
2337 LOperand* context = UseFixed(instr->context(), cp); 2349 LOperand* context = UseFixed(instr->context(), cp);
2338 LOperand* left = UseRegisterAtStart(instr->left()); 2350 LOperand* left = FLAG_new_string_add
2339 LOperand* right = UseRegisterAtStart(instr->right()); 2351 ? UseFixed(instr->left(), a1)
2352 : UseRegisterAtStart(instr->left());
2353 LOperand* right = FLAG_new_string_add
2354 ? UseFixed(instr->right(), a0)
2355 : UseRegisterAtStart(instr->right());
2340 return MarkAsCall( 2356 return MarkAsCall(
2341 DefineFixed(new(zone()) LStringAdd(context, left, right), v0), 2357 DefineFixed(new(zone()) LStringAdd(context, left, right), v0),
2342 instr); 2358 instr);
2343 } 2359 }
2344 2360
2345 2361
2346 LInstruction* LChunkBuilder::DoStringCharCodeAt(HStringCharCodeAt* instr) { 2362 LInstruction* LChunkBuilder::DoStringCharCodeAt(HStringCharCodeAt* instr) {
2347 LOperand* string = UseTempRegister(instr->string()); 2363 LOperand* string = UseTempRegister(instr->string());
2348 LOperand* index = UseTempRegister(instr->index()); 2364 LOperand* index = UseTempRegister(instr->index());
2349 LOperand* context = UseAny(instr->context()); 2365 LOperand* context = UseAny(instr->context());
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
2400 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) { 2416 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) {
2401 LParameter* result = new(zone()) LParameter; 2417 LParameter* result = new(zone()) LParameter;
2402 if (instr->kind() == HParameter::STACK_PARAMETER) { 2418 if (instr->kind() == HParameter::STACK_PARAMETER) {
2403 int spill_index = chunk()->GetParameterStackSlot(instr->index()); 2419 int spill_index = chunk()->GetParameterStackSlot(instr->index());
2404 return DefineAsSpilled(result, spill_index); 2420 return DefineAsSpilled(result, spill_index);
2405 } else { 2421 } else {
2406 ASSERT(info()->IsStub()); 2422 ASSERT(info()->IsStub());
2407 CodeStubInterfaceDescriptor* descriptor = 2423 CodeStubInterfaceDescriptor* descriptor =
2408 info()->code_stub()->GetInterfaceDescriptor(info()->isolate()); 2424 info()->code_stub()->GetInterfaceDescriptor(info()->isolate());
2409 int index = static_cast<int>(instr->index()); 2425 int index = static_cast<int>(instr->index());
2410 Register reg = DESCRIPTOR_GET_PARAMETER_REGISTER(descriptor, index); 2426 Register reg = descriptor->GetParameterRegister(index);
2411 return DefineFixed(result, reg); 2427 return DefineFixed(result, reg);
2412 } 2428 }
2413 } 2429 }
2414 2430
2415 2431
2416 LInstruction* LChunkBuilder::DoUnknownOSRValue(HUnknownOSRValue* instr) { 2432 LInstruction* LChunkBuilder::DoUnknownOSRValue(HUnknownOSRValue* instr) {
2417 // Use an index that corresponds to the location in the unoptimized frame, 2433 // Use an index that corresponds to the location in the unoptimized frame,
2418 // which the optimized frame will subsume. 2434 // which the optimized frame will subsume.
2419 int env_index = instr->index(); 2435 int env_index = instr->index();
2420 int spill_index = 0; 2436 int spill_index = 0;
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
2590 2606
2591 2607
2592 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2608 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2593 LOperand* object = UseRegister(instr->object()); 2609 LOperand* object = UseRegister(instr->object());
2594 LOperand* index = UseRegister(instr->index()); 2610 LOperand* index = UseRegister(instr->index());
2595 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); 2611 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index));
2596 } 2612 }
2597 2613
2598 2614
2599 } } // namespace v8::internal 2615 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/mips/lithium-mips.h ('k') | src/mips/macro-assembler-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698