OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 1908 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1919 temps_[0] = temp; | 1919 temps_[0] = temp; |
1920 } | 1920 } |
1921 | 1921 |
1922 LOperand* value() { return inputs_[0]; } | 1922 LOperand* value() { return inputs_[0]; } |
1923 LOperand* temp() { return temps_[0]; } | 1923 LOperand* temp() { return temps_[0]; } |
1924 | 1924 |
1925 DECLARE_CONCRETE_INSTRUCTION(Uint32ToDouble, "uint32-to-double") | 1925 DECLARE_CONCRETE_INSTRUCTION(Uint32ToDouble, "uint32-to-double") |
1926 }; | 1926 }; |
1927 | 1927 |
1928 | 1928 |
1929 class LNumberTagI: public LTemplateInstruction<1, 1, 0> { | 1929 class LNumberTagI: public LTemplateInstruction<1, 1, 1> { |
1930 public: | 1930 public: |
1931 explicit LNumberTagI(LOperand* value) { | 1931 explicit LNumberTagI(LOperand* value, LOperand* temp) { |
1932 inputs_[0] = value; | 1932 inputs_[0] = value; |
| 1933 temps_[0] = temp; |
1933 } | 1934 } |
1934 | 1935 |
1935 LOperand* value() { return inputs_[0]; } | 1936 LOperand* value() { return inputs_[0]; } |
| 1937 LOperand* temp() { return temps_[0]; } |
1936 | 1938 |
1937 DECLARE_CONCRETE_INSTRUCTION(NumberTagI, "number-tag-i") | 1939 DECLARE_CONCRETE_INSTRUCTION(NumberTagI, "number-tag-i") |
1938 }; | 1940 }; |
1939 | 1941 |
1940 | 1942 |
1941 class LNumberTagU: public LTemplateInstruction<1, 1, 1> { | 1943 class LNumberTagU: public LTemplateInstruction<1, 1, 1> { |
1942 public: | 1944 public: |
1943 explicit LNumberTagU(LOperand* value, LOperand* temp) { | 1945 explicit LNumberTagU(LOperand* value, LOperand* temp) { |
1944 inputs_[0] = value; | 1946 inputs_[0] = value; |
1945 temps_[0] = temp; | 1947 temps_[0] = temp; |
(...skipping 760 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2706 | 2708 |
2707 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2709 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2708 }; | 2710 }; |
2709 | 2711 |
2710 #undef DECLARE_HYDROGEN_ACCESSOR | 2712 #undef DECLARE_HYDROGEN_ACCESSOR |
2711 #undef DECLARE_CONCRETE_INSTRUCTION | 2713 #undef DECLARE_CONCRETE_INSTRUCTION |
2712 | 2714 |
2713 } } // namespace v8::int | 2715 } } // namespace v8::int |
2714 | 2716 |
2715 #endif // V8_X64_LITHIUM_X64_H_ | 2717 #endif // V8_X64_LITHIUM_X64_H_ |
OLD | NEW |