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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 V(IsUndetectableAndBranch) \ | 118 V(IsUndetectableAndBranch) \ |
119 V(JSArrayLength) \ | 119 V(JSArrayLength) \ |
120 V(Label) \ | 120 V(Label) \ |
121 V(LazyBailout) \ | 121 V(LazyBailout) \ |
122 V(LoadContextSlot) \ | 122 V(LoadContextSlot) \ |
123 V(LoadElements) \ | 123 V(LoadElements) \ |
124 V(LoadExternalArrayPointer) \ | 124 V(LoadExternalArrayPointer) \ |
125 V(LoadFunctionPrototype) \ | 125 V(LoadFunctionPrototype) \ |
126 V(LoadGlobalCell) \ | 126 V(LoadGlobalCell) \ |
127 V(LoadGlobalGeneric) \ | 127 V(LoadGlobalGeneric) \ |
128 V(LoadKeyedFastDoubleElement) \ | 128 V(LoadKeyed) \ |
129 V(LoadKeyedFastElement) \ | |
130 V(LoadKeyedGeneric) \ | 129 V(LoadKeyedGeneric) \ |
131 V(LoadKeyedSpecializedArrayElement) \ | |
132 V(LoadNamedField) \ | 130 V(LoadNamedField) \ |
133 V(LoadNamedFieldPolymorphic) \ | 131 V(LoadNamedFieldPolymorphic) \ |
134 V(LoadNamedGeneric) \ | 132 V(LoadNamedGeneric) \ |
135 V(MapEnumLength) \ | 133 V(MapEnumLength) \ |
136 V(MathFloorOfDiv) \ | 134 V(MathFloorOfDiv) \ |
137 V(MathMinMax) \ | 135 V(MathMinMax) \ |
138 V(ModI) \ | 136 V(ModI) \ |
139 V(MulI) \ | 137 V(MulI) \ |
140 V(NumberTagD) \ | 138 V(NumberTagD) \ |
141 V(NumberTagI) \ | 139 V(NumberTagI) \ |
142 V(NumberTagU) \ | 140 V(NumberTagU) \ |
143 V(NumberUntagD) \ | 141 V(NumberUntagD) \ |
144 V(ObjectLiteral) \ | 142 V(ObjectLiteral) \ |
145 V(OsrEntry) \ | 143 V(OsrEntry) \ |
146 V(OuterContext) \ | 144 V(OuterContext) \ |
147 V(Parameter) \ | 145 V(Parameter) \ |
148 V(Power) \ | 146 V(Power) \ |
149 V(PushArgument) \ | 147 V(PushArgument) \ |
150 V(Random) \ | 148 V(Random) \ |
151 V(RegExpLiteral) \ | 149 V(RegExpLiteral) \ |
152 V(Return) \ | 150 V(Return) \ |
153 V(ShiftI) \ | 151 V(ShiftI) \ |
154 V(SmiTag) \ | 152 V(SmiTag) \ |
155 V(SmiUntag) \ | 153 V(SmiUntag) \ |
156 V(StackCheck) \ | 154 V(StackCheck) \ |
157 V(StoreContextSlot) \ | 155 V(StoreContextSlot) \ |
158 V(StoreGlobalCell) \ | 156 V(StoreGlobalCell) \ |
159 V(StoreGlobalGeneric) \ | 157 V(StoreGlobalGeneric) \ |
160 V(StoreKeyedFastDoubleElement) \ | 158 V(StoreKeyed) \ |
161 V(StoreKeyedFastElement) \ | |
162 V(StoreKeyedGeneric) \ | 159 V(StoreKeyedGeneric) \ |
163 V(StoreKeyedSpecializedArrayElement) \ | |
164 V(StoreNamedField) \ | 160 V(StoreNamedField) \ |
165 V(StoreNamedGeneric) \ | 161 V(StoreNamedGeneric) \ |
166 V(StringAdd) \ | 162 V(StringAdd) \ |
167 V(StringCharCodeAt) \ | 163 V(StringCharCodeAt) \ |
168 V(StringCharFromCode) \ | 164 V(StringCharFromCode) \ |
169 V(StringCompareAndBranch) \ | 165 V(StringCompareAndBranch) \ |
170 V(StringLength) \ | 166 V(StringLength) \ |
171 V(SubI) \ | 167 V(SubI) \ |
172 V(TaggedToI) \ | 168 V(TaggedToI) \ |
173 V(ThisFunction) \ | 169 V(ThisFunction) \ |
(...skipping 1176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1350 inputs_[0] = object; | 1346 inputs_[0] = object; |
1351 } | 1347 } |
1352 | 1348 |
1353 LOperand* object() { return inputs_[0]; } | 1349 LOperand* object() { return inputs_[0]; } |
1354 | 1350 |
1355 DECLARE_CONCRETE_INSTRUCTION(LoadExternalArrayPointer, | 1351 DECLARE_CONCRETE_INSTRUCTION(LoadExternalArrayPointer, |
1356 "load-external-array-pointer") | 1352 "load-external-array-pointer") |
1357 }; | 1353 }; |
1358 | 1354 |
1359 | 1355 |
1360 class LLoadKeyedFastElement: public LTemplateInstruction<1, 2, 0> { | 1356 class LLoadKeyed: public LTemplateInstruction<1, 2, 0> { |
1361 public: | 1357 public: |
1362 LLoadKeyedFastElement(LOperand* elements, LOperand* key) { | 1358 LLoadKeyed(LOperand* elements, LOperand* key) { |
1363 inputs_[0] = elements; | 1359 inputs_[0] = elements; |
1364 inputs_[1] = key; | 1360 inputs_[1] = key; |
1365 } | 1361 } |
1366 | 1362 |
1367 LOperand* elements() { return inputs_[0]; } | 1363 LOperand* elements() { return inputs_[0]; } |
1368 LOperand* key() { return inputs_[1]; } | 1364 LOperand* key() { return inputs_[1]; } |
| 1365 ElementsKind elements_kind() const { |
| 1366 return hydrogen()->elements_kind(); |
| 1367 } |
| 1368 bool is_external() const { |
| 1369 return hydrogen()->is_external(); |
| 1370 } |
1369 | 1371 |
1370 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedFastElement, "load-keyed-fast-element") | 1372 DECLARE_CONCRETE_INSTRUCTION(LoadKeyed, "load-keyed") |
1371 DECLARE_HYDROGEN_ACCESSOR(LoadKeyedFastElement) | 1373 DECLARE_HYDROGEN_ACCESSOR(LoadKeyed) |
1372 | 1374 |
1373 uint32_t additional_index() const { return hydrogen()->index_offset(); } | 1375 uint32_t additional_index() const { return hydrogen()->index_offset(); } |
1374 }; | 1376 }; |
1375 | 1377 |
1376 | |
1377 class LLoadKeyedFastDoubleElement: public LTemplateInstruction<1, 2, 0> { | |
1378 public: | |
1379 LLoadKeyedFastDoubleElement(LOperand* elements, LOperand* key) { | |
1380 inputs_[0] = elements; | |
1381 inputs_[1] = key; | |
1382 } | |
1383 | |
1384 LOperand* elements() { return inputs_[0]; } | |
1385 LOperand* key() { return inputs_[1]; } | |
1386 | |
1387 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedFastDoubleElement, | |
1388 "load-keyed-fast-double-element") | |
1389 DECLARE_HYDROGEN_ACCESSOR(LoadKeyedFastDoubleElement) | |
1390 | |
1391 uint32_t additional_index() const { return hydrogen()->index_offset(); } | |
1392 }; | |
1393 | |
1394 | |
1395 class LLoadKeyedSpecializedArrayElement: public LTemplateInstruction<1, 2, 0> { | |
1396 public: | |
1397 LLoadKeyedSpecializedArrayElement(LOperand* external_pointer, LOperand* key) { | |
1398 inputs_[0] = external_pointer; | |
1399 inputs_[1] = key; | |
1400 } | |
1401 | |
1402 LOperand* external_pointer() { return inputs_[0]; } | |
1403 LOperand* key() { return inputs_[1]; } | |
1404 | |
1405 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedSpecializedArrayElement, | |
1406 "load-keyed-specialized-array-element") | |
1407 DECLARE_HYDROGEN_ACCESSOR(LoadKeyedSpecializedArrayElement) | |
1408 | |
1409 ElementsKind elements_kind() const { | |
1410 return hydrogen()->elements_kind(); | |
1411 } | |
1412 uint32_t additional_index() const { return hydrogen()->index_offset(); } | |
1413 }; | |
1414 | |
1415 | 1378 |
1416 class LLoadKeyedGeneric: public LTemplateInstruction<1, 2, 0> { | 1379 class LLoadKeyedGeneric: public LTemplateInstruction<1, 2, 0> { |
1417 public: | 1380 public: |
1418 LLoadKeyedGeneric(LOperand* object, LOperand* key) { | 1381 LLoadKeyedGeneric(LOperand* object, LOperand* key) { |
1419 inputs_[0] = object; | 1382 inputs_[0] = object; |
1420 inputs_[1] = key; | 1383 inputs_[1] = key; |
1421 } | 1384 } |
1422 | 1385 |
1423 LOperand* object() { return inputs_[0]; } | 1386 LOperand* object() { return inputs_[0]; } |
1424 LOperand* key() { return inputs_[1]; } | 1387 LOperand* key() { return inputs_[1]; } |
(...skipping 490 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1915 DECLARE_CONCRETE_INSTRUCTION(StoreNamedGeneric, "store-named-generic") | 1878 DECLARE_CONCRETE_INSTRUCTION(StoreNamedGeneric, "store-named-generic") |
1916 DECLARE_HYDROGEN_ACCESSOR(StoreNamedGeneric) | 1879 DECLARE_HYDROGEN_ACCESSOR(StoreNamedGeneric) |
1917 | 1880 |
1918 virtual void PrintDataTo(StringStream* stream); | 1881 virtual void PrintDataTo(StringStream* stream); |
1919 | 1882 |
1920 Handle<Object> name() const { return hydrogen()->name(); } | 1883 Handle<Object> name() const { return hydrogen()->name(); } |
1921 StrictModeFlag strict_mode_flag() { return hydrogen()->strict_mode_flag(); } | 1884 StrictModeFlag strict_mode_flag() { return hydrogen()->strict_mode_flag(); } |
1922 }; | 1885 }; |
1923 | 1886 |
1924 | 1887 |
1925 class LStoreKeyedFastElement: public LTemplateInstruction<0, 3, 0> { | 1888 class LStoreKeyed: public LTemplateInstruction<0, 3, 0> { |
1926 public: | 1889 public: |
1927 LStoreKeyedFastElement(LOperand* object, LOperand* key, LOperand* value) { | 1890 LStoreKeyed(LOperand* object, LOperand* key, LOperand* value) { |
1928 inputs_[0] = object; | 1891 inputs_[0] = object; |
1929 inputs_[1] = key; | 1892 inputs_[1] = key; |
1930 inputs_[2] = value; | 1893 inputs_[2] = value; |
1931 } | 1894 } |
1932 | 1895 |
1933 LOperand* object() { return inputs_[0]; } | 1896 bool is_external() const { return hydrogen()->is_external(); } |
| 1897 LOperand* elements() { return inputs_[0]; } |
1934 LOperand* key() { return inputs_[1]; } | 1898 LOperand* key() { return inputs_[1]; } |
1935 LOperand* value() { return inputs_[2]; } | 1899 LOperand* value() { return inputs_[2]; } |
| 1900 ElementsKind elements_kind() const { |
| 1901 return hydrogen()->elements_kind(); |
| 1902 } |
1936 | 1903 |
1937 DECLARE_CONCRETE_INSTRUCTION(StoreKeyedFastElement, | 1904 DECLARE_CONCRETE_INSTRUCTION(StoreKeyed, "store-keyed") |
1938 "store-keyed-fast-element") | 1905 DECLARE_HYDROGEN_ACCESSOR(StoreKeyed) |
1939 DECLARE_HYDROGEN_ACCESSOR(StoreKeyedFastElement) | |
1940 | 1906 |
1941 virtual void PrintDataTo(StringStream* stream); | 1907 virtual void PrintDataTo(StringStream* stream); |
1942 | 1908 bool NeedsCanonicalization() { return hydrogen()->NeedsCanonicalization(); } |
1943 uint32_t additional_index() const { return hydrogen()->index_offset(); } | 1909 uint32_t additional_index() const { return hydrogen()->index_offset(); } |
1944 }; | 1910 }; |
1945 | 1911 |
1946 | 1912 |
1947 class LStoreKeyedFastDoubleElement: public LTemplateInstruction<0, 3, 0> { | |
1948 public: | |
1949 LStoreKeyedFastDoubleElement(LOperand* elements, | |
1950 LOperand* key, | |
1951 LOperand* value) { | |
1952 inputs_[0] = elements; | |
1953 inputs_[1] = key; | |
1954 inputs_[2] = value; | |
1955 } | |
1956 | |
1957 LOperand* elements() { return inputs_[0]; } | |
1958 LOperand* key() { return inputs_[1]; } | |
1959 LOperand* value() { return inputs_[2]; } | |
1960 | |
1961 DECLARE_CONCRETE_INSTRUCTION(StoreKeyedFastDoubleElement, | |
1962 "store-keyed-fast-double-element") | |
1963 DECLARE_HYDROGEN_ACCESSOR(StoreKeyedFastDoubleElement) | |
1964 | |
1965 virtual void PrintDataTo(StringStream* stream); | |
1966 | |
1967 uint32_t additional_index() const { return hydrogen()->index_offset(); } | |
1968 | |
1969 bool NeedsCanonicalization() { return hydrogen()->NeedsCanonicalization(); } | |
1970 }; | |
1971 | |
1972 | |
1973 class LStoreKeyedGeneric: public LTemplateInstruction<0, 3, 0> { | 1913 class LStoreKeyedGeneric: public LTemplateInstruction<0, 3, 0> { |
1974 public: | 1914 public: |
1975 LStoreKeyedGeneric(LOperand* obj, LOperand* key, LOperand* value) { | 1915 LStoreKeyedGeneric(LOperand* obj, LOperand* key, LOperand* value) { |
1976 inputs_[0] = obj; | 1916 inputs_[0] = obj; |
1977 inputs_[1] = key; | 1917 inputs_[1] = key; |
1978 inputs_[2] = value; | 1918 inputs_[2] = value; |
1979 } | 1919 } |
1980 | 1920 |
1981 LOperand* object() { return inputs_[0]; } | 1921 LOperand* object() { return inputs_[0]; } |
1982 LOperand* key() { return inputs_[1]; } | 1922 LOperand* key() { return inputs_[1]; } |
1983 LOperand* value() { return inputs_[2]; } | 1923 LOperand* value() { return inputs_[2]; } |
1984 | 1924 |
1985 DECLARE_CONCRETE_INSTRUCTION(StoreKeyedGeneric, "store-keyed-generic") | 1925 DECLARE_CONCRETE_INSTRUCTION(StoreKeyedGeneric, "store-keyed-generic") |
1986 DECLARE_HYDROGEN_ACCESSOR(StoreKeyedGeneric) | 1926 DECLARE_HYDROGEN_ACCESSOR(StoreKeyedGeneric) |
1987 | 1927 |
1988 virtual void PrintDataTo(StringStream* stream); | 1928 virtual void PrintDataTo(StringStream* stream); |
1989 | 1929 |
1990 StrictModeFlag strict_mode_flag() { return hydrogen()->strict_mode_flag(); } | 1930 StrictModeFlag strict_mode_flag() { return hydrogen()->strict_mode_flag(); } |
1991 }; | 1931 }; |
1992 | 1932 |
1993 class LStoreKeyedSpecializedArrayElement: public LTemplateInstruction<0, 3, 0> { | |
1994 public: | |
1995 LStoreKeyedSpecializedArrayElement(LOperand* external_pointer, | |
1996 LOperand* key, | |
1997 LOperand* value) { | |
1998 inputs_[0] = external_pointer; | |
1999 inputs_[1] = key; | |
2000 inputs_[2] = value; | |
2001 } | |
2002 | |
2003 LOperand* external_pointer() { return inputs_[0]; } | |
2004 LOperand* key() { return inputs_[1]; } | |
2005 LOperand* value() { return inputs_[2]; } | |
2006 | |
2007 DECLARE_CONCRETE_INSTRUCTION(StoreKeyedSpecializedArrayElement, | |
2008 "store-keyed-specialized-array-element") | |
2009 DECLARE_HYDROGEN_ACCESSOR(StoreKeyedSpecializedArrayElement) | |
2010 | |
2011 ElementsKind elements_kind() const { return hydrogen()->elements_kind(); } | |
2012 uint32_t additional_index() const { return hydrogen()->index_offset(); } | |
2013 }; | |
2014 | |
2015 | 1933 |
2016 class LTransitionElementsKind: public LTemplateInstruction<1, 1, 2> { | 1934 class LTransitionElementsKind: public LTemplateInstruction<1, 1, 2> { |
2017 public: | 1935 public: |
2018 LTransitionElementsKind(LOperand* object, | 1936 LTransitionElementsKind(LOperand* object, |
2019 LOperand* new_map_temp, | 1937 LOperand* new_map_temp, |
2020 LOperand* temp) { | 1938 LOperand* temp) { |
2021 inputs_[0] = object; | 1939 inputs_[0] = object; |
2022 temps_[0] = new_map_temp; | 1940 temps_[0] = new_map_temp; |
2023 temps_[1] = temp; | 1941 temps_[1] = temp; |
2024 } | 1942 } |
(...skipping 581 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2606 | 2524 |
2607 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2525 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2608 }; | 2526 }; |
2609 | 2527 |
2610 #undef DECLARE_HYDROGEN_ACCESSOR | 2528 #undef DECLARE_HYDROGEN_ACCESSOR |
2611 #undef DECLARE_CONCRETE_INSTRUCTION | 2529 #undef DECLARE_CONCRETE_INSTRUCTION |
2612 | 2530 |
2613 } } // namespace v8::internal | 2531 } } // namespace v8::internal |
2614 | 2532 |
2615 #endif // V8_ARM_LITHIUM_ARM_H_ | 2533 #endif // V8_ARM_LITHIUM_ARM_H_ |
OLD | NEW |