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 1413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1424 inputs_[0] = value; | 1424 inputs_[0] = value; |
1425 temps_[0] = temp1; | 1425 temps_[0] = temp1; |
1426 temps_[1] = temp2; | 1426 temps_[1] = temp2; |
1427 } | 1427 } |
1428 | 1428 |
1429 DECLARE_CONCRETE_INSTRUCTION(NumberTagD, "number-tag-d") | 1429 DECLARE_CONCRETE_INSTRUCTION(NumberTagD, "number-tag-d") |
1430 }; | 1430 }; |
1431 | 1431 |
1432 | 1432 |
1433 // Sometimes truncating conversion from a tagged value to an int32. | 1433 // Sometimes truncating conversion from a tagged value to an int32. |
1434 class LDoubleToI: public LTemplateInstruction<1, 1, 0> { | 1434 class LDoubleToI: public LTemplateInstruction<1, 1, 1> { |
1435 public: | 1435 public: |
1436 explicit LDoubleToI(LOperand* value) { | 1436 explicit LDoubleToI(LOperand* value, LOperand* temp1) { |
1437 inputs_[0] = value; | 1437 inputs_[0] = value; |
| 1438 temps_[0] = temp1; |
1438 } | 1439 } |
1439 | 1440 |
1440 DECLARE_CONCRETE_INSTRUCTION(DoubleToI, "double-to-i") | 1441 DECLARE_CONCRETE_INSTRUCTION(DoubleToI, "double-to-i") |
1441 DECLARE_HYDROGEN_ACCESSOR(Change) | 1442 DECLARE_HYDROGEN_ACCESSOR(Change) |
1442 | 1443 |
1443 bool truncating() { return hydrogen()->CanTruncateToInt32(); } | 1444 bool truncating() { return hydrogen()->CanTruncateToInt32(); } |
1444 }; | 1445 }; |
1445 | 1446 |
1446 | 1447 |
1447 // Truncating conversion from a tagged value to an int32. | 1448 // Truncating conversion from a tagged value to an int32. |
(...skipping 547 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1995 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 1996 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
1996 }; | 1997 }; |
1997 | 1998 |
1998 #undef DECLARE_HYDROGEN_ACCESSOR | 1999 #undef DECLARE_HYDROGEN_ACCESSOR |
1999 #undef DECLARE_INSTRUCTION | 2000 #undef DECLARE_INSTRUCTION |
2000 #undef DECLARE_CONCRETE_INSTRUCTION | 2001 #undef DECLARE_CONCRETE_INSTRUCTION |
2001 | 2002 |
2002 } } // namespace v8::internal | 2003 } } // namespace v8::internal |
2003 | 2004 |
2004 #endif // V8_ARM_LITHIUM_ARM_H_ | 2005 #endif // V8_ARM_LITHIUM_ARM_H_ |
OLD | NEW |