| 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 1677 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1688 LOperand* left = UseFixedDouble(instr->left(), xmm2); | 1688 LOperand* left = UseFixedDouble(instr->left(), xmm2); |
| 1689 LOperand* right = exponent_type.IsDouble() ? | 1689 LOperand* right = exponent_type.IsDouble() ? |
| 1690 UseFixedDouble(instr->right(), xmm1) : | 1690 UseFixedDouble(instr->right(), xmm1) : |
| 1691 UseFixed(instr->right(), eax); | 1691 UseFixed(instr->right(), eax); |
| 1692 LPower* result = new(zone()) LPower(left, right); | 1692 LPower* result = new(zone()) LPower(left, right); |
| 1693 return MarkAsCall(DefineFixedDouble(result, xmm3), instr, | 1693 return MarkAsCall(DefineFixedDouble(result, xmm3), instr, |
| 1694 CAN_DEOPTIMIZE_EAGERLY); | 1694 CAN_DEOPTIMIZE_EAGERLY); |
| 1695 } | 1695 } |
| 1696 | 1696 |
| 1697 | 1697 |
| 1698 LInstruction* LChunkBuilder::DoRandom(HRandom* instr) { | |
| 1699 ASSERT(instr->representation().IsDouble()); | |
| 1700 ASSERT(instr->global_object()->representation().IsTagged()); | |
| 1701 LOperand* global_object = UseTempRegister(instr->global_object()); | |
| 1702 LOperand* scratch = TempRegister(); | |
| 1703 LOperand* scratch2 = TempRegister(); | |
| 1704 LOperand* scratch3 = TempRegister(); | |
| 1705 LRandom* result = new(zone()) LRandom( | |
| 1706 global_object, scratch, scratch2, scratch3); | |
| 1707 return DefineFixedDouble(result, xmm1); | |
| 1708 } | |
| 1709 | |
| 1710 | |
| 1711 LInstruction* LChunkBuilder::DoCompareGeneric(HCompareGeneric* instr) { | 1698 LInstruction* LChunkBuilder::DoCompareGeneric(HCompareGeneric* instr) { |
| 1712 ASSERT(instr->left()->representation().IsSmiOrTagged()); | 1699 ASSERT(instr->left()->representation().IsSmiOrTagged()); |
| 1713 ASSERT(instr->right()->representation().IsSmiOrTagged()); | 1700 ASSERT(instr->right()->representation().IsSmiOrTagged()); |
| 1714 LOperand* context = UseFixed(instr->context(), esi); | 1701 LOperand* context = UseFixed(instr->context(), esi); |
| 1715 LOperand* left = UseFixed(instr->left(), edx); | 1702 LOperand* left = UseFixed(instr->left(), edx); |
| 1716 LOperand* right = UseFixed(instr->right(), eax); | 1703 LOperand* right = UseFixed(instr->right(), eax); |
| 1717 LCmpT* result = new(zone()) LCmpT(context, left, right); | 1704 LCmpT* result = new(zone()) LCmpT(context, left, right); |
| 1718 return MarkAsCall(DefineFixed(result, eax), instr); | 1705 return MarkAsCall(DefineFixed(result, eax), instr); |
| 1719 } | 1706 } |
| 1720 | 1707 |
| (...skipping 1065 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2786 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2773 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
| 2787 LOperand* object = UseRegister(instr->object()); | 2774 LOperand* object = UseRegister(instr->object()); |
| 2788 LOperand* index = UseTempRegister(instr->index()); | 2775 LOperand* index = UseTempRegister(instr->index()); |
| 2789 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); | 2776 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); |
| 2790 } | 2777 } |
| 2791 | 2778 |
| 2792 | 2779 |
| 2793 } } // namespace v8::internal | 2780 } } // namespace v8::internal |
| 2794 | 2781 |
| 2795 #endif // V8_TARGET_ARCH_IA32 | 2782 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |