| 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 25 matching lines...) Expand all Loading... |
| 36 | 36 |
| 37 namespace v8 { | 37 namespace v8 { |
| 38 namespace internal { | 38 namespace internal { |
| 39 | 39 |
| 40 // Forward declarations. | 40 // Forward declarations. |
| 41 class LCodeGen; | 41 class LCodeGen; |
| 42 | 42 |
| 43 #define LITHIUM_CONCRETE_INSTRUCTION_LIST(V) \ | 43 #define LITHIUM_CONCRETE_INSTRUCTION_LIST(V) \ |
| 44 V(AccessArgumentsAt) \ | 44 V(AccessArgumentsAt) \ |
| 45 V(AddI) \ | 45 V(AddI) \ |
| 46 V(AllocateObject) \ |
| 46 V(ApplyArguments) \ | 47 V(ApplyArguments) \ |
| 47 V(ArgumentsElements) \ | 48 V(ArgumentsElements) \ |
| 48 V(ArgumentsLength) \ | 49 V(ArgumentsLength) \ |
| 49 V(ArithmeticD) \ | 50 V(ArithmeticD) \ |
| 50 V(ArithmeticT) \ | 51 V(ArithmeticT) \ |
| 51 V(ArrayLiteral) \ | 52 V(ArrayLiteral) \ |
| 52 V(BitI) \ | 53 V(BitI) \ |
| 53 V(BitNotI) \ | 54 V(BitNotI) \ |
| 54 V(BoundsCheck) \ | 55 V(BoundsCheck) \ |
| 55 V(Branch) \ | 56 V(Branch) \ |
| (...skipping 1916 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1972 class LCheckNonSmi: public LTemplateInstruction<0, 1, 0> { | 1973 class LCheckNonSmi: public LTemplateInstruction<0, 1, 0> { |
| 1973 public: | 1974 public: |
| 1974 explicit LCheckNonSmi(LOperand* value) { | 1975 explicit LCheckNonSmi(LOperand* value) { |
| 1975 inputs_[0] = value; | 1976 inputs_[0] = value; |
| 1976 } | 1977 } |
| 1977 | 1978 |
| 1978 DECLARE_CONCRETE_INSTRUCTION(CheckNonSmi, "check-non-smi") | 1979 DECLARE_CONCRETE_INSTRUCTION(CheckNonSmi, "check-non-smi") |
| 1979 }; | 1980 }; |
| 1980 | 1981 |
| 1981 | 1982 |
| 1983 class LAllocateObject: public LTemplateInstruction<1, 1, 0> { |
| 1984 public: |
| 1985 LAllocateObject(LOperand* context) { |
| 1986 inputs_[0] = context; |
| 1987 } |
| 1988 |
| 1989 DECLARE_CONCRETE_INSTRUCTION(AllocateObject, "allocate-object") |
| 1990 DECLARE_HYDROGEN_ACCESSOR(AllocateObject) |
| 1991 |
| 1992 LOperand* context() { return inputs_[0]; } |
| 1993 }; |
| 1994 |
| 1995 |
| 1982 class LArrayLiteral: public LTemplateInstruction<1, 1, 0> { | 1996 class LArrayLiteral: public LTemplateInstruction<1, 1, 0> { |
| 1983 public: | 1997 public: |
| 1984 explicit LArrayLiteral(LOperand* context) { | 1998 explicit LArrayLiteral(LOperand* context) { |
| 1985 inputs_[0] = context; | 1999 inputs_[0] = context; |
| 1986 } | 2000 } |
| 1987 | 2001 |
| 1988 LOperand* context() { return inputs_[0]; } | 2002 LOperand* context() { return inputs_[0]; } |
| 1989 | 2003 |
| 1990 DECLARE_CONCRETE_INSTRUCTION(ArrayLiteral, "array-literal") | 2004 DECLARE_CONCRETE_INSTRUCTION(ArrayLiteral, "array-literal") |
| 1991 DECLARE_HYDROGEN_ACCESSOR(ArrayLiteral) | 2005 DECLARE_HYDROGEN_ACCESSOR(ArrayLiteral) |
| (...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2387 | 2401 |
| 2388 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2402 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2389 }; | 2403 }; |
| 2390 | 2404 |
| 2391 #undef DECLARE_HYDROGEN_ACCESSOR | 2405 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2392 #undef DECLARE_CONCRETE_INSTRUCTION | 2406 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2393 | 2407 |
| 2394 } } // namespace v8::internal | 2408 } } // namespace v8::internal |
| 2395 | 2409 |
| 2396 #endif // V8_IA32_LITHIUM_IA32_H_ | 2410 #endif // V8_IA32_LITHIUM_IA32_H_ |
| OLD | NEW |