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 1715 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1726 | 1726 |
1727 | 1727 |
1728 LInstruction* LChunkBuilder::DoCompareObjectEqAndBranch( | 1728 LInstruction* LChunkBuilder::DoCompareObjectEqAndBranch( |
1729 HCompareObjectEqAndBranch* instr) { | 1729 HCompareObjectEqAndBranch* instr) { |
1730 LOperand* left = UseRegisterAtStart(instr->left()); | 1730 LOperand* left = UseRegisterAtStart(instr->left()); |
1731 LOperand* right = UseRegisterAtStart(instr->right()); | 1731 LOperand* right = UseRegisterAtStart(instr->right()); |
1732 return new(zone()) LCmpObjectEqAndBranch(left, right); | 1732 return new(zone()) LCmpObjectEqAndBranch(left, right); |
1733 } | 1733 } |
1734 | 1734 |
1735 | 1735 |
| 1736 LInstruction* LChunkBuilder::DoCompareHoleAndBranch( |
| 1737 HCompareHoleAndBranch* instr) { |
| 1738 LOperand* object = UseRegisterAtStart(instr->object()); |
| 1739 return new(zone()) LCmpHoleAndBranch(object); |
| 1740 } |
| 1741 |
| 1742 |
1736 LInstruction* LChunkBuilder::DoIsObjectAndBranch(HIsObjectAndBranch* instr) { | 1743 LInstruction* LChunkBuilder::DoIsObjectAndBranch(HIsObjectAndBranch* instr) { |
1737 ASSERT(instr->value()->representation().IsTagged()); | 1744 ASSERT(instr->value()->representation().IsTagged()); |
1738 LOperand* value = UseRegisterAtStart(instr->value()); | 1745 LOperand* value = UseRegisterAtStart(instr->value()); |
1739 LOperand* temp = TempRegister(); | 1746 LOperand* temp = TempRegister(); |
1740 return new(zone()) LIsObjectAndBranch(value, temp); | 1747 return new(zone()) LIsObjectAndBranch(value, temp); |
1741 } | 1748 } |
1742 | 1749 |
1743 | 1750 |
1744 LInstruction* LChunkBuilder::DoIsStringAndBranch(HIsStringAndBranch* instr) { | 1751 LInstruction* LChunkBuilder::DoIsStringAndBranch(HIsStringAndBranch* instr) { |
1745 ASSERT(instr->value()->representation().IsTagged()); | 1752 ASSERT(instr->value()->representation().IsTagged()); |
(...skipping 863 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2609 | 2616 |
2610 | 2617 |
2611 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2618 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2612 LOperand* object = UseRegister(instr->object()); | 2619 LOperand* object = UseRegister(instr->object()); |
2613 LOperand* index = UseRegister(instr->index()); | 2620 LOperand* index = UseRegister(instr->index()); |
2614 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); | 2621 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); |
2615 } | 2622 } |
2616 | 2623 |
2617 | 2624 |
2618 } } // namespace v8::internal | 2625 } } // namespace v8::internal |
OLD | NEW |