| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 1439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1450 inputs_[0] = value; | 1450 inputs_[0] = value; |
| 1451 temps_[0] = temp1; | 1451 temps_[0] = temp1; |
| 1452 temps_[1] = temp2; | 1452 temps_[1] = temp2; |
| 1453 } | 1453 } |
| 1454 | 1454 |
| 1455 DECLARE_CONCRETE_INSTRUCTION(NumberTagD, "number-tag-d") | 1455 DECLARE_CONCRETE_INSTRUCTION(NumberTagD, "number-tag-d") |
| 1456 }; | 1456 }; |
| 1457 | 1457 |
| 1458 | 1458 |
| 1459 // Sometimes truncating conversion from a tagged value to an int32. | 1459 // Sometimes truncating conversion from a tagged value to an int32. |
| 1460 class LDoubleToI: public LTemplateInstruction<1, 1, 1> { | 1460 class LDoubleToI: public LTemplateInstruction<1, 1, 2> { |
| 1461 public: | 1461 public: |
| 1462 explicit LDoubleToI(LOperand* value, LOperand* temp1) { | 1462 LDoubleToI(LOperand* value, LOperand* temp1, LOperand* temp2) { |
| 1463 inputs_[0] = value; | 1463 inputs_[0] = value; |
| 1464 temps_[0] = temp1; | 1464 temps_[0] = temp1; |
| 1465 temps_[1] = temp2; |
| 1465 } | 1466 } |
| 1466 | 1467 |
| 1467 DECLARE_CONCRETE_INSTRUCTION(DoubleToI, "double-to-i") | 1468 DECLARE_CONCRETE_INSTRUCTION(DoubleToI, "double-to-i") |
| 1468 DECLARE_HYDROGEN_ACCESSOR(Change) | 1469 DECLARE_HYDROGEN_ACCESSOR(Change) |
| 1469 | 1470 |
| 1470 bool truncating() { return hydrogen()->CanTruncateToInt32(); } | 1471 bool truncating() { return hydrogen()->CanTruncateToInt32(); } |
| 1471 }; | 1472 }; |
| 1472 | 1473 |
| 1473 | 1474 |
| 1474 // Truncating conversion from a tagged value to an int32. | 1475 // Truncating conversion from a tagged value to an int32. |
| 1475 class LTaggedToI: public LTemplateInstruction<1, 1, 1> { | 1476 class LTaggedToI: public LTemplateInstruction<1, 1, 3> { |
| 1476 public: | 1477 public: |
| 1477 LTaggedToI(LOperand* value, LOperand* temp) { | 1478 LTaggedToI(LOperand* value, |
| 1479 LOperand* temp1, |
| 1480 LOperand* temp2, |
| 1481 LOperand* temp3) { |
| 1478 inputs_[0] = value; | 1482 inputs_[0] = value; |
| 1479 temps_[0] = temp; | 1483 temps_[0] = temp1; |
| 1484 temps_[1] = temp2; |
| 1485 temps_[2] = temp3; |
| 1480 } | 1486 } |
| 1481 | 1487 |
| 1482 DECLARE_CONCRETE_INSTRUCTION(TaggedToI, "tagged-to-i") | 1488 DECLARE_CONCRETE_INSTRUCTION(TaggedToI, "tagged-to-i") |
| 1483 DECLARE_HYDROGEN_ACCESSOR(Change) | 1489 DECLARE_HYDROGEN_ACCESSOR(Change) |
| 1484 | 1490 |
| 1485 bool truncating() { return hydrogen()->CanTruncateToInt32(); } | 1491 bool truncating() { return hydrogen()->CanTruncateToInt32(); } |
| 1486 }; | 1492 }; |
| 1487 | 1493 |
| 1488 | 1494 |
| 1489 class LSmiTag: public LTemplateInstruction<1, 1, 0> { | 1495 class LSmiTag: public LTemplateInstruction<1, 1, 0> { |
| (...skipping 572 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2062 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2068 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2063 }; | 2069 }; |
| 2064 | 2070 |
| 2065 #undef DECLARE_HYDROGEN_ACCESSOR | 2071 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2066 #undef DECLARE_INSTRUCTION | 2072 #undef DECLARE_INSTRUCTION |
| 2067 #undef DECLARE_CONCRETE_INSTRUCTION | 2073 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2068 | 2074 |
| 2069 } } // namespace v8::internal | 2075 } } // namespace v8::internal |
| 2070 | 2076 |
| 2071 #endif // V8_ARM_LITHIUM_ARM_H_ | 2077 #endif // V8_ARM_LITHIUM_ARM_H_ |
| OLD | NEW |