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

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

Issue 133443009: A64: Synchronize with r17441. (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.h » ('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 643 matching lines...) Expand 10 before | Expand all | Expand 10 after
654 if (needs_environment && !instr->HasEnvironment()) { 654 if (needs_environment && !instr->HasEnvironment()) {
655 instr = AssignEnvironment(instr); 655 instr = AssignEnvironment(instr);
656 } 656 }
657 657
658 return instr; 658 return instr;
659 } 659 }
660 660
661 661
662 LInstruction* LChunkBuilder::AssignPointerMap(LInstruction* instr) { 662 LInstruction* LChunkBuilder::AssignPointerMap(LInstruction* instr) {
663 ASSERT(!instr->HasPointerMap()); 663 ASSERT(!instr->HasPointerMap());
664 instr->set_pointer_map(new(zone()) LPointerMap(position_, zone())); 664 instr->set_pointer_map(new(zone()) LPointerMap(zone()));
665 return instr; 665 return instr;
666 } 666 }
667 667
668 668
669 LUnallocated* LChunkBuilder::TempRegister() { 669 LUnallocated* LChunkBuilder::TempRegister() {
670 LUnallocated* operand = 670 LUnallocated* operand =
671 new(zone()) LUnallocated(LUnallocated::MUST_HAVE_REGISTER); 671 new(zone()) LUnallocated(LUnallocated::MUST_HAVE_REGISTER);
672 int vreg = allocator_->GetVirtualRegister(); 672 int vreg = allocator_->GetVirtualRegister();
673 if (!allocator_->AllocationOk()) { 673 if (!allocator_->AllocationOk()) {
674 Abort(kOutOfVirtualRegistersWhileTryingToAllocateTempRegister); 674 Abort(kOutOfVirtualRegistersWhileTryingToAllocateTempRegister);
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
912 if (LUnallocated::cast(instr->Output())->HasFixedPolicy()) ++fixed; 912 if (LUnallocated::cast(instr->Output())->HasFixedPolicy()) ++fixed;
913 } 913 }
914 for (TempIterator it(instr); !it.Done(); it.Advance()) { 914 for (TempIterator it(instr); !it.Done(); it.Advance()) {
915 LUnallocated* operand = LUnallocated::cast(it.Current()); 915 LUnallocated* operand = LUnallocated::cast(it.Current());
916 if (operand->HasFixedPolicy()) ++fixed; 916 if (operand->HasFixedPolicy()) ++fixed;
917 } 917 }
918 ASSERT(fixed == 0 || used_at_start == 0); 918 ASSERT(fixed == 0 || used_at_start == 0);
919 } 919 }
920 #endif 920 #endif
921 921
922 instr->set_position(position_);
923 if (FLAG_stress_pointer_maps && !instr->HasPointerMap()) { 922 if (FLAG_stress_pointer_maps && !instr->HasPointerMap()) {
924 instr = AssignPointerMap(instr); 923 instr = AssignPointerMap(instr);
925 } 924 }
926 if (FLAG_stress_environments && !instr->HasEnvironment()) { 925 if (FLAG_stress_environments && !instr->HasEnvironment()) {
927 instr = AssignEnvironment(instr); 926 instr = AssignEnvironment(instr);
928 } 927 }
929 chunk_->AddInstruction(instr, current_block_); 928 chunk_->AddInstruction(instr, current_block_);
930 } 929 }
931 current_instruction_ = old_current; 930 current_instruction_ = old_current;
932 } 931 }
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
1075 HInstanceOfKnownGlobal* instr) { 1074 HInstanceOfKnownGlobal* instr) {
1076 LInstanceOfKnownGlobal* result = 1075 LInstanceOfKnownGlobal* result =
1077 new(zone()) LInstanceOfKnownGlobal( 1076 new(zone()) LInstanceOfKnownGlobal(
1078 UseFixed(instr->context(), cp), 1077 UseFixed(instr->context(), cp),
1079 UseFixed(instr->left(), a0), 1078 UseFixed(instr->left(), a0),
1080 FixedTemp(t0)); 1079 FixedTemp(t0));
1081 return MarkAsCall(DefineFixed(result, v0), instr); 1080 return MarkAsCall(DefineFixed(result, v0), instr);
1082 } 1081 }
1083 1082
1084 1083
1085 LInstruction* LChunkBuilder::DoInstanceSize(HInstanceSize* instr) {
1086 LOperand* object = UseRegisterAtStart(instr->object());
1087 return DefineAsRegister(new(zone()) LInstanceSize(object));
1088 }
1089
1090
1091 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) { 1084 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) {
1092 LOperand* receiver = UseRegisterAtStart(instr->receiver()); 1085 LOperand* receiver = UseRegisterAtStart(instr->receiver());
1093 LOperand* function = UseRegisterAtStart(instr->function()); 1086 LOperand* function = UseRegisterAtStart(instr->function());
1094 LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function); 1087 LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function);
1095 return AssignEnvironment(DefineSameAsFirst(result)); 1088 return AssignEnvironment(DefineSameAsFirst(result));
1096 } 1089 }
1097 1090
1098 1091
1099 LInstruction* LChunkBuilder::DoApplyArguments(HApplyArguments* instr) { 1092 LInstruction* LChunkBuilder::DoApplyArguments(HApplyArguments* instr) {
1100 LOperand* function = UseFixed(instr->function(), a1); 1093 LOperand* function = UseFixed(instr->function(), a1);
(...skipping 764 matching lines...) Expand 10 before | Expand all | Expand 10 after
1865 Representation to = instr->to(); 1858 Representation to = instr->to();
1866 if (from.IsSmi()) { 1859 if (from.IsSmi()) {
1867 if (to.IsTagged()) { 1860 if (to.IsTagged()) {
1868 LOperand* value = UseRegister(instr->value()); 1861 LOperand* value = UseRegister(instr->value());
1869 return DefineSameAsFirst(new(zone()) LDummyUse(value)); 1862 return DefineSameAsFirst(new(zone()) LDummyUse(value));
1870 } 1863 }
1871 from = Representation::Tagged(); 1864 from = Representation::Tagged();
1872 } 1865 }
1873 if (from.IsTagged()) { 1866 if (from.IsTagged()) {
1874 if (to.IsDouble()) { 1867 if (to.IsDouble()) {
1875 info()->MarkAsDeferredCalling();
1876 LOperand* value = UseRegister(instr->value()); 1868 LOperand* value = UseRegister(instr->value());
1877 LNumberUntagD* res = new(zone()) LNumberUntagD(value); 1869 LNumberUntagD* res = new(zone()) LNumberUntagD(value);
1878 return AssignEnvironment(DefineAsRegister(res)); 1870 return AssignEnvironment(DefineAsRegister(res));
1879 } else if (to.IsSmi()) { 1871 } else if (to.IsSmi()) {
1880 HValue* val = instr->value(); 1872 HValue* val = instr->value();
1881 LOperand* value = UseRegister(val); 1873 LOperand* value = UseRegister(val);
1882 if (val->type().IsSmi()) { 1874 if (val->type().IsSmi()) {
1883 return DefineSameAsFirst(new(zone()) LDummyUse(value)); 1875 return DefineSameAsFirst(new(zone()) LDummyUse(value));
1884 } 1876 }
1885 return AssignEnvironment(DefineSameAsFirst(new(zone()) LCheckSmi(value))); 1877 return AssignEnvironment(DefineSameAsFirst(new(zone()) LCheckSmi(value)));
(...skipping 702 matching lines...) Expand 10 before | Expand all | Expand 10 after
2588 2580
2589 2581
2590 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2582 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2591 LOperand* object = UseRegister(instr->object()); 2583 LOperand* object = UseRegister(instr->object());
2592 LOperand* index = UseRegister(instr->index()); 2584 LOperand* index = UseRegister(instr->index());
2593 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); 2585 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index));
2594 } 2586 }
2595 2587
2596 2588
2597 } } // namespace v8::internal 2589 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/mips/lithium-mips.h ('k') | src/mips/macro-assembler-mips.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698