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 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 V(RSubI) \ | 177 V(RSubI) \ |
178 V(TaggedToI) \ | 178 V(TaggedToI) \ |
179 V(ThisFunction) \ | 179 V(ThisFunction) \ |
180 V(Throw) \ | 180 V(Throw) \ |
181 V(ToFastProperties) \ | 181 V(ToFastProperties) \ |
182 V(TransitionElementsKind) \ | 182 V(TransitionElementsKind) \ |
183 V(TrapAllocationMemento) \ | 183 V(TrapAllocationMemento) \ |
184 V(Typeof) \ | 184 V(Typeof) \ |
185 V(TypeofIsAndBranch) \ | 185 V(TypeofIsAndBranch) \ |
186 V(Uint32ToDouble) \ | 186 V(Uint32ToDouble) \ |
| 187 V(Uint32ToSmi) \ |
187 V(UnknownOSRValue) \ | 188 V(UnknownOSRValue) \ |
188 V(ValueOf) \ | 189 V(ValueOf) \ |
189 V(WrapReceiver) | 190 V(WrapReceiver) |
190 | 191 |
191 | 192 |
192 #define DECLARE_CONCRETE_INSTRUCTION(type, mnemonic) \ | 193 #define DECLARE_CONCRETE_INSTRUCTION(type, mnemonic) \ |
193 virtual Opcode opcode() const { return LInstruction::k##type; } \ | 194 virtual Opcode opcode() const { return LInstruction::k##type; } \ |
194 virtual void CompileToNative(LCodeGen* generator); \ | 195 virtual void CompileToNative(LCodeGen* generator); \ |
195 virtual const char* Mnemonic() const { return mnemonic; } \ | 196 virtual const char* Mnemonic() const { return mnemonic; } \ |
196 static L##type* cast(LInstruction* instr) { \ | 197 static L##type* cast(LInstruction* instr) { \ |
(...skipping 1783 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1980 explicit LUint32ToDouble(LOperand* value) { | 1981 explicit LUint32ToDouble(LOperand* value) { |
1981 inputs_[0] = value; | 1982 inputs_[0] = value; |
1982 } | 1983 } |
1983 | 1984 |
1984 LOperand* value() { return inputs_[0]; } | 1985 LOperand* value() { return inputs_[0]; } |
1985 | 1986 |
1986 DECLARE_CONCRETE_INSTRUCTION(Uint32ToDouble, "uint32-to-double") | 1987 DECLARE_CONCRETE_INSTRUCTION(Uint32ToDouble, "uint32-to-double") |
1987 }; | 1988 }; |
1988 | 1989 |
1989 | 1990 |
| 1991 class LUint32ToSmi: public LTemplateInstruction<1, 1, 0> { |
| 1992 public: |
| 1993 explicit LUint32ToSmi(LOperand* value) { |
| 1994 inputs_[0] = value; |
| 1995 } |
| 1996 |
| 1997 LOperand* value() { return inputs_[0]; } |
| 1998 |
| 1999 DECLARE_CONCRETE_INSTRUCTION(Uint32ToSmi, "uint32-to-smi") |
| 2000 DECLARE_HYDROGEN_ACCESSOR(Change) |
| 2001 }; |
| 2002 |
| 2003 |
1990 class LNumberTagI: public LTemplateInstruction<1, 1, 0> { | 2004 class LNumberTagI: public LTemplateInstruction<1, 1, 0> { |
1991 public: | 2005 public: |
1992 explicit LNumberTagI(LOperand* value) { | 2006 explicit LNumberTagI(LOperand* value) { |
1993 inputs_[0] = value; | 2007 inputs_[0] = value; |
1994 } | 2008 } |
1995 | 2009 |
1996 LOperand* value() { return inputs_[0]; } | 2010 LOperand* value() { return inputs_[0]; } |
1997 | 2011 |
1998 DECLARE_CONCRETE_INSTRUCTION(NumberTagI, "number-tag-i") | 2012 DECLARE_CONCRETE_INSTRUCTION(NumberTagI, "number-tag-i") |
1999 }; | 2013 }; |
(...skipping 761 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2761 | 2775 |
2762 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2776 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2763 }; | 2777 }; |
2764 | 2778 |
2765 #undef DECLARE_HYDROGEN_ACCESSOR | 2779 #undef DECLARE_HYDROGEN_ACCESSOR |
2766 #undef DECLARE_CONCRETE_INSTRUCTION | 2780 #undef DECLARE_CONCRETE_INSTRUCTION |
2767 | 2781 |
2768 } } // namespace v8::internal | 2782 } } // namespace v8::internal |
2769 | 2783 |
2770 #endif // V8_ARM_LITHIUM_ARM_H_ | 2784 #endif // V8_ARM_LITHIUM_ARM_H_ |
OLD | NEW |