| OLD | NEW | 
|---|
| 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  Loading... | 
| 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 1670 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 2549 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2551 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 
| 2550   LOperand* object = UseRegister(instr->object()); | 2552   LOperand* object = UseRegister(instr->object()); | 
| 2551   LOperand* index = UseTempRegister(instr->index()); | 2553   LOperand* index = UseTempRegister(instr->index()); | 
| 2552   return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); | 2554   return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); | 
| 2553 } | 2555 } | 
| 2554 | 2556 | 
| 2555 | 2557 | 
| 2556 } }  // namespace v8::internal | 2558 } }  // namespace v8::internal | 
| 2557 | 2559 | 
| 2558 #endif  // V8_TARGET_ARCH_X64 | 2560 #endif  // V8_TARGET_ARCH_X64 | 
| OLD | NEW | 
|---|