| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 1770 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1781 LOperand* remainder = TempRegister(); | 1781 LOperand* remainder = TempRegister(); |
| 1782 LInstruction* result = | 1782 LInstruction* result = |
| 1783 DefineAsRegister(new(zone()) LFlooringDivI(dividend, divisor, remainder)); | 1783 DefineAsRegister(new(zone()) LFlooringDivI(dividend, divisor, remainder)); |
| 1784 return AssignEnvironment(result); | 1784 return AssignEnvironment(result); |
| 1785 } | 1785 } |
| 1786 | 1786 |
| 1787 | 1787 |
| 1788 LInstruction* LChunkBuilder::DoMathFloorOfDiv(HMathFloorOfDiv* instr) { | 1788 LInstruction* LChunkBuilder::DoMathFloorOfDiv(HMathFloorOfDiv* instr) { |
| 1789 if (instr->RightIsPowerOf2()) { | 1789 if (instr->RightIsPowerOf2()) { |
| 1790 return DoFlooringDivByPowerOf2I(instr); | 1790 return DoFlooringDivByPowerOf2I(instr); |
| 1791 } else if (instr->right()->IsConstant()) { | 1791 } else if (false && instr->right()->IsConstant()) { |
| 1792 return DoFlooringDivByConstI(instr); | 1792 return DoFlooringDivByConstI(instr); // TODO(svenpanne) Fix and re-enable. |
| 1793 } else { | 1793 } else { |
| 1794 return DoFlooringDivI(instr); | 1794 return DoFlooringDivI(instr); |
| 1795 } | 1795 } |
| 1796 } | 1796 } |
| 1797 | 1797 |
| 1798 | 1798 |
| 1799 LInstruction* LChunkBuilder::DoMathMinMax(HMathMinMax* instr) { | 1799 LInstruction* LChunkBuilder::DoMathMinMax(HMathMinMax* instr) { |
| 1800 LOperand* left = NULL; | 1800 LOperand* left = NULL; |
| 1801 LOperand* right = NULL; | 1801 LOperand* right = NULL; |
| 1802 if (instr->representation().IsSmiOrInteger32()) { | 1802 if (instr->representation().IsSmiOrInteger32()) { |
| (...skipping 761 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2564 | 2564 |
| 2565 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) { | 2565 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) { |
| 2566 LOperand* receiver = UseRegister(instr->receiver()); | 2566 LOperand* receiver = UseRegister(instr->receiver()); |
| 2567 LOperand* function = UseRegister(instr->function()); | 2567 LOperand* function = UseRegister(instr->function()); |
| 2568 LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function); | 2568 LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function); |
| 2569 return AssignEnvironment(DefineAsRegister(result)); | 2569 return AssignEnvironment(DefineAsRegister(result)); |
| 2570 } | 2570 } |
| 2571 | 2571 |
| 2572 | 2572 |
| 2573 } } // namespace v8::internal | 2573 } } // namespace v8::internal |
| OLD | NEW |