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 1671 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1682 LOperand* left = UseFixed(instr->left(), edx); | 1682 LOperand* left = UseFixed(instr->left(), edx); |
1683 LOperand* right = UseFixed(instr->right(), eax); | 1683 LOperand* right = UseFixed(instr->right(), eax); |
1684 LCmpT* result = new(zone()) LCmpT(context, left, right); | 1684 LCmpT* result = new(zone()) LCmpT(context, left, right); |
1685 return MarkAsCall(DefineFixed(result, eax), instr); | 1685 return MarkAsCall(DefineFixed(result, eax), instr); |
1686 } | 1686 } |
1687 | 1687 |
1688 | 1688 |
1689 LInstruction* LChunkBuilder::DoCompareIDAndBranch( | 1689 LInstruction* LChunkBuilder::DoCompareIDAndBranch( |
1690 HCompareIDAndBranch* instr) { | 1690 HCompareIDAndBranch* instr) { |
1691 Representation r = instr->representation(); | 1691 Representation r = instr->representation(); |
1692 if (r.IsInteger32()) { | 1692 if (r.IsSmiOrInteger32()) { |
1693 ASSERT(instr->left()->representation().IsInteger32()); | 1693 ASSERT(instr->left()->representation().IsSmiOrInteger32()); |
1694 ASSERT(instr->right()->representation().IsInteger32()); | 1694 ASSERT(instr->left()->representation().Equals( |
| 1695 instr->right()->representation())); |
1695 LOperand* left = UseRegisterOrConstantAtStart(instr->left()); | 1696 LOperand* left = UseRegisterOrConstantAtStart(instr->left()); |
1696 LOperand* right = UseOrConstantAtStart(instr->right()); | 1697 LOperand* right = UseOrConstantAtStart(instr->right()); |
1697 return new(zone()) LCmpIDAndBranch(left, right); | 1698 return new(zone()) LCmpIDAndBranch(left, right); |
1698 } else { | 1699 } else { |
1699 ASSERT(r.IsDouble()); | 1700 ASSERT(r.IsDouble()); |
1700 ASSERT(instr->left()->representation().IsDouble()); | 1701 ASSERT(instr->left()->representation().IsDouble()); |
1701 ASSERT(instr->right()->representation().IsDouble()); | 1702 ASSERT(instr->right()->representation().IsDouble()); |
1702 LOperand* left; | 1703 LOperand* left; |
1703 LOperand* right; | 1704 LOperand* right; |
1704 if (instr->left()->IsConstant() && instr->right()->IsConstant()) { | 1705 if (instr->left()->IsConstant() && instr->right()->IsConstant()) { |
(...skipping 1068 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2773 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2774 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2774 LOperand* object = UseRegister(instr->object()); | 2775 LOperand* object = UseRegister(instr->object()); |
2775 LOperand* index = UseTempRegister(instr->index()); | 2776 LOperand* index = UseTempRegister(instr->index()); |
2776 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); | 2777 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); |
2777 } | 2778 } |
2778 | 2779 |
2779 | 2780 |
2780 } } // namespace v8::internal | 2781 } } // namespace v8::internal |
2781 | 2782 |
2782 #endif // V8_TARGET_ARCH_IA32 | 2783 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |