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 744 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
755 LInstruction* LChunkBuilder::DoDummyUse(HDummyUse* instr) { | 755 LInstruction* LChunkBuilder::DoDummyUse(HDummyUse* instr) { |
756 return DefineAsRegister(new(zone()) LDummyUse(UseAny(instr->value()))); | 756 return DefineAsRegister(new(zone()) LDummyUse(UseAny(instr->value()))); |
757 } | 757 } |
758 | 758 |
759 | 759 |
760 LInstruction* LChunkBuilder::DoSoftDeoptimize(HSoftDeoptimize* instr) { | 760 LInstruction* LChunkBuilder::DoSoftDeoptimize(HSoftDeoptimize* instr) { |
761 return AssignEnvironment(new(zone()) LDeoptimize); | 761 return AssignEnvironment(new(zone()) LDeoptimize); |
762 } | 762 } |
763 | 763 |
764 | 764 |
| 765 LInstruction* LChunkBuilder::DoDeoptCounter(HDeoptCounter* instr) { |
| 766 return AssignEnvironment(new(zone()) LDeoptCounter(instr->id(), |
| 767 instr->initial_value(), |
| 768 instr->max_value())); |
| 769 } |
| 770 |
| 771 |
| 772 LInstruction* LChunkBuilder::DoDeoptCounterAdd(HDeoptCounterAdd* instr) { |
| 773 LOperand* temp = TempRegister(); |
| 774 LOperand* temp2 = TempRegister(); |
| 775 return AssignEnvironment(new(zone()) LDeoptCounterAdd(instr->counter()->id(), |
| 776 instr->delta(), |
| 777 temp, |
| 778 temp2)); |
| 779 } |
| 780 |
| 781 |
765 LInstruction* LChunkBuilder::DoDeoptimize(HDeoptimize* instr) { | 782 LInstruction* LChunkBuilder::DoDeoptimize(HDeoptimize* instr) { |
766 return AssignEnvironment(new(zone()) LDeoptimize); | 783 return AssignEnvironment(new(zone()) LDeoptimize); |
767 } | 784 } |
768 | 785 |
769 | 786 |
770 LInstruction* LChunkBuilder::DoShift(Token::Value op, | 787 LInstruction* LChunkBuilder::DoShift(Token::Value op, |
771 HBitwiseBinaryOperation* instr) { | 788 HBitwiseBinaryOperation* instr) { |
772 if (instr->representation().IsSmiOrTagged()) { | 789 if (instr->representation().IsSmiOrTagged()) { |
773 ASSERT(instr->left()->representation().IsSmiOrTagged()); | 790 ASSERT(instr->left()->representation().IsSmiOrTagged()); |
774 ASSERT(instr->right()->representation().IsSmiOrTagged()); | 791 ASSERT(instr->right()->representation().IsSmiOrTagged()); |
(...skipping 2001 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2776 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2793 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2777 LOperand* object = UseRegister(instr->object()); | 2794 LOperand* object = UseRegister(instr->object()); |
2778 LOperand* index = UseTempRegister(instr->index()); | 2795 LOperand* index = UseTempRegister(instr->index()); |
2779 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); | 2796 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); |
2780 } | 2797 } |
2781 | 2798 |
2782 | 2799 |
2783 } } // namespace v8::internal | 2800 } } // namespace v8::internal |
2784 | 2801 |
2785 #endif // V8_TARGET_ARCH_IA32 | 2802 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |