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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 | 42 |
43 #define LITHIUM_ALL_INSTRUCTION_LIST(V) \ | 43 #define LITHIUM_ALL_INSTRUCTION_LIST(V) \ |
44 V(ControlInstruction) \ | 44 V(ControlInstruction) \ |
45 V(Call) \ | 45 V(Call) \ |
46 LITHIUM_CONCRETE_INSTRUCTION_LIST(V) | 46 LITHIUM_CONCRETE_INSTRUCTION_LIST(V) |
47 | 47 |
48 | 48 |
49 #define LITHIUM_CONCRETE_INSTRUCTION_LIST(V) \ | 49 #define LITHIUM_CONCRETE_INSTRUCTION_LIST(V) \ |
50 V(AccessArgumentsAt) \ | 50 V(AccessArgumentsAt) \ |
51 V(AddI) \ | 51 V(AddI) \ |
| 52 V(AllocateObject) \ |
52 V(ApplyArguments) \ | 53 V(ApplyArguments) \ |
53 V(ArgumentsElements) \ | 54 V(ArgumentsElements) \ |
54 V(ArgumentsLength) \ | 55 V(ArgumentsLength) \ |
55 V(ArithmeticD) \ | 56 V(ArithmeticD) \ |
56 V(ArithmeticT) \ | 57 V(ArithmeticT) \ |
57 V(ArrayLiteral) \ | 58 V(ArrayLiteral) \ |
58 V(BitI) \ | 59 V(BitI) \ |
59 V(BitNotI) \ | 60 V(BitNotI) \ |
60 V(BoundsCheck) \ | 61 V(BoundsCheck) \ |
61 V(Branch) \ | 62 V(Branch) \ |
(...skipping 1840 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1902 inputs_[0] = value; | 1903 inputs_[0] = value; |
1903 temps_[0] = temp; | 1904 temps_[0] = temp; |
1904 } | 1905 } |
1905 | 1906 |
1906 LOperand* unclamped() { return inputs_[0]; } | 1907 LOperand* unclamped() { return inputs_[0]; } |
1907 | 1908 |
1908 DECLARE_CONCRETE_INSTRUCTION(ClampTToUint8, "clamp-t-to-uint8") | 1909 DECLARE_CONCRETE_INSTRUCTION(ClampTToUint8, "clamp-t-to-uint8") |
1909 }; | 1910 }; |
1910 | 1911 |
1911 | 1912 |
| 1913 class LAllocateObject: public LTemplateInstruction<1, 1, 0> { |
| 1914 public: |
| 1915 explicit LAllocateObject(LOperand* function) { |
| 1916 inputs_[0] = function; |
| 1917 } |
| 1918 |
| 1919 DECLARE_CONCRETE_INSTRUCTION(AllocateObject, "allocate-object") |
| 1920 DECLARE_HYDROGEN_ACCESSOR(AllocateObject) |
| 1921 |
| 1922 LOperand* function() { return inputs_[0]; } |
| 1923 }; |
| 1924 |
| 1925 |
1912 class LArrayLiteral: public LTemplateInstruction<1, 0, 0> { | 1926 class LArrayLiteral: public LTemplateInstruction<1, 0, 0> { |
1913 public: | 1927 public: |
1914 DECLARE_CONCRETE_INSTRUCTION(ArrayLiteral, "array-literal") | 1928 DECLARE_CONCRETE_INSTRUCTION(ArrayLiteral, "array-literal") |
1915 DECLARE_HYDROGEN_ACCESSOR(ArrayLiteral) | 1929 DECLARE_HYDROGEN_ACCESSOR(ArrayLiteral) |
1916 }; | 1930 }; |
1917 | 1931 |
1918 | 1932 |
1919 class LObjectLiteralFast: public LTemplateInstruction<1, 0, 0> { | 1933 class LObjectLiteralFast: public LTemplateInstruction<1, 0, 0> { |
1920 public: | 1934 public: |
1921 DECLARE_CONCRETE_INSTRUCTION(ObjectLiteralFast, "object-literal-fast") | 1935 DECLARE_CONCRETE_INSTRUCTION(ObjectLiteralFast, "object-literal-fast") |
(...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2271 | 2285 |
2272 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2286 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2273 }; | 2287 }; |
2274 | 2288 |
2275 #undef DECLARE_HYDROGEN_ACCESSOR | 2289 #undef DECLARE_HYDROGEN_ACCESSOR |
2276 #undef DECLARE_CONCRETE_INSTRUCTION | 2290 #undef DECLARE_CONCRETE_INSTRUCTION |
2277 | 2291 |
2278 } } // namespace v8::internal | 2292 } } // namespace v8::internal |
2279 | 2293 |
2280 #endif // V8_MIPS_LITHIUM_MIPS_H_ | 2294 #endif // V8_MIPS_LITHIUM_MIPS_H_ |
OLD | NEW |