| 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() { |
| 1364 ASSERT(!is_external()); |
| 1365 return inputs_[0]; |
| 1366 } |
| 1367 LOperand* external_pointer() { |
| 1368 ASSERT(is_external()); |
| 1369 return inputs_[0]; |
| 1370 } |
| 1368 LOperand* key() { return inputs_[1]; } | 1371 LOperand* key() { return inputs_[1]; } |
| 1372 ElementsKind elements_kind() const { |
| 1373 return hydrogen()->elements_kind(); |
| 1374 } |
| 1375 bool is_external() const { |
| 1376 return hydrogen()->is_external(); |
| 1377 } |
| 1369 | 1378 |
| 1370 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedFastElement, "load-keyed-fast-element") | 1379 DECLARE_CONCRETE_INSTRUCTION(LoadKeyed, "load-keyed") |
| 1371 DECLARE_HYDROGEN_ACCESSOR(LoadKeyedFastElement) | 1380 DECLARE_HYDROGEN_ACCESSOR(LoadKeyed) |
| 1372 | 1381 |
| 1373 uint32_t additional_index() const { return hydrogen()->index_offset(); } | 1382 uint32_t additional_index() const { return hydrogen()->index_offset(); } |
| 1374 }; | 1383 }; |
| 1375 | 1384 |
| 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 | 1385 |
| 1416 class LLoadKeyedGeneric: public LTemplateInstruction<1, 2, 0> { | 1386 class LLoadKeyedGeneric: public LTemplateInstruction<1, 2, 0> { |
| 1417 public: | 1387 public: |
| 1418 LLoadKeyedGeneric(LOperand* object, LOperand* key) { | 1388 LLoadKeyedGeneric(LOperand* object, LOperand* key) { |
| 1419 inputs_[0] = object; | 1389 inputs_[0] = object; |
| 1420 inputs_[1] = key; | 1390 inputs_[1] = key; |
| 1421 } | 1391 } |
| 1422 | 1392 |
| 1423 LOperand* object() { return inputs_[0]; } | 1393 LOperand* object() { return inputs_[0]; } |
| 1424 LOperand* key() { return inputs_[1]; } | 1394 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") | 1885 DECLARE_CONCRETE_INSTRUCTION(StoreNamedGeneric, "store-named-generic") |
| 1916 DECLARE_HYDROGEN_ACCESSOR(StoreNamedGeneric) | 1886 DECLARE_HYDROGEN_ACCESSOR(StoreNamedGeneric) |
| 1917 | 1887 |
| 1918 virtual void PrintDataTo(StringStream* stream); | 1888 virtual void PrintDataTo(StringStream* stream); |
| 1919 | 1889 |
| 1920 Handle<Object> name() const { return hydrogen()->name(); } | 1890 Handle<Object> name() const { return hydrogen()->name(); } |
| 1921 StrictModeFlag strict_mode_flag() { return hydrogen()->strict_mode_flag(); } | 1891 StrictModeFlag strict_mode_flag() { return hydrogen()->strict_mode_flag(); } |
| 1922 }; | 1892 }; |
| 1923 | 1893 |
| 1924 | 1894 |
| 1925 class LStoreKeyedFastElement: public LTemplateInstruction<0, 3, 0> { | 1895 class LStoreKeyed: public LTemplateInstruction<0, 3, 0> { |
| 1926 public: | 1896 public: |
| 1927 LStoreKeyedFastElement(LOperand* object, LOperand* key, LOperand* value) { | 1897 LStoreKeyed(LOperand* object, LOperand* key, LOperand* value) { |
| 1928 inputs_[0] = object; | 1898 inputs_[0] = object; |
| 1929 inputs_[1] = key; | 1899 inputs_[1] = key; |
| 1930 inputs_[2] = value; | 1900 inputs_[2] = value; |
| 1931 } | 1901 } |
| 1932 | 1902 |
| 1933 LOperand* object() { return inputs_[0]; } | 1903 bool is_external() const { return hydrogen()->is_external(); } |
| 1904 LOperand* object() { |
| 1905 ASSERT(!is_external()); |
| 1906 return inputs_[0]; |
| 1907 } |
| 1908 LOperand* external_pointer() { |
| 1909 ASSERT(is_external()); |
| 1910 return inputs_[0]; |
| 1911 } |
| 1934 LOperand* key() { return inputs_[1]; } | 1912 LOperand* key() { return inputs_[1]; } |
| 1935 LOperand* value() { return inputs_[2]; } | 1913 LOperand* value() { return inputs_[2]; } |
| 1914 ElementsKind elements_kind() const { |
| 1915 return hydrogen()->elements_kind(); |
| 1916 } |
| 1936 | 1917 |
| 1937 DECLARE_CONCRETE_INSTRUCTION(StoreKeyedFastElement, | 1918 DECLARE_CONCRETE_INSTRUCTION(StoreKeyed, "store-keyed") |
| 1938 "store-keyed-fast-element") | 1919 DECLARE_HYDROGEN_ACCESSOR(StoreKeyed) |
| 1939 DECLARE_HYDROGEN_ACCESSOR(StoreKeyedFastElement) | |
| 1940 | 1920 |
| 1941 virtual void PrintDataTo(StringStream* stream); | 1921 virtual void PrintDataTo(StringStream* stream); |
| 1942 | 1922 bool NeedsCanonicalization() { return hydrogen()->NeedsCanonicalization(); } |
| 1943 uint32_t additional_index() const { return hydrogen()->index_offset(); } | 1923 uint32_t additional_index() const { return hydrogen()->index_offset(); } |
| 1944 }; | 1924 }; |
| 1945 | 1925 |
| 1946 | 1926 |
| 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> { | 1927 class LStoreKeyedGeneric: public LTemplateInstruction<0, 3, 0> { |
| 1974 public: | 1928 public: |
| 1975 LStoreKeyedGeneric(LOperand* obj, LOperand* key, LOperand* value) { | 1929 LStoreKeyedGeneric(LOperand* obj, LOperand* key, LOperand* value) { |
| 1976 inputs_[0] = obj; | 1930 inputs_[0] = obj; |
| 1977 inputs_[1] = key; | 1931 inputs_[1] = key; |
| 1978 inputs_[2] = value; | 1932 inputs_[2] = value; |
| 1979 } | 1933 } |
| 1980 | 1934 |
| 1981 LOperand* object() { return inputs_[0]; } | 1935 LOperand* object() { return inputs_[0]; } |
| 1982 LOperand* key() { return inputs_[1]; } | 1936 LOperand* key() { return inputs_[1]; } |
| 1983 LOperand* value() { return inputs_[2]; } | 1937 LOperand* value() { return inputs_[2]; } |
| 1984 | 1938 |
| 1985 DECLARE_CONCRETE_INSTRUCTION(StoreKeyedGeneric, "store-keyed-generic") | 1939 DECLARE_CONCRETE_INSTRUCTION(StoreKeyedGeneric, "store-keyed-generic") |
| 1986 DECLARE_HYDROGEN_ACCESSOR(StoreKeyedGeneric) | 1940 DECLARE_HYDROGEN_ACCESSOR(StoreKeyedGeneric) |
| 1987 | 1941 |
| 1988 virtual void PrintDataTo(StringStream* stream); | 1942 virtual void PrintDataTo(StringStream* stream); |
| 1989 | 1943 |
| 1990 StrictModeFlag strict_mode_flag() { return hydrogen()->strict_mode_flag(); } | 1944 StrictModeFlag strict_mode_flag() { return hydrogen()->strict_mode_flag(); } |
| 1991 }; | 1945 }; |
| 1992 | 1946 |
| 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 | 1947 |
| 2016 class LTransitionElementsKind: public LTemplateInstruction<1, 1, 2> { | 1948 class LTransitionElementsKind: public LTemplateInstruction<1, 1, 2> { |
| 2017 public: | 1949 public: |
| 2018 LTransitionElementsKind(LOperand* object, | 1950 LTransitionElementsKind(LOperand* object, |
| 2019 LOperand* new_map_temp, | 1951 LOperand* new_map_temp, |
| 2020 LOperand* temp) { | 1952 LOperand* temp) { |
| 2021 inputs_[0] = object; | 1953 inputs_[0] = object; |
| 2022 temps_[0] = new_map_temp; | 1954 temps_[0] = new_map_temp; |
| 2023 temps_[1] = temp; | 1955 temps_[1] = temp; |
| 2024 } | 1956 } |
| (...skipping 581 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2606 | 2538 |
| 2607 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2539 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2608 }; | 2540 }; |
| 2609 | 2541 |
| 2610 #undef DECLARE_HYDROGEN_ACCESSOR | 2542 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2611 #undef DECLARE_CONCRETE_INSTRUCTION | 2543 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2612 | 2544 |
| 2613 } } // namespace v8::internal | 2545 } } // namespace v8::internal |
| 2614 | 2546 |
| 2615 #endif // V8_ARM_LITHIUM_ARM_H_ | 2547 #endif // V8_ARM_LITHIUM_ARM_H_ |
| OLD | NEW |