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 1704 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1715 LOperand* right = exponent_type.IsDouble() ? | 1715 LOperand* right = exponent_type.IsDouble() ? |
1716 UseFixedDouble(instr->right(), d2) : | 1716 UseFixedDouble(instr->right(), d2) : |
1717 UseFixed(instr->right(), r2); | 1717 UseFixed(instr->right(), r2); |
1718 LPower* result = new(zone()) LPower(left, right); | 1718 LPower* result = new(zone()) LPower(left, right); |
1719 return MarkAsCall(DefineFixedDouble(result, d3), | 1719 return MarkAsCall(DefineFixedDouble(result, d3), |
1720 instr, | 1720 instr, |
1721 CAN_DEOPTIMIZE_EAGERLY); | 1721 CAN_DEOPTIMIZE_EAGERLY); |
1722 } | 1722 } |
1723 | 1723 |
1724 | 1724 |
1725 LInstruction* LChunkBuilder::DoRandom(HRandom* instr) { | |
1726 ASSERT(instr->representation().IsDouble()); | |
1727 ASSERT(instr->global_object()->representation().IsTagged()); | |
1728 LOperand* global_object = UseTempRegister(instr->global_object()); | |
1729 LOperand* scratch = TempRegister(); | |
1730 LOperand* scratch2 = TempRegister(); | |
1731 LOperand* scratch3 = TempRegister(); | |
1732 LRandom* result = new(zone()) LRandom( | |
1733 global_object, scratch, scratch2, scratch3); | |
1734 return DefineFixedDouble(result, d7); | |
1735 } | |
1736 | |
1737 | |
1738 LInstruction* LChunkBuilder::DoCompareGeneric(HCompareGeneric* instr) { | 1725 LInstruction* LChunkBuilder::DoCompareGeneric(HCompareGeneric* instr) { |
1739 ASSERT(instr->left()->representation().IsTagged()); | 1726 ASSERT(instr->left()->representation().IsTagged()); |
1740 ASSERT(instr->right()->representation().IsTagged()); | 1727 ASSERT(instr->right()->representation().IsTagged()); |
1741 LOperand* context = UseFixed(instr->context(), cp); | 1728 LOperand* context = UseFixed(instr->context(), cp); |
1742 LOperand* left = UseFixed(instr->left(), r1); | 1729 LOperand* left = UseFixed(instr->left(), r1); |
1743 LOperand* right = UseFixed(instr->right(), r0); | 1730 LOperand* right = UseFixed(instr->right(), r0); |
1744 LCmpT* result = new(zone()) LCmpT(context, left, right); | 1731 LCmpT* result = new(zone()) LCmpT(context, left, right); |
1745 return MarkAsCall(DefineFixed(result, r0), instr); | 1732 return MarkAsCall(DefineFixed(result, r0), instr); |
1746 } | 1733 } |
1747 | 1734 |
(...skipping 920 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2668 | 2655 |
2669 | 2656 |
2670 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2657 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2671 LOperand* object = UseRegister(instr->object()); | 2658 LOperand* object = UseRegister(instr->object()); |
2672 LOperand* index = UseRegister(instr->index()); | 2659 LOperand* index = UseRegister(instr->index()); |
2673 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); | 2660 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); |
2674 } | 2661 } |
2675 | 2662 |
2676 | 2663 |
2677 } } // namespace v8::internal | 2664 } } // namespace v8::internal |
OLD | NEW |