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

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

Issue 66693002: Do not add values to HGraph in Lithium. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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
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 906 matching lines...) Expand 10 before | Expand all | Expand 10 after
917 current_block_ = NULL; 917 current_block_ = NULL;
918 } 918 }
919 919
920 920
921 void LChunkBuilder::VisitInstruction(HInstruction* current) { 921 void LChunkBuilder::VisitInstruction(HInstruction* current) {
922 HInstruction* old_current = current_instruction_; 922 HInstruction* old_current = current_instruction_;
923 current_instruction_ = current; 923 current_instruction_ = current;
924 924
925 LInstruction* instr = NULL; 925 LInstruction* instr = NULL;
926 if (current->CanReplaceWithDummyUses()) { 926 if (current->CanReplaceWithDummyUses()) {
927 HValue* first_operand = current->OperandCount() == 0 927 if (current->OperandCount() == 0) {
928 ? graph()->GetConstant1() 928 instr = DefineAsRegister(new(zone()) LDummy());
929 : current->OperandAt(0); 929 } else {
930 instr = DefineAsRegister(new(zone()) LDummyUse(UseAny(first_operand))); 930 instr = DefineAsRegister(new(zone())
931 LDummyUse(UseAny(current->OperandAt(0))));
932 }
931 for (int i = 1; i < current->OperandCount(); ++i) { 933 for (int i = 1; i < current->OperandCount(); ++i) {
932 LInstruction* dummy = 934 LInstruction* dummy =
933 new(zone()) LDummyUse(UseAny(current->OperandAt(i))); 935 new(zone()) LDummyUse(UseAny(current->OperandAt(i)));
934 dummy->set_hydrogen_value(current); 936 dummy->set_hydrogen_value(current);
935 chunk_->AddInstruction(dummy, current_block_); 937 chunk_->AddInstruction(dummy, current_block_);
936 } 938 }
937 } else { 939 } else {
938 instr = current->CompileToLithium(this); 940 instr = current->CompileToLithium(this);
939 } 941 }
940 942
(...skipping 1809 matching lines...) Expand 10 before | Expand all | Expand 10 after
2750 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2752 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2751 LOperand* object = UseRegister(instr->object()); 2753 LOperand* object = UseRegister(instr->object());
2752 LOperand* index = UseTempRegister(instr->index()); 2754 LOperand* index = UseTempRegister(instr->index());
2753 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); 2755 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index));
2754 } 2756 }
2755 2757
2756 2758
2757 } } // namespace v8::internal 2759 } } // namespace v8::internal
2758 2760
2759 #endif // V8_TARGET_ARCH_IA32 2761 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/lithium-ia32.h ('k') | src/lithium.cc » ('j') | src/lithium.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698