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 1713 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1724 | 1724 |
1725 | 1725 |
1726 LInstruction* LChunkBuilder::DoCompareObjectEqAndBranch( | 1726 LInstruction* LChunkBuilder::DoCompareObjectEqAndBranch( |
1727 HCompareObjectEqAndBranch* instr) { | 1727 HCompareObjectEqAndBranch* instr) { |
1728 LOperand* left = UseRegisterAtStart(instr->left()); | 1728 LOperand* left = UseRegisterAtStart(instr->left()); |
1729 LOperand* right = UseRegisterAtStart(instr->right()); | 1729 LOperand* right = UseRegisterAtStart(instr->right()); |
1730 return new(zone()) LCmpObjectEqAndBranch(left, right); | 1730 return new(zone()) LCmpObjectEqAndBranch(left, right); |
1731 } | 1731 } |
1732 | 1732 |
1733 | 1733 |
1734 LInstruction* LChunkBuilder::DoCompareConstantEqAndBranch( | |
1735 HCompareConstantEqAndBranch* instr) { | |
1736 LOperand* value = UseRegisterAtStart(instr->value()); | |
1737 return new(zone()) LCmpConstantEqAndBranch(value); | |
1738 } | |
1739 | |
1740 | |
1741 LInstruction* LChunkBuilder::DoIsObjectAndBranch(HIsObjectAndBranch* instr) { | 1734 LInstruction* LChunkBuilder::DoIsObjectAndBranch(HIsObjectAndBranch* instr) { |
1742 ASSERT(instr->value()->representation().IsTagged()); | 1735 ASSERT(instr->value()->representation().IsTagged()); |
1743 LOperand* value = UseRegisterAtStart(instr->value()); | 1736 LOperand* value = UseRegisterAtStart(instr->value()); |
1744 LOperand* temp = TempRegister(); | 1737 LOperand* temp = TempRegister(); |
1745 return new(zone()) LIsObjectAndBranch(value, temp); | 1738 return new(zone()) LIsObjectAndBranch(value, temp); |
1746 } | 1739 } |
1747 | 1740 |
1748 | 1741 |
1749 LInstruction* LChunkBuilder::DoIsStringAndBranch(HIsStringAndBranch* instr) { | 1742 LInstruction* LChunkBuilder::DoIsStringAndBranch(HIsStringAndBranch* instr) { |
1750 ASSERT(instr->value()->representation().IsTagged()); | 1743 ASSERT(instr->value()->representation().IsTagged()); |
(...skipping 896 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2647 | 2640 |
2648 | 2641 |
2649 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2642 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2650 LOperand* object = UseRegister(instr->object()); | 2643 LOperand* object = UseRegister(instr->object()); |
2651 LOperand* index = UseRegister(instr->index()); | 2644 LOperand* index = UseRegister(instr->index()); |
2652 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); | 2645 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); |
2653 } | 2646 } |
2654 | 2647 |
2655 | 2648 |
2656 } } // namespace v8::internal | 2649 } } // namespace v8::internal |
OLD | NEW |