| 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 1658 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1669 LOperand* context = UseFixed(instr->context(), cp); | 1669 LOperand* context = UseFixed(instr->context(), cp); |
| 1670 LOperand* left = UseFixed(instr->left(), r1); | 1670 LOperand* left = UseFixed(instr->left(), r1); |
| 1671 LOperand* right = UseFixed(instr->right(), r0); | 1671 LOperand* right = UseFixed(instr->right(), r0); |
| 1672 LCmpT* result = new(zone()) LCmpT(context, left, right); | 1672 LCmpT* result = new(zone()) LCmpT(context, left, right); |
| 1673 return MarkAsCall(DefineFixed(result, r0), instr); | 1673 return MarkAsCall(DefineFixed(result, r0), instr); |
| 1674 } | 1674 } |
| 1675 | 1675 |
| 1676 | 1676 |
| 1677 LInstruction* LChunkBuilder::DoCompareNumericAndBranch( | 1677 LInstruction* LChunkBuilder::DoCompareNumericAndBranch( |
| 1678 HCompareNumericAndBranch* instr) { | 1678 HCompareNumericAndBranch* instr) { |
| 1679 LInstruction* goto_instr = CheckElideControlInstruction(instr); |
| 1680 if (goto_instr != NULL) return goto_instr; |
| 1679 Representation r = instr->representation(); | 1681 Representation r = instr->representation(); |
| 1680 if (r.IsSmiOrInteger32()) { | 1682 if (r.IsSmiOrInteger32()) { |
| 1681 ASSERT(instr->left()->representation().Equals(r)); | 1683 ASSERT(instr->left()->representation().Equals(r)); |
| 1682 ASSERT(instr->right()->representation().Equals(r)); | 1684 ASSERT(instr->right()->representation().Equals(r)); |
| 1683 LOperand* left = UseRegisterOrConstantAtStart(instr->left()); | 1685 LOperand* left = UseRegisterOrConstantAtStart(instr->left()); |
| 1684 LOperand* right = UseRegisterOrConstantAtStart(instr->right()); | 1686 LOperand* right = UseRegisterOrConstantAtStart(instr->right()); |
| 1685 return new(zone()) LCompareNumericAndBranch(left, right); | 1687 return new(zone()) LCompareNumericAndBranch(left, right); |
| 1686 } else { | 1688 } else { |
| 1687 ASSERT(r.IsDouble()); | 1689 ASSERT(r.IsDouble()); |
| 1688 ASSERT(instr->left()->representation().IsDouble()); | 1690 ASSERT(instr->left()->representation().IsDouble()); |
| (...skipping 889 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2578 | 2580 |
| 2579 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2581 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
| 2580 LOperand* object = UseRegister(instr->object()); | 2582 LOperand* object = UseRegister(instr->object()); |
| 2581 LOperand* index = UseRegister(instr->index()); | 2583 LOperand* index = UseRegister(instr->index()); |
| 2582 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); | 2584 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); |
| 2583 LInstruction* result = DefineSameAsFirst(load); | 2585 LInstruction* result = DefineSameAsFirst(load); |
| 2584 return AssignPointerMap(result); | 2586 return AssignPointerMap(result); |
| 2585 } | 2587 } |
| 2586 | 2588 |
| 2587 } } // namespace v8::internal | 2589 } } // namespace v8::internal |
| OLD | NEW |