| 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 1681 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1692 LOperand* left = UseFixedDouble(instr->left(), xmm2); | 1692 LOperand* left = UseFixedDouble(instr->left(), xmm2); |
| 1693 LOperand* right = exponent_type.IsDouble() ? | 1693 LOperand* right = exponent_type.IsDouble() ? |
| 1694 UseFixedDouble(instr->right(), xmm1) : | 1694 UseFixedDouble(instr->right(), xmm1) : |
| 1695 UseFixed(instr->right(), eax); | 1695 UseFixed(instr->right(), eax); |
| 1696 LPower* result = new(zone()) LPower(left, right); | 1696 LPower* result = new(zone()) LPower(left, right); |
| 1697 return MarkAsCall(DefineFixedDouble(result, xmm3), instr, | 1697 return MarkAsCall(DefineFixedDouble(result, xmm3), instr, |
| 1698 CAN_DEOPTIMIZE_EAGERLY); | 1698 CAN_DEOPTIMIZE_EAGERLY); |
| 1699 } | 1699 } |
| 1700 | 1700 |
| 1701 | 1701 |
| 1702 LInstruction* LChunkBuilder::DoRandom(HRandom* instr) { | |
| 1703 ASSERT(instr->representation().IsDouble()); | |
| 1704 ASSERT(instr->global_object()->representation().IsTagged()); | |
| 1705 LOperand* global_object = UseTempRegister(instr->global_object()); | |
| 1706 LOperand* scratch = TempRegister(); | |
| 1707 LOperand* scratch2 = TempRegister(); | |
| 1708 LOperand* scratch3 = TempRegister(); | |
| 1709 LRandom* result = new(zone()) LRandom( | |
| 1710 global_object, scratch, scratch2, scratch3); | |
| 1711 return DefineFixedDouble(result, xmm1); | |
| 1712 } | |
| 1713 | |
| 1714 | |
| 1715 LInstruction* LChunkBuilder::DoCompareGeneric(HCompareGeneric* instr) { | 1702 LInstruction* LChunkBuilder::DoCompareGeneric(HCompareGeneric* instr) { |
| 1716 ASSERT(instr->left()->representation().IsSmiOrTagged()); | 1703 ASSERT(instr->left()->representation().IsSmiOrTagged()); |
| 1717 ASSERT(instr->right()->representation().IsSmiOrTagged()); | 1704 ASSERT(instr->right()->representation().IsSmiOrTagged()); |
| 1718 LOperand* context = UseFixed(instr->context(), esi); | 1705 LOperand* context = UseFixed(instr->context(), esi); |
| 1719 LOperand* left = UseFixed(instr->left(), edx); | 1706 LOperand* left = UseFixed(instr->left(), edx); |
| 1720 LOperand* right = UseFixed(instr->right(), eax); | 1707 LOperand* right = UseFixed(instr->right(), eax); |
| 1721 LCmpT* result = new(zone()) LCmpT(context, left, right); | 1708 LCmpT* result = new(zone()) LCmpT(context, left, right); |
| 1722 return MarkAsCall(DefineFixed(result, eax), instr); | 1709 return MarkAsCall(DefineFixed(result, eax), instr); |
| 1723 } | 1710 } |
| 1724 | 1711 |
| (...skipping 1040 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2765 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2752 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
| 2766 LOperand* object = UseRegister(instr->object()); | 2753 LOperand* object = UseRegister(instr->object()); |
| 2767 LOperand* index = UseTempRegister(instr->index()); | 2754 LOperand* index = UseTempRegister(instr->index()); |
| 2768 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); | 2755 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); |
| 2769 } | 2756 } |
| 2770 | 2757 |
| 2771 | 2758 |
| 2772 } } // namespace v8::internal | 2759 } } // namespace v8::internal |
| 2773 | 2760 |
| 2774 #endif // V8_TARGET_ARCH_IA32 | 2761 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |