| 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 1352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1363 ASSERT(instr->right()->representation().IsTagged()); | 1363 ASSERT(instr->right()->representation().IsTagged()); |
| 1364 LOperand* left = UseFixed(instr->left(), x1); | 1364 LOperand* left = UseFixed(instr->left(), x1); |
| 1365 LOperand* right = UseFixed(instr->right(), x0); | 1365 LOperand* right = UseFixed(instr->right(), x0); |
| 1366 LCmpT* result = new(zone()) LCmpT(left, right); | 1366 LCmpT* result = new(zone()) LCmpT(left, right); |
| 1367 return MarkAsCall(DefineFixed(result, x0), instr); | 1367 return MarkAsCall(DefineFixed(result, x0), instr); |
| 1368 } | 1368 } |
| 1369 | 1369 |
| 1370 | 1370 |
| 1371 LInstruction* LChunkBuilder::DoCompareHoleAndBranch( | 1371 LInstruction* LChunkBuilder::DoCompareHoleAndBranch( |
| 1372 HCompareHoleAndBranch* instr) { | 1372 HCompareHoleAndBranch* instr) { |
| 1373 LOperand* object = UseRegister(instr->object()); | 1373 LOperand* value = UseRegister(instr->value()); |
| 1374 if (instr->representation().IsTagged()) { | 1374 if (instr->representation().IsTagged()) { |
| 1375 return new(zone()) LCmpHoleAndBranchT(object); | 1375 return new(zone()) LCmpHoleAndBranchT(value); |
| 1376 } else { | 1376 } else { |
| 1377 LOperand* temp = TempRegister(); | 1377 LOperand* temp = TempRegister(); |
| 1378 return new(zone()) LCmpHoleAndBranchD(object, temp); | 1378 return new(zone()) LCmpHoleAndBranchD(value, temp); |
| 1379 } | 1379 } |
| 1380 } | 1380 } |
| 1381 | 1381 |
| 1382 | 1382 |
| 1383 LInstruction* LChunkBuilder::DoCompareObjectEqAndBranch( | 1383 LInstruction* LChunkBuilder::DoCompareObjectEqAndBranch( |
| 1384 HCompareObjectEqAndBranch* instr) { | 1384 HCompareObjectEqAndBranch* instr) { |
| 1385 LOperand* left = UseRegisterAtStart(instr->left()); | 1385 LOperand* left = UseRegisterAtStart(instr->left()); |
| 1386 LOperand* right = UseRegisterAtStart(instr->right()); | 1386 LOperand* right = UseRegisterAtStart(instr->right()); |
| 1387 return new(zone()) LCmpObjectEqAndBranch(left, right); | 1387 return new(zone()) LCmpObjectEqAndBranch(left, right); |
| 1388 } | 1388 } |
| (...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1604 return MarkAsCall(DefineFixed(result, x0), instr, CANNOT_DEOPTIMIZE_EAGERLY); | 1604 return MarkAsCall(DefineFixed(result, x0), instr, CANNOT_DEOPTIMIZE_EAGERLY); |
| 1605 } | 1605 } |
| 1606 | 1606 |
| 1607 | 1607 |
| 1608 LInstruction* LChunkBuilder::DoIsConstructCallAndBranch( | 1608 LInstruction* LChunkBuilder::DoIsConstructCallAndBranch( |
| 1609 HIsConstructCallAndBranch* instr) { | 1609 HIsConstructCallAndBranch* instr) { |
| 1610 return new(zone()) LIsConstructCallAndBranch(TempRegister(), TempRegister()); | 1610 return new(zone()) LIsConstructCallAndBranch(TempRegister(), TempRegister()); |
| 1611 } | 1611 } |
| 1612 | 1612 |
| 1613 | 1613 |
| 1614 LInstruction* LChunkBuilder::DoIsNumberAndBranch(HIsNumberAndBranch* instr) { | |
| 1615 return new(zone()) | |
| 1616 LIsNumberAndBranch(UseRegisterOrConstantAtStart(instr->value())); | |
| 1617 } | |
| 1618 | |
| 1619 | |
| 1620 LInstruction* LChunkBuilder::DoIsObjectAndBranch(HIsObjectAndBranch* instr) { | 1614 LInstruction* LChunkBuilder::DoIsObjectAndBranch(HIsObjectAndBranch* instr) { |
| 1621 ASSERT(instr->value()->representation().IsTagged()); | 1615 ASSERT(instr->value()->representation().IsTagged()); |
| 1622 LOperand* value = UseRegisterAtStart(instr->value()); | 1616 LOperand* value = UseRegisterAtStart(instr->value()); |
| 1623 LOperand* temp1 = TempRegister(); | 1617 LOperand* temp1 = TempRegister(); |
| 1624 LOperand* temp2 = TempRegister(); | 1618 LOperand* temp2 = TempRegister(); |
| 1625 return new(zone()) LIsObjectAndBranch(value, temp1, temp2); | 1619 return new(zone()) LIsObjectAndBranch(value, temp1, temp2); |
| 1626 } | 1620 } |
| 1627 | 1621 |
| 1628 | 1622 |
| 1629 LInstruction* LChunkBuilder::DoIsStringAndBranch(HIsStringAndBranch* instr) { | 1623 LInstruction* LChunkBuilder::DoIsStringAndBranch(HIsStringAndBranch* instr) { |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1768 } | 1762 } |
| 1769 | 1763 |
| 1770 | 1764 |
| 1771 LInstruction* LChunkBuilder::DoLoadNamedGeneric(HLoadNamedGeneric* instr) { | 1765 LInstruction* LChunkBuilder::DoLoadNamedGeneric(HLoadNamedGeneric* instr) { |
| 1772 LOperand* object = UseFixed(instr->object(), x0); | 1766 LOperand* object = UseFixed(instr->object(), x0); |
| 1773 LInstruction* result = DefineFixed(new(zone()) LLoadNamedGeneric(object), x0); | 1767 LInstruction* result = DefineFixed(new(zone()) LLoadNamedGeneric(object), x0); |
| 1774 return MarkAsCall(result, instr); | 1768 return MarkAsCall(result, instr); |
| 1775 } | 1769 } |
| 1776 | 1770 |
| 1777 | 1771 |
| 1772 LInstruction* LChunkBuilder::DoLoadRoot(HLoadRoot* instr) { |
| 1773 return DefineAsRegister(new(zone()) LLoadRoot); |
| 1774 } |
| 1775 |
| 1776 |
| 1778 LInstruction* LChunkBuilder::DoMapEnumLength(HMapEnumLength* instr) { | 1777 LInstruction* LChunkBuilder::DoMapEnumLength(HMapEnumLength* instr) { |
| 1779 LOperand* map = UseRegisterAtStart(instr->value()); | 1778 LOperand* map = UseRegisterAtStart(instr->value()); |
| 1780 return DefineAsRegister(new(zone()) LMapEnumLength(map)); | 1779 return DefineAsRegister(new(zone()) LMapEnumLength(map)); |
| 1781 } | 1780 } |
| 1782 | 1781 |
| 1783 | 1782 |
| 1784 HValue* LChunkBuilder::SimplifiedDivisorForMathFloorOfDiv(HValue* divisor) { | 1783 HValue* LChunkBuilder::SimplifiedDivisorForMathFloorOfDiv(HValue* divisor) { |
| 1785 // A value with an integer representation does not need to be transformed. | 1784 // A value with an integer representation does not need to be transformed. |
| 1786 if (divisor->representation().IsInteger32()) { | 1785 if (divisor->representation().IsInteger32()) { |
| 1787 return divisor; | 1786 return divisor; |
| (...skipping 750 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2538 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) { | 2537 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) { |
| 2539 LOperand* receiver = UseRegister(instr->receiver()); | 2538 LOperand* receiver = UseRegister(instr->receiver()); |
| 2540 LOperand* function = UseRegisterAtStart(instr->function()); | 2539 LOperand* function = UseRegisterAtStart(instr->function()); |
| 2541 LOperand* temp = TempRegister(); | 2540 LOperand* temp = TempRegister(); |
| 2542 LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function, temp); | 2541 LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function, temp); |
| 2543 return AssignEnvironment(DefineAsRegister(result)); | 2542 return AssignEnvironment(DefineAsRegister(result)); |
| 2544 } | 2543 } |
| 2545 | 2544 |
| 2546 | 2545 |
| 2547 } } // namespace v8::internal | 2546 } } // namespace v8::internal |
| OLD | NEW |