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

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

Issue 39973003: Merge bleeding_edge. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/parser
Patch Set: again Created 7 years, 1 month 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 926 matching lines...) Expand 10 before | Expand all | Expand 10 after
1859 Representation to = instr->to(); 1858 Representation to = instr->to();
1860 if (from.IsSmi()) { 1859 if (from.IsSmi()) {
1861 if (to.IsTagged()) { 1860 if (to.IsTagged()) {
1862 LOperand* value = UseRegister(instr->value()); 1861 LOperand* value = UseRegister(instr->value());
1863 return DefineSameAsFirst(new(zone()) LDummyUse(value)); 1862 return DefineSameAsFirst(new(zone()) LDummyUse(value));
1864 } 1863 }
1865 from = Representation::Tagged(); 1864 from = Representation::Tagged();
1866 } 1865 }
1867 if (from.IsTagged()) { 1866 if (from.IsTagged()) {
1868 if (to.IsDouble()) { 1867 if (to.IsDouble()) {
1869 info()->MarkAsDeferredCalling();
1870 LOperand* value = UseRegister(instr->value()); 1868 LOperand* value = UseRegister(instr->value());
1871 LNumberUntagD* res = new(zone()) LNumberUntagD(value); 1869 LNumberUntagD* res = new(zone()) LNumberUntagD(value);
1872 return AssignEnvironment(DefineAsRegister(res)); 1870 return AssignEnvironment(DefineAsRegister(res));
1873 } else if (to.IsSmi()) { 1871 } else if (to.IsSmi()) {
1874 HValue* val = instr->value(); 1872 HValue* val = instr->value();
1875 LOperand* value = UseRegister(val); 1873 LOperand* value = UseRegister(val);
1876 if (val->type().IsSmi()) { 1874 if (val->type().IsSmi()) {
1877 return DefineSameAsFirst(new(zone()) LDummyUse(value)); 1875 return DefineSameAsFirst(new(zone()) LDummyUse(value));
1878 } 1876 }
1879 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
2582 2580
2583 2581
2584 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2582 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2585 LOperand* object = UseRegister(instr->object()); 2583 LOperand* object = UseRegister(instr->object());
2586 LOperand* index = UseRegister(instr->index()); 2584 LOperand* index = UseRegister(instr->index());
2587 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); 2585 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index));
2588 } 2586 }
2589 2587
2590 2588
2591 } } // 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