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 1919 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1930 inputs_[0] = value; | 1930 inputs_[0] = value; |
1931 } | 1931 } |
1932 | 1932 |
1933 LOperand* value() { return inputs_[0]; } | 1933 LOperand* value() { return inputs_[0]; } |
1934 | 1934 |
1935 DECLARE_CONCRETE_INSTRUCTION(Uint32ToSmi, "uint32-to-smi") | 1935 DECLARE_CONCRETE_INSTRUCTION(Uint32ToSmi, "uint32-to-smi") |
1936 DECLARE_HYDROGEN_ACCESSOR(Change) | 1936 DECLARE_HYDROGEN_ACCESSOR(Change) |
1937 }; | 1937 }; |
1938 | 1938 |
1939 | 1939 |
1940 class LNumberTagI V8_FINAL : public LTemplateInstruction<1, 1, 0> { | 1940 class LNumberTagI V8_FINAL : public LTemplateInstruction<1, 1, 1> { |
1941 public: | 1941 public: |
1942 explicit LNumberTagI(LOperand* value) { | 1942 LNumberTagI(LOperand* value, LOperand* temp) { |
1943 inputs_[0] = value; | |
1944 } | |
1945 | |
1946 LOperand* value() { return inputs_[0]; } | |
1947 | |
1948 DECLARE_CONCRETE_INSTRUCTION(NumberTagI, "number-tag-i") | |
1949 }; | |
1950 | |
1951 | |
1952 class LNumberTagU V8_FINAL : public LTemplateInstruction<1, 1, 1> { | |
1953 public: | |
1954 LNumberTagU(LOperand* value, LOperand* temp) { | |
1955 inputs_[0] = value; | 1943 inputs_[0] = value; |
1956 temps_[0] = temp; | 1944 temps_[0] = temp; |
1957 } | 1945 } |
1958 | 1946 |
1959 LOperand* value() { return inputs_[0]; } | 1947 LOperand* value() { return inputs_[0]; } |
1960 LOperand* temp() { return temps_[0]; } | 1948 LOperand* temp() { return temps_[0]; } |
1961 | 1949 |
| 1950 DECLARE_CONCRETE_INSTRUCTION(NumberTagI, "number-tag-i") |
| 1951 }; |
| 1952 |
| 1953 |
| 1954 class LNumberTagU V8_FINAL : public LTemplateInstruction<1, 1, 2> { |
| 1955 public: |
| 1956 LNumberTagU(LOperand* value, LOperand* temp1, LOperand* temp2) { |
| 1957 inputs_[0] = value; |
| 1958 temps_[0] = temp1; |
| 1959 temps_[1] = temp2; |
| 1960 } |
| 1961 |
| 1962 LOperand* value() { return inputs_[0]; } |
| 1963 LOperand* temp1() { return temps_[0]; } |
| 1964 LOperand* temp2() { return temps_[1]; } |
| 1965 |
1962 DECLARE_CONCRETE_INSTRUCTION(NumberTagU, "number-tag-u") | 1966 DECLARE_CONCRETE_INSTRUCTION(NumberTagU, "number-tag-u") |
1963 }; | 1967 }; |
1964 | 1968 |
1965 | 1969 |
1966 class LNumberTagD V8_FINAL : public LTemplateInstruction<1, 1, 1> { | 1970 class LNumberTagD V8_FINAL : public LTemplateInstruction<1, 1, 1> { |
1967 public: | 1971 public: |
1968 LNumberTagD(LOperand* value, LOperand* temp) { | 1972 LNumberTagD(LOperand* value, LOperand* temp) { |
1969 inputs_[0] = value; | 1973 inputs_[0] = value; |
1970 temps_[0] = temp; | 1974 temps_[0] = temp; |
1971 } | 1975 } |
(...skipping 783 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2755 | 2759 |
2756 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2760 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2757 }; | 2761 }; |
2758 | 2762 |
2759 #undef DECLARE_HYDROGEN_ACCESSOR | 2763 #undef DECLARE_HYDROGEN_ACCESSOR |
2760 #undef DECLARE_CONCRETE_INSTRUCTION | 2764 #undef DECLARE_CONCRETE_INSTRUCTION |
2761 | 2765 |
2762 } } // namespace v8::internal | 2766 } } // namespace v8::internal |
2763 | 2767 |
2764 #endif // V8_IA32_LITHIUM_IA32_H_ | 2768 #endif // V8_IA32_LITHIUM_IA32_H_ |
OLD | NEW |