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 1765 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1776 } | 1776 } |
1777 | 1777 |
1778 | 1778 |
1779 LInstruction* LChunkBuilder::DoCompareHoleAndBranch( | 1779 LInstruction* LChunkBuilder::DoCompareHoleAndBranch( |
1780 HCompareHoleAndBranch* instr) { | 1780 HCompareHoleAndBranch* instr) { |
1781 LOperand* value = UseRegisterAtStart(instr->value()); | 1781 LOperand* value = UseRegisterAtStart(instr->value()); |
1782 return new(zone()) LCmpHoleAndBranch(value); | 1782 return new(zone()) LCmpHoleAndBranch(value); |
1783 } | 1783 } |
1784 | 1784 |
1785 | 1785 |
| 1786 LInstruction* LChunkBuilder::DoCompareMinusZeroAndBranch( |
| 1787 HCompareMinusZeroAndBranch* instr) { |
| 1788 LInstruction* goto_instr = CheckElideControlInstruction(instr); |
| 1789 if (goto_instr != NULL) return goto_instr; |
| 1790 LOperand* value = UseRegister(instr->value()); |
| 1791 LOperand* scratch = TempRegister(); |
| 1792 return new(zone()) LCompareMinusZeroAndBranch(value, scratch); |
| 1793 } |
| 1794 |
| 1795 |
1786 LInstruction* LChunkBuilder::DoIsObjectAndBranch(HIsObjectAndBranch* instr) { | 1796 LInstruction* LChunkBuilder::DoIsObjectAndBranch(HIsObjectAndBranch* instr) { |
1787 ASSERT(instr->value()->representation().IsTagged()); | 1797 ASSERT(instr->value()->representation().IsTagged()); |
1788 LOperand* value = UseRegisterAtStart(instr->value()); | 1798 LOperand* value = UseRegisterAtStart(instr->value()); |
1789 LOperand* temp = TempRegister(); | 1799 LOperand* temp = TempRegister(); |
1790 return new(zone()) LIsObjectAndBranch(value, temp); | 1800 return new(zone()) LIsObjectAndBranch(value, temp); |
1791 } | 1801 } |
1792 | 1802 |
1793 | 1803 |
1794 LInstruction* LChunkBuilder::DoIsStringAndBranch(HIsStringAndBranch* instr) { | 1804 LInstruction* LChunkBuilder::DoIsStringAndBranch(HIsStringAndBranch* instr) { |
1795 ASSERT(instr->value()->representation().IsTagged()); | 1805 ASSERT(instr->value()->representation().IsTagged()); |
(...skipping 872 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2668 | 2678 |
2669 | 2679 |
2670 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2680 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2671 LOperand* object = UseRegister(instr->object()); | 2681 LOperand* object = UseRegister(instr->object()); |
2672 LOperand* index = UseRegister(instr->index()); | 2682 LOperand* index = UseRegister(instr->index()); |
2673 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); | 2683 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); |
2674 } | 2684 } |
2675 | 2685 |
2676 | 2686 |
2677 } } // namespace v8::internal | 2687 } } // namespace v8::internal |
OLD | NEW |