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 #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; \ |
194 virtual const char* Mnemonic() const V8_FINAL V8_OVERRIDE { \ | 195 virtual const char* Mnemonic() const V8_FINAL V8_OVERRIDE { \ |
(...skipping 1850 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2045 explicit LUint32ToDouble(LOperand* value) { | 2046 explicit LUint32ToDouble(LOperand* value) { |
2046 inputs_[0] = value; | 2047 inputs_[0] = value; |
2047 } | 2048 } |
2048 | 2049 |
2049 LOperand* value() { return inputs_[0]; } | 2050 LOperand* value() { return inputs_[0]; } |
2050 | 2051 |
2051 DECLARE_CONCRETE_INSTRUCTION(Uint32ToDouble, "uint32-to-double") | 2052 DECLARE_CONCRETE_INSTRUCTION(Uint32ToDouble, "uint32-to-double") |
2052 }; | 2053 }; |
2053 | 2054 |
2054 | 2055 |
| 2056 class LUint32ToSmi V8_FINAL : public LTemplateInstruction<1, 1, 0> { |
| 2057 public: |
| 2058 explicit LUint32ToSmi(LOperand* value) { |
| 2059 inputs_[0] = value; |
| 2060 } |
| 2061 |
| 2062 LOperand* value() { return inputs_[0]; } |
| 2063 |
| 2064 DECLARE_CONCRETE_INSTRUCTION(Uint32ToSmi, "uint32-to-smi") |
| 2065 DECLARE_HYDROGEN_ACCESSOR(Change) |
| 2066 }; |
| 2067 |
| 2068 |
2055 class LNumberTagI V8_FINAL : public LTemplateInstruction<1, 1, 0> { | 2069 class LNumberTagI V8_FINAL : public LTemplateInstruction<1, 1, 0> { |
2056 public: | 2070 public: |
2057 explicit LNumberTagI(LOperand* value) { | 2071 explicit LNumberTagI(LOperand* value) { |
2058 inputs_[0] = value; | 2072 inputs_[0] = value; |
2059 } | 2073 } |
2060 | 2074 |
2061 LOperand* value() { return inputs_[0]; } | 2075 LOperand* value() { return inputs_[0]; } |
2062 | 2076 |
2063 DECLARE_CONCRETE_INSTRUCTION(NumberTagI, "number-tag-i") | 2077 DECLARE_CONCRETE_INSTRUCTION(NumberTagI, "number-tag-i") |
2064 }; | 2078 }; |
(...skipping 794 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2859 | 2873 |
2860 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2874 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2861 }; | 2875 }; |
2862 | 2876 |
2863 #undef DECLARE_HYDROGEN_ACCESSOR | 2877 #undef DECLARE_HYDROGEN_ACCESSOR |
2864 #undef DECLARE_CONCRETE_INSTRUCTION | 2878 #undef DECLARE_CONCRETE_INSTRUCTION |
2865 | 2879 |
2866 } } // namespace v8::internal | 2880 } } // namespace v8::internal |
2867 | 2881 |
2868 #endif // V8_MIPS_LITHIUM_MIPS_H_ | 2882 #endif // V8_MIPS_LITHIUM_MIPS_H_ |
OLD | NEW |