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

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

Issue 132373011: A64: Synchronize with r17635. (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/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 845 matching lines...) Expand 10 before | Expand all | Expand 10 after
856 } 856 }
857 857
858 858
859 void LChunkBuilder::VisitInstruction(HInstruction* current) { 859 void LChunkBuilder::VisitInstruction(HInstruction* current) {
860 HInstruction* old_current = current_instruction_; 860 HInstruction* old_current = current_instruction_;
861 current_instruction_ = current; 861 current_instruction_ = current;
862 if (current->has_position()) position_ = current->position(); 862 if (current->has_position()) position_ = current->position();
863 863
864 LInstruction* instr = NULL; 864 LInstruction* instr = NULL;
865 if (current->CanReplaceWithDummyUses()) { 865 if (current->CanReplaceWithDummyUses()) {
866 HValue* first_operand = current->OperandCount() == 0 866 if (current->OperandCount() == 0) {
867 ? graph()->GetConstant1() 867 instr = DefineAsRegister(new(zone()) LDummy());
868 : current->OperandAt(0); 868 } else {
869 instr = DefineAsRegister(new(zone()) LDummyUse(UseAny(first_operand))); 869 instr = DefineAsRegister(new(zone())
870 LDummyUse(UseAny(current->OperandAt(0))));
871 }
870 for (int i = 1; i < current->OperandCount(); ++i) { 872 for (int i = 1; i < current->OperandCount(); ++i) {
871 LInstruction* dummy = 873 LInstruction* dummy =
872 new(zone()) LDummyUse(UseAny(current->OperandAt(i))); 874 new(zone()) LDummyUse(UseAny(current->OperandAt(i)));
873 dummy->set_hydrogen_value(current); 875 dummy->set_hydrogen_value(current);
874 chunk_->AddInstruction(dummy, current_block_); 876 chunk_->AddInstruction(dummy, current_block_);
875 } 877 }
876 } else { 878 } else {
877 instr = current->CompileToLithium(this); 879 instr = current->CompileToLithium(this);
878 } 880 }
879 881
(...skipping 997 matching lines...) Expand 10 before | Expand all | Expand 10 after
1877 1879
1878 1880
1879 LInstruction* LChunkBuilder::DoDateField(HDateField* instr) { 1881 LInstruction* LChunkBuilder::DoDateField(HDateField* instr) {
1880 LOperand* object = UseFixed(instr->value(), r0); 1882 LOperand* object = UseFixed(instr->value(), r0);
1881 LDateField* result = 1883 LDateField* result =
1882 new(zone()) LDateField(object, FixedTemp(r1), instr->index()); 1884 new(zone()) LDateField(object, FixedTemp(r1), instr->index());
1883 return MarkAsCall(DefineFixed(result, r0), instr, CAN_DEOPTIMIZE_EAGERLY); 1885 return MarkAsCall(DefineFixed(result, r0), instr, CAN_DEOPTIMIZE_EAGERLY);
1884 } 1886 }
1885 1887
1886 1888
1889 LInstruction* LChunkBuilder::DoSeqStringGetChar(HSeqStringGetChar* instr) {
1890 LOperand* string = UseRegisterAtStart(instr->string());
1891 LOperand* index = UseRegisterOrConstantAtStart(instr->index());
1892 return DefineAsRegister(new(zone()) LSeqStringGetChar(string, index));
1893 }
1894
1895
1887 LInstruction* LChunkBuilder::DoSeqStringSetChar(HSeqStringSetChar* instr) { 1896 LInstruction* LChunkBuilder::DoSeqStringSetChar(HSeqStringSetChar* instr) {
1888 LOperand* string = UseRegister(instr->string()); 1897 LOperand* string = UseRegister(instr->string());
1889 LOperand* index = UseRegisterOrConstant(instr->index()); 1898 LOperand* index = UseRegisterOrConstant(instr->index());
1890 LOperand* value = UseRegister(instr->value()); 1899 LOperand* value = UseRegister(instr->value());
1891 return new(zone()) LSeqStringSetChar(string, index, value); 1900 return new(zone()) LSeqStringSetChar(string, index, value);
1892 } 1901 }
1893 1902
1894 1903
1895 LInstruction* LChunkBuilder::DoBoundsCheck(HBoundsCheck* instr) { 1904 LInstruction* LChunkBuilder::DoBoundsCheck(HBoundsCheck* instr) {
1896 LOperand* value = UseRegisterOrConstantAtStart(instr->index()); 1905 LOperand* value = UseRegisterOrConstantAtStart(instr->index());
(...skipping 500 matching lines...) Expand 10 before | Expand all | Expand 10 after
2397 LOperand* obj = UseFixed(instr->object(), r1); 2406 LOperand* obj = UseFixed(instr->object(), r1);
2398 LOperand* val = UseFixed(instr->value(), r0); 2407 LOperand* val = UseFixed(instr->value(), r0);
2399 2408
2400 LInstruction* result = new(zone()) LStoreNamedGeneric(context, obj, val); 2409 LInstruction* result = new(zone()) LStoreNamedGeneric(context, obj, val);
2401 return MarkAsCall(result, instr); 2410 return MarkAsCall(result, instr);
2402 } 2411 }
2403 2412
2404 2413
2405 LInstruction* LChunkBuilder::DoStringAdd(HStringAdd* instr) { 2414 LInstruction* LChunkBuilder::DoStringAdd(HStringAdd* instr) {
2406 LOperand* context = UseFixed(instr->context(), cp); 2415 LOperand* context = UseFixed(instr->context(), cp);
2407 LOperand* left = UseRegisterAtStart(instr->left()); 2416 LOperand* left = FLAG_new_string_add
2408 LOperand* right = UseRegisterAtStart(instr->right()); 2417 ? UseFixed(instr->left(), r1)
2418 : UseRegisterAtStart(instr->left());
2419 LOperand* right = FLAG_new_string_add
2420 ? UseFixed(instr->right(), r0)
2421 : UseRegisterAtStart(instr->right());
2409 return MarkAsCall( 2422 return MarkAsCall(
2410 DefineFixed(new(zone()) LStringAdd(context, left, right), r0), 2423 DefineFixed(new(zone()) LStringAdd(context, left, right), r0),
2411 instr); 2424 instr);
2412 } 2425 }
2413 2426
2414 2427
2415 LInstruction* LChunkBuilder::DoStringCharCodeAt(HStringCharCodeAt* instr) { 2428 LInstruction* LChunkBuilder::DoStringCharCodeAt(HStringCharCodeAt* instr) {
2416 LOperand* string = UseTempRegister(instr->string()); 2429 LOperand* string = UseTempRegister(instr->string());
2417 LOperand* index = UseTempRegister(instr->index()); 2430 LOperand* index = UseTempRegister(instr->index());
2418 LOperand* context = UseAny(instr->context()); 2431 LOperand* context = UseAny(instr->context());
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
2659 2672
2660 2673
2661 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2674 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2662 LOperand* object = UseRegister(instr->object()); 2675 LOperand* object = UseRegister(instr->object());
2663 LOperand* index = UseRegister(instr->index()); 2676 LOperand* index = UseRegister(instr->index());
2664 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); 2677 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index));
2665 } 2678 }
2666 2679
2667 2680
2668 } } // namespace v8::internal 2681 } } // 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