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, 2, 0> { |
| 1984 public: |
| 1985 LAllocateObject(LOperand* context, LOperand* function) { |
| 1986 inputs_[0] = context; |
| 1987 inputs_[1] = function; |
| 1988 } |
| 1989 |
| 1990 DECLARE_CONCRETE_INSTRUCTION(AllocateObject, "allocate-object") |
| 1991 DECLARE_HYDROGEN_ACCESSOR(AllocateObject) |
| 1992 |
| 1993 LOperand* context() { return inputs_[0]; } |
| 1994 LOperand* function() { return inputs_[1]; } |
| 1995 }; |
| 1996 |
| 1997 |
1982 class LArrayLiteral: public LTemplateInstruction<1, 1, 0> { | 1998 class LArrayLiteral: public LTemplateInstruction<1, 1, 0> { |
1983 public: | 1999 public: |
1984 explicit LArrayLiteral(LOperand* context) { | 2000 explicit LArrayLiteral(LOperand* context) { |
1985 inputs_[0] = context; | 2001 inputs_[0] = context; |
1986 } | 2002 } |
1987 | 2003 |
1988 LOperand* context() { return inputs_[0]; } | 2004 LOperand* context() { return inputs_[0]; } |
1989 | 2005 |
1990 DECLARE_CONCRETE_INSTRUCTION(ArrayLiteral, "array-literal") | 2006 DECLARE_CONCRETE_INSTRUCTION(ArrayLiteral, "array-literal") |
1991 DECLARE_HYDROGEN_ACCESSOR(ArrayLiteral) | 2007 DECLARE_HYDROGEN_ACCESSOR(ArrayLiteral) |
(...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2387 | 2403 |
2388 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2404 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2389 }; | 2405 }; |
2390 | 2406 |
2391 #undef DECLARE_HYDROGEN_ACCESSOR | 2407 #undef DECLARE_HYDROGEN_ACCESSOR |
2392 #undef DECLARE_CONCRETE_INSTRUCTION | 2408 #undef DECLARE_CONCRETE_INSTRUCTION |
2393 | 2409 |
2394 } } // namespace v8::internal | 2410 } } // namespace v8::internal |
2395 | 2411 |
2396 #endif // V8_IA32_LITHIUM_IA32_H_ | 2412 #endif // V8_IA32_LITHIUM_IA32_H_ |
OLD | NEW |