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 1387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1398 explicit LNumberTagD(LOperand* value, LOperand* temp) { | 1398 explicit LNumberTagD(LOperand* value, LOperand* temp) { |
1399 inputs_[0] = value; | 1399 inputs_[0] = value; |
1400 temps_[0] = temp; | 1400 temps_[0] = temp; |
1401 } | 1401 } |
1402 | 1402 |
1403 DECLARE_CONCRETE_INSTRUCTION(NumberTagD, "number-tag-d") | 1403 DECLARE_CONCRETE_INSTRUCTION(NumberTagD, "number-tag-d") |
1404 }; | 1404 }; |
1405 | 1405 |
1406 | 1406 |
1407 // Sometimes truncating conversion from a tagged value to an int32. | 1407 // Sometimes truncating conversion from a tagged value to an int32. |
1408 class LDoubleToI: public LTemplateInstruction<1, 1, 1> { | 1408 class LDoubleToI: public LTemplateInstruction<1, 1, 0> { |
1409 public: | 1409 public: |
1410 LDoubleToI(LOperand* value, LOperand* temp) { | 1410 explicit LDoubleToI(LOperand* value) { |
1411 inputs_[0] = value; | 1411 inputs_[0] = value; |
1412 temps_[0] = temp; | |
1413 } | 1412 } |
1414 | 1413 |
1415 DECLARE_CONCRETE_INSTRUCTION(DoubleToI, "double-to-i") | 1414 DECLARE_CONCRETE_INSTRUCTION(DoubleToI, "double-to-i") |
1416 DECLARE_HYDROGEN_ACCESSOR(Change) | 1415 DECLARE_HYDROGEN_ACCESSOR(Change) |
1417 | 1416 |
1418 bool truncating() { return hydrogen()->CanTruncateToInt32(); } | 1417 bool truncating() { return hydrogen()->CanTruncateToInt32(); } |
1419 }; | 1418 }; |
1420 | 1419 |
1421 | 1420 |
1422 // Truncating conversion from a tagged value to an int32. | 1421 // Truncating conversion from a tagged value to an int32. |
(...skipping 591 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2014 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2013 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2015 }; | 2014 }; |
2016 | 2015 |
2017 #undef DECLARE_HYDROGEN_ACCESSOR | 2016 #undef DECLARE_HYDROGEN_ACCESSOR |
2018 #undef DECLARE_INSTRUCTION | 2017 #undef DECLARE_INSTRUCTION |
2019 #undef DECLARE_CONCRETE_INSTRUCTION | 2018 #undef DECLARE_CONCRETE_INSTRUCTION |
2020 | 2019 |
2021 } } // namespace v8::int | 2020 } } // namespace v8::int |
2022 | 2021 |
2023 #endif // V8_X64_LITHIUM_X64_H_ | 2022 #endif // V8_X64_LITHIUM_X64_H_ |
OLD | NEW |