| 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 1357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1368 inputs_[0] = value; | 1368 inputs_[0] = value; |
| 1369 temps_[0] = temp1; | 1369 temps_[0] = temp1; |
| 1370 temps_[1] = temp2; | 1370 temps_[1] = temp2; |
| 1371 } | 1371 } |
| 1372 | 1372 |
| 1373 DECLARE_CONCRETE_INSTRUCTION(NumberTagD, "number-tag-d") | 1373 DECLARE_CONCRETE_INSTRUCTION(NumberTagD, "number-tag-d") |
| 1374 }; | 1374 }; |
| 1375 | 1375 |
| 1376 | 1376 |
| 1377 // Sometimes truncating conversion from a tagged value to an int32. | 1377 // Sometimes truncating conversion from a tagged value to an int32. |
| 1378 class LDoubleToI: public LTemplateInstruction<1, 1, 0> { | 1378 class LDoubleToI: public LTemplateInstruction<1, 1, 1> { |
| 1379 public: | 1379 public: |
| 1380 explicit LDoubleToI(LOperand* value) { | 1380 explicit LDoubleToI(LOperand* value, LOperand* temp1) { |
| 1381 inputs_[0] = value; | 1381 inputs_[0] = value; |
| 1382 temps_[0] = temp1; |
| 1382 } | 1383 } |
| 1383 | 1384 |
| 1384 DECLARE_CONCRETE_INSTRUCTION(DoubleToI, "double-to-i") | 1385 DECLARE_CONCRETE_INSTRUCTION(DoubleToI, "double-to-i") |
| 1385 DECLARE_HYDROGEN_ACCESSOR(Change) | 1386 DECLARE_HYDROGEN_ACCESSOR(Change) |
| 1386 | 1387 |
| 1387 bool truncating() { return hydrogen()->CanTruncateToInt32(); } | 1388 bool truncating() { return hydrogen()->CanTruncateToInt32(); } |
| 1388 }; | 1389 }; |
| 1389 | 1390 |
| 1390 | 1391 |
| 1391 // Truncating conversion from a tagged value to an int32. | 1392 // Truncating conversion from a tagged value to an int32. |
| (...skipping 547 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1939 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 1940 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 1940 }; | 1941 }; |
| 1941 | 1942 |
| 1942 #undef DECLARE_HYDROGEN_ACCESSOR | 1943 #undef DECLARE_HYDROGEN_ACCESSOR |
| 1943 #undef DECLARE_INSTRUCTION | 1944 #undef DECLARE_INSTRUCTION |
| 1944 #undef DECLARE_CONCRETE_INSTRUCTION | 1945 #undef DECLARE_CONCRETE_INSTRUCTION |
| 1945 | 1946 |
| 1946 } } // namespace v8::internal | 1947 } } // namespace v8::internal |
| 1947 | 1948 |
| 1948 #endif // V8_ARM_LITHIUM_ARM_H_ | 1949 #endif // V8_ARM_LITHIUM_ARM_H_ |
| OLD | NEW |