| 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 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 V(SubI) \ | 175 V(SubI) \ |
| 176 V(TaggedToI) \ | 176 V(TaggedToI) \ |
| 177 V(ThisFunction) \ | 177 V(ThisFunction) \ |
| 178 V(Throw) \ | 178 V(Throw) \ |
| 179 V(ToFastProperties) \ | 179 V(ToFastProperties) \ |
| 180 V(TransitionElementsKind) \ | 180 V(TransitionElementsKind) \ |
| 181 V(TrapAllocationMemento) \ | 181 V(TrapAllocationMemento) \ |
| 182 V(Typeof) \ | 182 V(Typeof) \ |
| 183 V(TypeofIsAndBranch) \ | 183 V(TypeofIsAndBranch) \ |
| 184 V(Uint32ToDouble) \ | 184 V(Uint32ToDouble) \ |
| 185 V(Uint32ToSmi) \ |
| 185 V(UnknownOSRValue) \ | 186 V(UnknownOSRValue) \ |
| 186 V(ValueOf) \ | 187 V(ValueOf) \ |
| 187 V(WrapReceiver) | 188 V(WrapReceiver) |
| 188 | 189 |
| 189 | 190 |
| 190 #define DECLARE_CONCRETE_INSTRUCTION(type, mnemonic) \ | 191 #define DECLARE_CONCRETE_INSTRUCTION(type, mnemonic) \ |
| 191 virtual Opcode opcode() const V8_FINAL V8_OVERRIDE { \ | 192 virtual Opcode opcode() const V8_FINAL V8_OVERRIDE { \ |
| 192 return LInstruction::k##type; \ | 193 return LInstruction::k##type; \ |
| 193 } \ | 194 } \ |
| 194 virtual void CompileToNative(LCodeGen* generator) V8_FINAL V8_OVERRIDE; \ | 195 virtual void CompileToNative(LCodeGen* generator) V8_FINAL V8_OVERRIDE; \ |
| (...skipping 1765 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1960 temps_[0] = temp; | 1961 temps_[0] = temp; |
| 1961 } | 1962 } |
| 1962 | 1963 |
| 1963 LOperand* value() { return inputs_[0]; } | 1964 LOperand* value() { return inputs_[0]; } |
| 1964 LOperand* temp() { return temps_[0]; } | 1965 LOperand* temp() { return temps_[0]; } |
| 1965 | 1966 |
| 1966 DECLARE_CONCRETE_INSTRUCTION(Uint32ToDouble, "uint32-to-double") | 1967 DECLARE_CONCRETE_INSTRUCTION(Uint32ToDouble, "uint32-to-double") |
| 1967 }; | 1968 }; |
| 1968 | 1969 |
| 1969 | 1970 |
| 1971 class LUint32ToSmi V8_FINAL : public LTemplateInstruction<1, 1, 0> { |
| 1972 public: |
| 1973 explicit LUint32ToSmi(LOperand* value) { |
| 1974 inputs_[0] = value; |
| 1975 } |
| 1976 |
| 1977 LOperand* value() { return inputs_[0]; } |
| 1978 |
| 1979 DECLARE_CONCRETE_INSTRUCTION(Uint32ToSmi, "uint32-to-smi") |
| 1980 DECLARE_HYDROGEN_ACCESSOR(Change) |
| 1981 }; |
| 1982 |
| 1983 |
| 1970 class LNumberTagI V8_FINAL : public LTemplateInstruction<1, 1, 0> { | 1984 class LNumberTagI V8_FINAL : public LTemplateInstruction<1, 1, 0> { |
| 1971 public: | 1985 public: |
| 1972 explicit LNumberTagI(LOperand* value) { | 1986 explicit LNumberTagI(LOperand* value) { |
| 1973 inputs_[0] = value; | 1987 inputs_[0] = value; |
| 1974 } | 1988 } |
| 1975 | 1989 |
| 1976 LOperand* value() { return inputs_[0]; } | 1990 LOperand* value() { return inputs_[0]; } |
| 1977 | 1991 |
| 1978 DECLARE_CONCRETE_INSTRUCTION(NumberTagI, "number-tag-i") | 1992 DECLARE_CONCRETE_INSTRUCTION(NumberTagI, "number-tag-i") |
| 1979 }; | 1993 }; |
| (...skipping 739 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2719 | 2733 |
| 2720 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2734 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2721 }; | 2735 }; |
| 2722 | 2736 |
| 2723 #undef DECLARE_HYDROGEN_ACCESSOR | 2737 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2724 #undef DECLARE_CONCRETE_INSTRUCTION | 2738 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2725 | 2739 |
| 2726 } } // namespace v8::int | 2740 } } // namespace v8::int |
| 2727 | 2741 |
| 2728 #endif // V8_X64_LITHIUM_X64_H_ | 2742 #endif // V8_X64_LITHIUM_X64_H_ |
| OLD | NEW |