| 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 1679 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1690 LOperand* left = UseFixedDouble(instr->left(), xmm2); | 1690 LOperand* left = UseFixedDouble(instr->left(), xmm2); |
| 1691 LOperand* right = exponent_type.IsDouble() ? | 1691 LOperand* right = exponent_type.IsDouble() ? |
| 1692 UseFixedDouble(instr->right(), xmm1) : | 1692 UseFixedDouble(instr->right(), xmm1) : |
| 1693 UseFixed(instr->right(), eax); | 1693 UseFixed(instr->right(), eax); |
| 1694 LPower* result = new(zone()) LPower(left, right); | 1694 LPower* result = new(zone()) LPower(left, right); |
| 1695 return MarkAsCall(DefineFixedDouble(result, xmm3), instr, | 1695 return MarkAsCall(DefineFixedDouble(result, xmm3), instr, |
| 1696 CAN_DEOPTIMIZE_EAGERLY); | 1696 CAN_DEOPTIMIZE_EAGERLY); |
| 1697 } | 1697 } |
| 1698 | 1698 |
| 1699 | 1699 |
| 1700 LInstruction* LChunkBuilder::DoRandom(HRandom* instr) { | |
| 1701 ASSERT(instr->representation().IsDouble()); | |
| 1702 ASSERT(instr->global_object()->representation().IsTagged()); | |
| 1703 LOperand* global_object = UseTempRegister(instr->global_object()); | |
| 1704 LOperand* scratch = TempRegister(); | |
| 1705 LOperand* scratch2 = TempRegister(); | |
| 1706 LOperand* scratch3 = TempRegister(); | |
| 1707 LRandom* result = new(zone()) LRandom( | |
| 1708 global_object, scratch, scratch2, scratch3); | |
| 1709 return DefineFixedDouble(result, xmm1); | |
| 1710 } | |
| 1711 | |
| 1712 | |
| 1713 LInstruction* LChunkBuilder::DoCompareGeneric(HCompareGeneric* instr) { | 1700 LInstruction* LChunkBuilder::DoCompareGeneric(HCompareGeneric* instr) { |
| 1714 ASSERT(instr->left()->representation().IsSmiOrTagged()); | 1701 ASSERT(instr->left()->representation().IsSmiOrTagged()); |
| 1715 ASSERT(instr->right()->representation().IsSmiOrTagged()); | 1702 ASSERT(instr->right()->representation().IsSmiOrTagged()); |
| 1716 LOperand* context = UseFixed(instr->context(), esi); | 1703 LOperand* context = UseFixed(instr->context(), esi); |
| 1717 LOperand* left = UseFixed(instr->left(), edx); | 1704 LOperand* left = UseFixed(instr->left(), edx); |
| 1718 LOperand* right = UseFixed(instr->right(), eax); | 1705 LOperand* right = UseFixed(instr->right(), eax); |
| 1719 LCmpT* result = new(zone()) LCmpT(context, left, right); | 1706 LCmpT* result = new(zone()) LCmpT(context, left, right); |
| 1720 return MarkAsCall(DefineFixed(result, eax), instr); | 1707 return MarkAsCall(DefineFixed(result, eax), instr); |
| 1721 } | 1708 } |
| 1722 | 1709 |
| (...skipping 1026 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2749 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2736 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
| 2750 LOperand* object = UseRegister(instr->object()); | 2737 LOperand* object = UseRegister(instr->object()); |
| 2751 LOperand* index = UseTempRegister(instr->index()); | 2738 LOperand* index = UseTempRegister(instr->index()); |
| 2752 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); | 2739 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); |
| 2753 } | 2740 } |
| 2754 | 2741 |
| 2755 | 2742 |
| 2756 } } // namespace v8::internal | 2743 } } // namespace v8::internal |
| 2757 | 2744 |
| 2758 #endif // V8_TARGET_ARCH_IA32 | 2745 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |