| OLD | NEW |
| 1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 1476 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1487 LOperand* temp() const { return temp_; } | 1487 LOperand* temp() const { return temp_; } |
| 1488 | 1488 |
| 1489 private: | 1489 private: |
| 1490 LOperand* temp_; | 1490 LOperand* temp_; |
| 1491 }; | 1491 }; |
| 1492 | 1492 |
| 1493 | 1493 |
| 1494 // Sometimes truncating conversion from a tagged value to an int32. | 1494 // Sometimes truncating conversion from a tagged value to an int32. |
| 1495 class LDoubleToI: public LUnaryOperation { | 1495 class LDoubleToI: public LUnaryOperation { |
| 1496 public: | 1496 public: |
| 1497 explicit LDoubleToI(LOperand* value) : LUnaryOperation(value) { } | 1497 LDoubleToI(LOperand* value, LOperand* temporary) |
| 1498 : LUnaryOperation(value), temporary_(temporary) { } |
| 1498 | 1499 |
| 1499 DECLARE_CONCRETE_INSTRUCTION(DoubleToI, "double-to-i") | 1500 DECLARE_CONCRETE_INSTRUCTION(DoubleToI, "double-to-i") |
| 1500 DECLARE_HYDROGEN_ACCESSOR(Change) | 1501 DECLARE_HYDROGEN_ACCESSOR(Change) |
| 1501 | 1502 |
| 1502 bool truncating() { return hydrogen()->CanTruncateToInt32(); } | 1503 bool truncating() { return hydrogen()->CanTruncateToInt32(); } |
| 1504 LOperand* temporary() const { return temporary_; } |
| 1505 |
| 1506 private: |
| 1507 LOperand* temporary_; |
| 1503 }; | 1508 }; |
| 1504 | 1509 |
| 1505 | 1510 |
| 1506 // Truncating conversion from a tagged value to an int32. | 1511 // Truncating conversion from a tagged value to an int32. |
| 1507 class LTaggedToI: public LUnaryOperation { | 1512 class LTaggedToI: public LUnaryOperation { |
| 1508 public: | 1513 public: |
| 1509 LTaggedToI(LOperand* value, LOperand* temp) | 1514 LTaggedToI(LOperand* value, LOperand* temp) |
| 1510 : LUnaryOperation(value), temp_(temp) { } | 1515 : LUnaryOperation(value), temp_(temp) { } |
| 1511 | 1516 |
| 1512 DECLARE_CONCRETE_INSTRUCTION(TaggedToI, "tagged-to-i") | 1517 DECLARE_CONCRETE_INSTRUCTION(TaggedToI, "tagged-to-i") |
| (...skipping 629 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2142 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2147 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2143 }; | 2148 }; |
| 2144 | 2149 |
| 2145 #undef DECLARE_HYDROGEN_ACCESSOR | 2150 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2146 #undef DECLARE_INSTRUCTION | 2151 #undef DECLARE_INSTRUCTION |
| 2147 #undef DECLARE_CONCRETE_INSTRUCTION | 2152 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2148 | 2153 |
| 2149 } } // namespace v8::internal | 2154 } } // namespace v8::internal |
| 2150 | 2155 |
| 2151 #endif // V8_IA32_LITHIUM_IA32_H_ | 2156 #endif // V8_IA32_LITHIUM_IA32_H_ |
| OLD | NEW |