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

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

Issue 74893004: Merged r17599 into 3.22 branch. (Closed) Base URL: https://v8.googlecode.com/svn/branches/3.22
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
« no previous file with comments | « src/ia32/lithium-ia32.h ('k') | src/lithium.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 898 matching lines...) Expand 10 before | Expand all | Expand 10 after
909 current_block_ = NULL; 909 current_block_ = NULL;
910 } 910 }
911 911
912 912
913 void LChunkBuilder::VisitInstruction(HInstruction* current) { 913 void LChunkBuilder::VisitInstruction(HInstruction* current) {
914 HInstruction* old_current = current_instruction_; 914 HInstruction* old_current = current_instruction_;
915 current_instruction_ = current; 915 current_instruction_ = current;
916 916
917 LInstruction* instr = NULL; 917 LInstruction* instr = NULL;
918 if (current->CanReplaceWithDummyUses()) { 918 if (current->CanReplaceWithDummyUses()) {
919 HValue* first_operand = current->OperandCount() == 0 919 if (current->OperandCount() == 0) {
920 ? graph()->GetConstant1() 920 instr = DefineAsRegister(new(zone()) LDummy());
921 : current->OperandAt(0); 921 } else {
922 instr = DefineAsRegister(new(zone()) LDummyUse(UseAny(first_operand))); 922 instr = DefineAsRegister(new(zone())
923 LDummyUse(UseAny(current->OperandAt(0))));
924 }
923 for (int i = 1; i < current->OperandCount(); ++i) { 925 for (int i = 1; i < current->OperandCount(); ++i) {
924 LInstruction* dummy = 926 LInstruction* dummy =
925 new(zone()) LDummyUse(UseAny(current->OperandAt(i))); 927 new(zone()) LDummyUse(UseAny(current->OperandAt(i)));
926 dummy->set_hydrogen_value(current); 928 dummy->set_hydrogen_value(current);
927 chunk_->AddInstruction(dummy, current_block_); 929 chunk_->AddInstruction(dummy, current_block_);
928 } 930 }
929 } else { 931 } else {
930 instr = current->CompileToLithium(this); 932 instr = current->CompileToLithium(this);
931 } 933 }
932 934
(...skipping 1803 matching lines...) Expand 10 before | Expand all | Expand 10 after
2736 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2738 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2737 LOperand* object = UseRegister(instr->object()); 2739 LOperand* object = UseRegister(instr->object());
2738 LOperand* index = UseTempRegister(instr->index()); 2740 LOperand* index = UseTempRegister(instr->index());
2739 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); 2741 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index));
2740 } 2742 }
2741 2743
2742 2744
2743 } } // namespace v8::internal 2745 } } // namespace v8::internal
2744 2746
2745 #endif // V8_TARGET_ARCH_IA32 2747 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/lithium-ia32.h ('k') | src/lithium.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698