| 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 1624 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1635 LOperand* right = exponent_type.IsDouble() ? | 1635 LOperand* right = exponent_type.IsDouble() ? |
| 1636 UseFixedDouble(instr->right(), f4) : | 1636 UseFixedDouble(instr->right(), f4) : |
| 1637 UseFixed(instr->right(), a2); | 1637 UseFixed(instr->right(), a2); |
| 1638 LPower* result = new(zone()) LPower(left, right); | 1638 LPower* result = new(zone()) LPower(left, right); |
| 1639 return MarkAsCall(DefineFixedDouble(result, f0), | 1639 return MarkAsCall(DefineFixedDouble(result, f0), |
| 1640 instr, | 1640 instr, |
| 1641 CAN_DEOPTIMIZE_EAGERLY); | 1641 CAN_DEOPTIMIZE_EAGERLY); |
| 1642 } | 1642 } |
| 1643 | 1643 |
| 1644 | 1644 |
| 1645 LInstruction* LChunkBuilder::DoRandom(HRandom* instr) { | |
| 1646 ASSERT(instr->representation().IsDouble()); | |
| 1647 ASSERT(instr->global_object()->representation().IsTagged()); | |
| 1648 LOperand* global_object = UseTempRegister(instr->global_object()); | |
| 1649 LOperand* scratch = TempRegister(); | |
| 1650 LOperand* scratch2 = TempRegister(); | |
| 1651 LOperand* scratch3 = TempRegister(); | |
| 1652 LRandom* result = new(zone()) LRandom( | |
| 1653 global_object, scratch, scratch2, scratch3); | |
| 1654 return DefineFixedDouble(result, f0); | |
| 1655 } | |
| 1656 | |
| 1657 | |
| 1658 LInstruction* LChunkBuilder::DoCompareGeneric(HCompareGeneric* instr) { | 1645 LInstruction* LChunkBuilder::DoCompareGeneric(HCompareGeneric* instr) { |
| 1659 ASSERT(instr->left()->representation().IsTagged()); | 1646 ASSERT(instr->left()->representation().IsTagged()); |
| 1660 ASSERT(instr->right()->representation().IsTagged()); | 1647 ASSERT(instr->right()->representation().IsTagged()); |
| 1661 LOperand* context = UseFixed(instr->context(), cp); | 1648 LOperand* context = UseFixed(instr->context(), cp); |
| 1662 LOperand* left = UseFixed(instr->left(), a1); | 1649 LOperand* left = UseFixed(instr->left(), a1); |
| 1663 LOperand* right = UseFixed(instr->right(), a0); | 1650 LOperand* right = UseFixed(instr->right(), a0); |
| 1664 LCmpT* result = new(zone()) LCmpT(context, left, right); | 1651 LCmpT* result = new(zone()) LCmpT(context, left, right); |
| 1665 return MarkAsCall(DefineFixed(result, v0), instr); | 1652 return MarkAsCall(DefineFixed(result, v0), instr); |
| 1666 } | 1653 } |
| 1667 | 1654 |
| (...skipping 936 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2604 | 2591 |
| 2605 | 2592 |
| 2606 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2593 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
| 2607 LOperand* object = UseRegister(instr->object()); | 2594 LOperand* object = UseRegister(instr->object()); |
| 2608 LOperand* index = UseRegister(instr->index()); | 2595 LOperand* index = UseRegister(instr->index()); |
| 2609 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); | 2596 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); |
| 2610 } | 2597 } |
| 2611 | 2598 |
| 2612 | 2599 |
| 2613 } } // namespace v8::internal | 2600 } } // namespace v8::internal |
| OLD | NEW |