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

Side by Side Diff: src/x64/lithium-x64.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/x64/lithium-x64.h ('k') | test/mjsunit/regress/regress-298269.js » ('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 844 matching lines...) Expand 10 before | Expand all | Expand 10 after
855 current_block_ = NULL; 855 current_block_ = NULL;
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 862
863 LInstruction* instr = NULL; 863 LInstruction* instr = NULL;
864 if (current->CanReplaceWithDummyUses()) { 864 if (current->CanReplaceWithDummyUses()) {
865 HValue* first_operand = current->OperandCount() == 0 865 if (current->OperandCount() == 0) {
866 ? graph()->GetConstant1() 866 instr = DefineAsRegister(new(zone()) LDummy());
867 : current->OperandAt(0); 867 } else {
868 instr = DefineAsRegister(new(zone()) LDummyUse(UseAny(first_operand))); 868 instr = DefineAsRegister(new(zone())
869 LDummyUse(UseAny(current->OperandAt(0))));
870 }
869 for (int i = 1; i < current->OperandCount(); ++i) { 871 for (int i = 1; i < current->OperandCount(); ++i) {
870 LInstruction* dummy = 872 LInstruction* dummy =
871 new(zone()) LDummyUse(UseAny(current->OperandAt(i))); 873 new(zone()) LDummyUse(UseAny(current->OperandAt(i)));
872 dummy->set_hydrogen_value(current); 874 dummy->set_hydrogen_value(current);
873 chunk_->AddInstruction(dummy, current_block_); 875 chunk_->AddInstruction(dummy, current_block_);
874 } 876 }
875 } else { 877 } else {
876 instr = current->CompileToLithium(this); 878 instr = current->CompileToLithium(this);
877 } 879 }
878 880
(...skipping 1666 matching lines...) Expand 10 before | Expand all | Expand 10 after
2545 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2547 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2546 LOperand* object = UseRegister(instr->object()); 2548 LOperand* object = UseRegister(instr->object());
2547 LOperand* index = UseTempRegister(instr->index()); 2549 LOperand* index = UseTempRegister(instr->index());
2548 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); 2550 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index));
2549 } 2551 }
2550 2552
2551 2553
2552 } } // namespace v8::internal 2554 } } // namespace v8::internal
2553 2555
2554 #endif // V8_TARGET_ARCH_X64 2556 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/lithium-x64.h ('k') | test/mjsunit/regress/regress-298269.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698