| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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(AllocateObject) \ |
| 53 V(Allocate) \ |
| 53 V(ApplyArguments) \ | 54 V(ApplyArguments) \ |
| 54 V(ArgumentsElements) \ | 55 V(ArgumentsElements) \ |
| 55 V(ArgumentsLength) \ | 56 V(ArgumentsLength) \ |
| 56 V(ArithmeticD) \ | 57 V(ArithmeticD) \ |
| 57 V(ArithmeticT) \ | 58 V(ArithmeticT) \ |
| 58 V(ArrayLiteral) \ | 59 V(ArrayLiteral) \ |
| 59 V(BitI) \ | 60 V(BitI) \ |
| 60 V(BitNotI) \ | 61 V(BitNotI) \ |
| 61 V(BoundsCheck) \ | 62 V(BoundsCheck) \ |
| 62 V(Branch) \ | 63 V(Branch) \ |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 V(StringCharFromCode) \ | 169 V(StringCharFromCode) \ |
| 169 V(StringCompareAndBranch) \ | 170 V(StringCompareAndBranch) \ |
| 170 V(StringLength) \ | 171 V(StringLength) \ |
| 171 V(SubI) \ | 172 V(SubI) \ |
| 172 V(RSubI) \ | 173 V(RSubI) \ |
| 173 V(TaggedToI) \ | 174 V(TaggedToI) \ |
| 174 V(ThisFunction) \ | 175 V(ThisFunction) \ |
| 175 V(Throw) \ | 176 V(Throw) \ |
| 176 V(ToFastProperties) \ | 177 V(ToFastProperties) \ |
| 177 V(TransitionElementsKind) \ | 178 V(TransitionElementsKind) \ |
| 179 V(TrapAllocationMemento) \ |
| 178 V(Typeof) \ | 180 V(Typeof) \ |
| 179 V(TypeofIsAndBranch) \ | 181 V(TypeofIsAndBranch) \ |
| 180 V(UnaryMathOperation) \ | 182 V(UnaryMathOperation) \ |
| 181 V(UnknownOSRValue) \ | 183 V(UnknownOSRValue) \ |
| 182 V(ValueOf) \ | 184 V(ValueOf) \ |
| 183 V(ForInPrepareMap) \ | 185 V(ForInPrepareMap) \ |
| 184 V(ForInCacheArray) \ | 186 V(ForInCacheArray) \ |
| 185 V(CheckMapValue) \ | 187 V(CheckMapValue) \ |
| 186 V(LoadFieldByIndex) \ | 188 V(LoadFieldByIndex) \ |
| 187 V(DateField) \ | 189 V(DateField) \ |
| (...skipping 1424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1612 class LThisFunction: public LTemplateInstruction<1, 0, 0> { | 1614 class LThisFunction: public LTemplateInstruction<1, 0, 0> { |
| 1613 public: | 1615 public: |
| 1614 DECLARE_CONCRETE_INSTRUCTION(ThisFunction, "this-function") | 1616 DECLARE_CONCRETE_INSTRUCTION(ThisFunction, "this-function") |
| 1615 DECLARE_HYDROGEN_ACCESSOR(ThisFunction) | 1617 DECLARE_HYDROGEN_ACCESSOR(ThisFunction) |
| 1616 }; | 1618 }; |
| 1617 | 1619 |
| 1618 | 1620 |
| 1619 class LContext: public LTemplateInstruction<1, 0, 0> { | 1621 class LContext: public LTemplateInstruction<1, 0, 0> { |
| 1620 public: | 1622 public: |
| 1621 DECLARE_CONCRETE_INSTRUCTION(Context, "context") | 1623 DECLARE_CONCRETE_INSTRUCTION(Context, "context") |
| 1624 DECLARE_HYDROGEN_ACCESSOR(Context) |
| 1622 }; | 1625 }; |
| 1623 | 1626 |
| 1624 | 1627 |
| 1625 class LOuterContext: public LTemplateInstruction<1, 1, 0> { | 1628 class LOuterContext: public LTemplateInstruction<1, 1, 0> { |
| 1626 public: | 1629 public: |
| 1627 explicit LOuterContext(LOperand* context) { | 1630 explicit LOuterContext(LOperand* context) { |
| 1628 inputs_[0] = context; | 1631 inputs_[0] = context; |
| 1629 } | 1632 } |
| 1630 | 1633 |
| 1631 LOperand* context() { return inputs_[0]; } | 1634 LOperand* context() { return inputs_[0]; } |
| (...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1845 inputs_[0] = value; | 1848 inputs_[0] = value; |
| 1846 temps_[0] = temp; | 1849 temps_[0] = temp; |
| 1847 temps_[1] = temp2; | 1850 temps_[1] = temp2; |
| 1848 } | 1851 } |
| 1849 | 1852 |
| 1850 LOperand* value() { return inputs_[0]; } | 1853 LOperand* value() { return inputs_[0]; } |
| 1851 LOperand* temp() { return temps_[0]; } | 1854 LOperand* temp() { return temps_[0]; } |
| 1852 LOperand* temp2() { return temps_[1]; } | 1855 LOperand* temp2() { return temps_[1]; } |
| 1853 | 1856 |
| 1854 DECLARE_CONCRETE_INSTRUCTION(NumberTagD, "number-tag-d") | 1857 DECLARE_CONCRETE_INSTRUCTION(NumberTagD, "number-tag-d") |
| 1858 DECLARE_HYDROGEN_ACCESSOR(Change) |
| 1855 }; | 1859 }; |
| 1856 | 1860 |
| 1857 | 1861 |
| 1858 // Sometimes truncating conversion from a tagged value to an int32. | 1862 // Sometimes truncating conversion from a tagged value to an int32. |
| 1859 class LDoubleToI: public LTemplateInstruction<1, 1, 2> { | 1863 class LDoubleToI: public LTemplateInstruction<1, 1, 2> { |
| 1860 public: | 1864 public: |
| 1861 LDoubleToI(LOperand* value, LOperand* temp, LOperand* temp2) { | 1865 LDoubleToI(LOperand* value, LOperand* temp, LOperand* temp2) { |
| 1862 inputs_[0] = value; | 1866 inputs_[0] = value; |
| 1863 temps_[0] = temp; | 1867 temps_[0] = temp; |
| 1864 temps_[1] = temp2; | 1868 temps_[1] = temp2; |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2025 | 2029 |
| 2026 DECLARE_CONCRETE_INSTRUCTION(StoreKeyedGeneric, "store-keyed-generic") | 2030 DECLARE_CONCRETE_INSTRUCTION(StoreKeyedGeneric, "store-keyed-generic") |
| 2027 DECLARE_HYDROGEN_ACCESSOR(StoreKeyedGeneric) | 2031 DECLARE_HYDROGEN_ACCESSOR(StoreKeyedGeneric) |
| 2028 | 2032 |
| 2029 virtual void PrintDataTo(StringStream* stream); | 2033 virtual void PrintDataTo(StringStream* stream); |
| 2030 | 2034 |
| 2031 StrictModeFlag strict_mode_flag() { return hydrogen()->strict_mode_flag(); } | 2035 StrictModeFlag strict_mode_flag() { return hydrogen()->strict_mode_flag(); } |
| 2032 }; | 2036 }; |
| 2033 | 2037 |
| 2034 | 2038 |
| 2035 class LTransitionElementsKind: public LTemplateInstruction<1, 1, 2> { | 2039 class LTransitionElementsKind: public LTemplateInstruction<1, 1, 1> { |
| 2036 public: | 2040 public: |
| 2037 LTransitionElementsKind(LOperand* object, | 2041 LTransitionElementsKind(LOperand* object, |
| 2038 LOperand* new_map_temp, | 2042 LOperand* new_map_temp) { |
| 2039 LOperand* temp) { | |
| 2040 inputs_[0] = object; | 2043 inputs_[0] = object; |
| 2041 temps_[0] = new_map_temp; | 2044 temps_[0] = new_map_temp; |
| 2042 temps_[1] = temp; | |
| 2043 } | 2045 } |
| 2044 | 2046 |
| 2045 LOperand* object() { return inputs_[0]; } | 2047 LOperand* object() { return inputs_[0]; } |
| 2046 LOperand* new_map_temp() { return temps_[0]; } | 2048 LOperand* new_map_temp() { return temps_[0]; } |
| 2047 LOperand* temp() { return temps_[1]; } | |
| 2048 | 2049 |
| 2049 DECLARE_CONCRETE_INSTRUCTION(TransitionElementsKind, | 2050 DECLARE_CONCRETE_INSTRUCTION(TransitionElementsKind, |
| 2050 "transition-elements-kind") | 2051 "transition-elements-kind") |
| 2051 DECLARE_HYDROGEN_ACCESSOR(TransitionElementsKind) | 2052 DECLARE_HYDROGEN_ACCESSOR(TransitionElementsKind) |
| 2052 | 2053 |
| 2053 virtual void PrintDataTo(StringStream* stream); | 2054 virtual void PrintDataTo(StringStream* stream); |
| 2054 | 2055 |
| 2055 Handle<Map> original_map() { return hydrogen()->original_map(); } | 2056 Handle<Map> original_map() { return hydrogen()->original_map(); } |
| 2056 Handle<Map> transitioned_map() { return hydrogen()->transitioned_map(); } | 2057 Handle<Map> transitioned_map() { return hydrogen()->transitioned_map(); } |
| 2057 ElementsKind from_kind() { return hydrogen()->from_kind(); } | 2058 ElementsKind from_kind() { return hydrogen()->from_kind(); } |
| 2058 ElementsKind to_kind() { return hydrogen()->to_kind(); } | 2059 ElementsKind to_kind() { return hydrogen()->to_kind(); } |
| 2059 }; | 2060 }; |
| 2060 | 2061 |
| 2061 | 2062 |
| 2063 class LTrapAllocationMemento : public LTemplateInstruction<0, 1, 1> { |
| 2064 public: |
| 2065 LTrapAllocationMemento(LOperand* object, |
| 2066 LOperand* temp) { |
| 2067 inputs_[0] = object; |
| 2068 temps_[0] = temp; |
| 2069 } |
| 2070 |
| 2071 LOperand* object() { return inputs_[0]; } |
| 2072 LOperand* temp() { return temps_[0]; } |
| 2073 |
| 2074 DECLARE_CONCRETE_INSTRUCTION(TrapAllocationMemento, |
| 2075 "trap-allocation-memento") |
| 2076 }; |
| 2077 |
| 2078 |
| 2062 class LStringAdd: public LTemplateInstruction<1, 2, 0> { | 2079 class LStringAdd: public LTemplateInstruction<1, 2, 0> { |
| 2063 public: | 2080 public: |
| 2064 LStringAdd(LOperand* left, LOperand* right) { | 2081 LStringAdd(LOperand* left, LOperand* right) { |
| 2065 inputs_[0] = left; | 2082 inputs_[0] = left; |
| 2066 inputs_[1] = right; | 2083 inputs_[1] = right; |
| 2067 } | 2084 } |
| 2068 | 2085 |
| 2069 LOperand* left() { return inputs_[0]; } | 2086 LOperand* left() { return inputs_[0]; } |
| 2070 LOperand* right() { return inputs_[1]; } | 2087 LOperand* right() { return inputs_[1]; } |
| 2071 | 2088 |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2232 temps_[0] = temp; | 2249 temps_[0] = temp; |
| 2233 } | 2250 } |
| 2234 | 2251 |
| 2235 LOperand* unclamped() { return inputs_[0]; } | 2252 LOperand* unclamped() { return inputs_[0]; } |
| 2236 LOperand* temp() { return temps_[0]; } | 2253 LOperand* temp() { return temps_[0]; } |
| 2237 | 2254 |
| 2238 DECLARE_CONCRETE_INSTRUCTION(ClampTToUint8, "clamp-t-to-uint8") | 2255 DECLARE_CONCRETE_INSTRUCTION(ClampTToUint8, "clamp-t-to-uint8") |
| 2239 }; | 2256 }; |
| 2240 | 2257 |
| 2241 | 2258 |
| 2242 class LAllocateObject: public LTemplateInstruction<1, 0, 2> { | 2259 class LAllocateObject: public LTemplateInstruction<1, 1, 2> { |
| 2243 public: | 2260 public: |
| 2244 LAllocateObject(LOperand* temp, LOperand* temp2) { | 2261 LAllocateObject(LOperand* temp, LOperand* temp2) { |
| 2245 temps_[0] = temp; | 2262 temps_[0] = temp; |
| 2246 temps_[1] = temp2; | 2263 temps_[1] = temp2; |
| 2247 } | 2264 } |
| 2248 | 2265 |
| 2249 LOperand* temp() { return temps_[0]; } | 2266 LOperand* temp() { return temps_[0]; } |
| 2250 LOperand* temp2() { return temps_[1]; } | 2267 LOperand* temp2() { return temps_[1]; } |
| 2251 | 2268 |
| 2252 DECLARE_CONCRETE_INSTRUCTION(AllocateObject, "allocate-object") | 2269 DECLARE_CONCRETE_INSTRUCTION(AllocateObject, "allocate-object") |
| 2253 DECLARE_HYDROGEN_ACCESSOR(AllocateObject) | 2270 DECLARE_HYDROGEN_ACCESSOR(AllocateObject) |
| 2254 }; | 2271 }; |
| 2255 | 2272 |
| 2256 | 2273 |
| 2274 class LAllocate: public LTemplateInstruction<1, 2, 2> { |
| 2275 public: |
| 2276 LAllocate(LOperand* size, LOperand* temp1, LOperand* temp2) { |
| 2277 inputs_[1] = size; |
| 2278 temps_[0] = temp1; |
| 2279 temps_[1] = temp2; |
| 2280 } |
| 2281 |
| 2282 LOperand* size() { return inputs_[1]; } |
| 2283 LOperand* temp1() { return temps_[0]; } |
| 2284 LOperand* temp2() { return temps_[1]; } |
| 2285 |
| 2286 DECLARE_CONCRETE_INSTRUCTION(Allocate, "allocate") |
| 2287 DECLARE_HYDROGEN_ACCESSOR(Allocate) |
| 2288 }; |
| 2289 |
| 2290 |
| 2257 class LFastLiteral: public LTemplateInstruction<1, 0, 0> { | 2291 class LFastLiteral: public LTemplateInstruction<1, 0, 0> { |
| 2258 public: | 2292 public: |
| 2259 DECLARE_CONCRETE_INSTRUCTION(FastLiteral, "fast-literal") | 2293 DECLARE_CONCRETE_INSTRUCTION(FastLiteral, "fast-literal") |
| 2260 DECLARE_HYDROGEN_ACCESSOR(FastLiteral) | 2294 DECLARE_HYDROGEN_ACCESSOR(FastLiteral) |
| 2261 }; | 2295 }; |
| 2262 | 2296 |
| 2263 | 2297 |
| 2264 class LArrayLiteral: public LTemplateInstruction<1, 0, 0> { | 2298 class LArrayLiteral: public LTemplateInstruction<1, 0, 0> { |
| 2265 public: | 2299 public: |
| 2266 DECLARE_CONCRETE_INSTRUCTION(ArrayLiteral, "array-literal") | 2300 DECLARE_CONCRETE_INSTRUCTION(ArrayLiteral, "array-literal") |
| (...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2633 | 2667 |
| 2634 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2668 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2635 }; | 2669 }; |
| 2636 | 2670 |
| 2637 #undef DECLARE_HYDROGEN_ACCESSOR | 2671 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2638 #undef DECLARE_CONCRETE_INSTRUCTION | 2672 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2639 | 2673 |
| 2640 } } // namespace v8::internal | 2674 } } // namespace v8::internal |
| 2641 | 2675 |
| 2642 #endif // V8_ARM_LITHIUM_ARM_H_ | 2676 #endif // V8_ARM_LITHIUM_ARM_H_ |
| OLD | NEW |