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 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 V(SubI) \ | 174 V(SubI) \ |
175 V(TaggedToI) \ | 175 V(TaggedToI) \ |
176 V(ThisFunction) \ | 176 V(ThisFunction) \ |
177 V(Throw) \ | 177 V(Throw) \ |
178 V(ToFastProperties) \ | 178 V(ToFastProperties) \ |
179 V(TransitionElementsKind) \ | 179 V(TransitionElementsKind) \ |
180 V(TrapAllocationMemento) \ | 180 V(TrapAllocationMemento) \ |
181 V(Typeof) \ | 181 V(Typeof) \ |
182 V(TypeofIsAndBranch) \ | 182 V(TypeofIsAndBranch) \ |
183 V(Uint32ToDouble) \ | 183 V(Uint32ToDouble) \ |
| 184 V(Uint32ToSmi) \ |
184 V(UnknownOSRValue) \ | 185 V(UnknownOSRValue) \ |
185 V(ValueOf) \ | 186 V(ValueOf) \ |
186 V(WrapReceiver) | 187 V(WrapReceiver) |
187 | 188 |
188 | 189 |
189 #define DECLARE_CONCRETE_INSTRUCTION(type, mnemonic) \ | 190 #define DECLARE_CONCRETE_INSTRUCTION(type, mnemonic) \ |
190 virtual Opcode opcode() const V8_FINAL V8_OVERRIDE { \ | 191 virtual Opcode opcode() const V8_FINAL V8_OVERRIDE { \ |
191 return LInstruction::k##type; \ | 192 return LInstruction::k##type; \ |
192 } \ | 193 } \ |
193 virtual void CompileToNative(LCodeGen* generator) V8_FINAL V8_OVERRIDE; \ | 194 virtual void CompileToNative(LCodeGen* generator) V8_FINAL V8_OVERRIDE; \ |
(...skipping 1742 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1936 temps_[0] = temp; | 1937 temps_[0] = temp; |
1937 } | 1938 } |
1938 | 1939 |
1939 LOperand* value() { return inputs_[0]; } | 1940 LOperand* value() { return inputs_[0]; } |
1940 LOperand* temp() { return temps_[0]; } | 1941 LOperand* temp() { return temps_[0]; } |
1941 | 1942 |
1942 DECLARE_CONCRETE_INSTRUCTION(Uint32ToDouble, "uint32-to-double") | 1943 DECLARE_CONCRETE_INSTRUCTION(Uint32ToDouble, "uint32-to-double") |
1943 }; | 1944 }; |
1944 | 1945 |
1945 | 1946 |
| 1947 class LUint32ToSmi V8_FINAL : public LTemplateInstruction<1, 1, 0> { |
| 1948 public: |
| 1949 explicit LUint32ToSmi(LOperand* value) { |
| 1950 inputs_[0] = value; |
| 1951 } |
| 1952 |
| 1953 LOperand* value() { return inputs_[0]; } |
| 1954 |
| 1955 DECLARE_CONCRETE_INSTRUCTION(Uint32ToSmi, "uint32-to-smi") |
| 1956 DECLARE_HYDROGEN_ACCESSOR(Change) |
| 1957 }; |
| 1958 |
| 1959 |
1946 class LNumberTagI V8_FINAL : public LTemplateInstruction<1, 1, 0> { | 1960 class LNumberTagI V8_FINAL : public LTemplateInstruction<1, 1, 0> { |
1947 public: | 1961 public: |
1948 explicit LNumberTagI(LOperand* value) { | 1962 explicit LNumberTagI(LOperand* value) { |
1949 inputs_[0] = value; | 1963 inputs_[0] = value; |
1950 } | 1964 } |
1951 | 1965 |
1952 LOperand* value() { return inputs_[0]; } | 1966 LOperand* value() { return inputs_[0]; } |
1953 | 1967 |
1954 DECLARE_CONCRETE_INSTRUCTION(NumberTagI, "number-tag-i") | 1968 DECLARE_CONCRETE_INSTRUCTION(NumberTagI, "number-tag-i") |
1955 }; | 1969 }; |
(...skipping 741 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2697 | 2711 |
2698 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2712 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2699 }; | 2713 }; |
2700 | 2714 |
2701 #undef DECLARE_HYDROGEN_ACCESSOR | 2715 #undef DECLARE_HYDROGEN_ACCESSOR |
2702 #undef DECLARE_CONCRETE_INSTRUCTION | 2716 #undef DECLARE_CONCRETE_INSTRUCTION |
2703 | 2717 |
2704 } } // namespace v8::int | 2718 } } // namespace v8::int |
2705 | 2719 |
2706 #endif // V8_X64_LITHIUM_X64_H_ | 2720 #endif // V8_X64_LITHIUM_X64_H_ |
OLD | NEW |