OLD | NEW |
---|---|
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
82 V(CmpT) \ | 82 V(CmpT) \ |
83 V(CmpTAndBranch) \ | 83 V(CmpTAndBranch) \ |
84 V(ConstantD) \ | 84 V(ConstantD) \ |
85 V(ConstantI) \ | 85 V(ConstantI) \ |
86 V(ConstantT) \ | 86 V(ConstantT) \ |
87 V(Context) \ | 87 V(Context) \ |
88 V(DeleteProperty) \ | 88 V(DeleteProperty) \ |
89 V(Deoptimize) \ | 89 V(Deoptimize) \ |
90 V(DivI) \ | 90 V(DivI) \ |
91 V(DoubleToI) \ | 91 V(DoubleToI) \ |
92 V(ExternalArrayLength) \ | |
92 V(FixedArrayLength) \ | 93 V(FixedArrayLength) \ |
93 V(FunctionLiteral) \ | 94 V(FunctionLiteral) \ |
94 V(Gap) \ | 95 V(Gap) \ |
95 V(GetCachedArrayIndex) \ | 96 V(GetCachedArrayIndex) \ |
96 V(GlobalObject) \ | 97 V(GlobalObject) \ |
97 V(GlobalReceiver) \ | 98 V(GlobalReceiver) \ |
98 V(Goto) \ | 99 V(Goto) \ |
99 V(HasCachedArrayIndex) \ | 100 V(HasCachedArrayIndex) \ |
100 V(HasCachedArrayIndexAndBranch) \ | 101 V(HasCachedArrayIndexAndBranch) \ |
101 V(HasInstanceType) \ | 102 V(HasInstanceType) \ |
102 V(HasInstanceTypeAndBranch) \ | 103 V(HasInstanceTypeAndBranch) \ |
103 V(InstanceOf) \ | 104 V(InstanceOf) \ |
104 V(InstanceOfAndBranch) \ | 105 V(InstanceOfAndBranch) \ |
105 V(InstanceOfKnownGlobal) \ | 106 V(InstanceOfKnownGlobal) \ |
106 V(Integer32ToDouble) \ | 107 V(Integer32ToDouble) \ |
107 V(IsNull) \ | 108 V(IsNull) \ |
108 V(IsNullAndBranch) \ | 109 V(IsNullAndBranch) \ |
109 V(IsObject) \ | 110 V(IsObject) \ |
110 V(IsObjectAndBranch) \ | 111 V(IsObjectAndBranch) \ |
111 V(IsSmi) \ | 112 V(IsSmi) \ |
112 V(IsSmiAndBranch) \ | 113 V(IsSmiAndBranch) \ |
113 V(JSArrayLength) \ | 114 V(JSArrayLength) \ |
114 V(Label) \ | 115 V(Label) \ |
115 V(LazyBailout) \ | 116 V(LazyBailout) \ |
116 V(LoadContextSlot) \ | 117 V(LoadContextSlot) \ |
117 V(LoadElements) \ | 118 V(LoadElements) \ |
119 V(LoadExternalArrayPointer) \ | |
118 V(LoadFunctionPrototype) \ | 120 V(LoadFunctionPrototype) \ |
119 V(LoadGlobal) \ | 121 V(LoadGlobal) \ |
120 V(LoadKeyedFastElement) \ | 122 V(LoadKeyedFastElement) \ |
121 V(LoadKeyedGeneric) \ | 123 V(LoadKeyedGeneric) \ |
122 V(LoadNamedField) \ | 124 V(LoadNamedField) \ |
123 V(LoadNamedGeneric) \ | 125 V(LoadNamedGeneric) \ |
124 V(LoadPixelArrayElement) \ | 126 V(LoadPixelArrayElement) \ |
125 V(LoadPixelArrayExternalPointer) \ | |
126 V(ModI) \ | 127 V(ModI) \ |
127 V(MulI) \ | 128 V(MulI) \ |
128 V(NumberTagD) \ | 129 V(NumberTagD) \ |
129 V(NumberTagI) \ | 130 V(NumberTagI) \ |
130 V(NumberUntagD) \ | 131 V(NumberUntagD) \ |
131 V(ObjectLiteral) \ | 132 V(ObjectLiteral) \ |
132 V(OsrEntry) \ | 133 V(OsrEntry) \ |
133 V(OuterContext) \ | 134 V(OuterContext) \ |
134 V(Parameter) \ | 135 V(Parameter) \ |
135 V(PixelArrayLength) \ | |
136 V(Power) \ | 136 V(Power) \ |
137 V(PushArgument) \ | 137 V(PushArgument) \ |
138 V(RegExpLiteral) \ | 138 V(RegExpLiteral) \ |
139 V(Return) \ | 139 V(Return) \ |
140 V(ShiftI) \ | 140 V(ShiftI) \ |
141 V(SmiTag) \ | 141 V(SmiTag) \ |
142 V(SmiUntag) \ | 142 V(SmiUntag) \ |
143 V(StackCheck) \ | 143 V(StackCheck) \ |
144 V(StoreContextSlot) \ | 144 V(StoreContextSlot) \ |
145 V(StoreGlobal) \ | 145 V(StoreGlobal) \ |
146 V(StoreKeyedFastElement) \ | 146 V(StoreKeyedFastElement) \ |
147 V(StoreKeyedGeneric) \ | 147 V(StoreKeyedGeneric) \ |
148 V(StoreNamedField) \ | 148 V(StoreNamedField) \ |
149 V(StoreNamedGeneric) \ | 149 V(StoreNamedGeneric) \ |
150 V(StorePixelArrayElement) \ | |
150 V(StringCharCodeAt) \ | 151 V(StringCharCodeAt) \ |
151 V(StringLength) \ | 152 V(StringLength) \ |
152 V(SubI) \ | 153 V(SubI) \ |
153 V(TaggedToI) \ | 154 V(TaggedToI) \ |
154 V(Throw) \ | 155 V(Throw) \ |
155 V(Typeof) \ | 156 V(Typeof) \ |
156 V(TypeofIs) \ | 157 V(TypeofIs) \ |
157 V(TypeofIsAndBranch) \ | 158 V(TypeofIsAndBranch) \ |
158 V(IsConstructCall) \ | 159 V(IsConstructCall) \ |
159 V(IsConstructCallAndBranch) \ | 160 V(IsConstructCallAndBranch) \ |
(...skipping 824 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
984 public: | 985 public: |
985 explicit LJSArrayLength(LOperand* value) { | 986 explicit LJSArrayLength(LOperand* value) { |
986 inputs_[0] = value; | 987 inputs_[0] = value; |
987 } | 988 } |
988 | 989 |
989 DECLARE_CONCRETE_INSTRUCTION(JSArrayLength, "js-array-length") | 990 DECLARE_CONCRETE_INSTRUCTION(JSArrayLength, "js-array-length") |
990 DECLARE_HYDROGEN_ACCESSOR(JSArrayLength) | 991 DECLARE_HYDROGEN_ACCESSOR(JSArrayLength) |
991 }; | 992 }; |
992 | 993 |
993 | 994 |
994 class LPixelArrayLength: public LTemplateInstruction<1, 1, 0> { | 995 class LExternalArrayLength: public LTemplateInstruction<1, 1, 0> { |
995 public: | 996 public: |
996 explicit LPixelArrayLength(LOperand* value) { | 997 explicit LExternalArrayLength(LOperand* value) { |
997 inputs_[0] = value; | 998 inputs_[0] = value; |
998 } | 999 } |
999 | 1000 |
1000 DECLARE_CONCRETE_INSTRUCTION(PixelArrayLength, "pixel-array-length") | 1001 DECLARE_CONCRETE_INSTRUCTION(ExternalArrayLength, "pixel-array-length") |
Kevin Millikin (Chromium)
2011/03/07 15:41:45
The string "pixel-array-length" should change to "
danno
2011/03/08 10:01:56
Done.
| |
1001 DECLARE_HYDROGEN_ACCESSOR(PixelArrayLength) | 1002 DECLARE_HYDROGEN_ACCESSOR(ExternalArrayLength) |
1002 }; | 1003 }; |
1003 | 1004 |
1004 | 1005 |
1005 class LFixedArrayLength: public LTemplateInstruction<1, 1, 0> { | 1006 class LFixedArrayLength: public LTemplateInstruction<1, 1, 0> { |
1006 public: | 1007 public: |
1007 explicit LFixedArrayLength(LOperand* value) { | 1008 explicit LFixedArrayLength(LOperand* value) { |
1008 inputs_[0] = value; | 1009 inputs_[0] = value; |
1009 } | 1010 } |
1010 | 1011 |
1011 DECLARE_CONCRETE_INSTRUCTION(FixedArrayLength, "fixed-array-length") | 1012 DECLARE_CONCRETE_INSTRUCTION(FixedArrayLength, "fixed-array-length") |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1156 class LLoadElements: public LTemplateInstruction<1, 1, 0> { | 1157 class LLoadElements: public LTemplateInstruction<1, 1, 0> { |
1157 public: | 1158 public: |
1158 explicit LLoadElements(LOperand* object) { | 1159 explicit LLoadElements(LOperand* object) { |
1159 inputs_[0] = object; | 1160 inputs_[0] = object; |
1160 } | 1161 } |
1161 | 1162 |
1162 DECLARE_CONCRETE_INSTRUCTION(LoadElements, "load-elements") | 1163 DECLARE_CONCRETE_INSTRUCTION(LoadElements, "load-elements") |
1163 }; | 1164 }; |
1164 | 1165 |
1165 | 1166 |
1166 class LLoadPixelArrayExternalPointer: public LTemplateInstruction<1, 1, 0> { | 1167 class LLoadExternalArrayPointer: public LTemplateInstruction<1, 1, 0> { |
1167 public: | 1168 public: |
1168 explicit LLoadPixelArrayExternalPointer(LOperand* object) { | 1169 explicit LLoadExternalArrayPointer(LOperand* object) { |
1169 inputs_[0] = object; | 1170 inputs_[0] = object; |
1170 } | 1171 } |
1171 | 1172 |
1172 DECLARE_CONCRETE_INSTRUCTION(LoadPixelArrayExternalPointer, | 1173 DECLARE_CONCRETE_INSTRUCTION(LoadExternalArrayPointer, |
1173 "load-pixel-array-external-pointer") | 1174 "load-external-array-pointer") |
1174 }; | 1175 }; |
1175 | 1176 |
1176 | 1177 |
1177 class LLoadKeyedFastElement: public LTemplateInstruction<1, 2, 0> { | 1178 class LLoadKeyedFastElement: public LTemplateInstruction<1, 2, 0> { |
1178 public: | 1179 public: |
1179 LLoadKeyedFastElement(LOperand* elements, LOperand* key) { | 1180 LLoadKeyedFastElement(LOperand* elements, LOperand* key) { |
1180 inputs_[0] = elements; | 1181 inputs_[0] = elements; |
1181 inputs_[1] = key; | 1182 inputs_[1] = key; |
1182 } | 1183 } |
1183 | 1184 |
(...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1584 | 1585 |
1585 class LStoreKeyedGeneric: public LTemplateInstruction<0, 3, 0> { | 1586 class LStoreKeyedGeneric: public LTemplateInstruction<0, 3, 0> { |
1586 public: | 1587 public: |
1587 LStoreKeyedGeneric(LOperand* obj, LOperand* key, LOperand* val) { | 1588 LStoreKeyedGeneric(LOperand* obj, LOperand* key, LOperand* val) { |
1588 inputs_[0] = obj; | 1589 inputs_[0] = obj; |
1589 inputs_[1] = key; | 1590 inputs_[1] = key; |
1590 inputs_[2] = val; | 1591 inputs_[2] = val; |
1591 } | 1592 } |
1592 | 1593 |
1593 DECLARE_CONCRETE_INSTRUCTION(StoreKeyedGeneric, "store-keyed-generic") | 1594 DECLARE_CONCRETE_INSTRUCTION(StoreKeyedGeneric, "store-keyed-generic") |
1595 DECLARE_HYDROGEN_ACCESSOR(StoreKeyedGeneric) | |
1594 | 1596 |
1595 virtual void PrintDataTo(StringStream* stream); | 1597 virtual void PrintDataTo(StringStream* stream); |
1596 | 1598 |
1597 LOperand* object() { return inputs_[0]; } | 1599 LOperand* object() { return inputs_[0]; } |
1598 LOperand* key() { return inputs_[1]; } | 1600 LOperand* key() { return inputs_[1]; } |
1599 LOperand* value() { return inputs_[2]; } | 1601 LOperand* value() { return inputs_[2]; } |
1600 }; | 1602 }; |
1601 | 1603 |
1604 class LStorePixelArrayElement: public LTemplateInstruction<0, 3, 0> { | |
1605 public: | |
1606 LStorePixelArrayElement(LOperand* external_pointer, | |
1607 LOperand* key, | |
1608 LOperand* val) { | |
1609 inputs_[0] = external_pointer; | |
1610 inputs_[1] = key; | |
1611 inputs_[2] = val; | |
1612 } | |
1613 | |
1614 DECLARE_CONCRETE_INSTRUCTION(StorePixelArrayElement, | |
1615 "store-pixel-array-element") | |
1616 DECLARE_HYDROGEN_ACCESSOR(StorePixelArrayElement) | |
1617 | |
1618 LOperand* external_pointer() { return inputs_[0]; } | |
1619 LOperand* key() { return inputs_[1]; } | |
1620 LOperand* value() { return inputs_[2]; } | |
1621 }; | |
1602 | 1622 |
1603 class LStringCharCodeAt: public LTemplateInstruction<1, 2, 0> { | 1623 class LStringCharCodeAt: public LTemplateInstruction<1, 2, 0> { |
1604 public: | 1624 public: |
1605 LStringCharCodeAt(LOperand* string, LOperand* index) { | 1625 LStringCharCodeAt(LOperand* string, LOperand* index) { |
1606 inputs_[0] = string; | 1626 inputs_[0] = string; |
1607 inputs_[1] = index; | 1627 inputs_[1] = index; |
1608 } | 1628 } |
1609 | 1629 |
1610 DECLARE_CONCRETE_INSTRUCTION(StringCharCodeAt, "string-char-code-at") | 1630 DECLARE_CONCRETE_INSTRUCTION(StringCharCodeAt, "string-char-code-at") |
1611 DECLARE_HYDROGEN_ACCESSOR(StringCharCodeAt) | 1631 DECLARE_HYDROGEN_ACCESSOR(StringCharCodeAt) |
(...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2042 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2062 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2043 }; | 2063 }; |
2044 | 2064 |
2045 #undef DECLARE_HYDROGEN_ACCESSOR | 2065 #undef DECLARE_HYDROGEN_ACCESSOR |
2046 #undef DECLARE_INSTRUCTION | 2066 #undef DECLARE_INSTRUCTION |
2047 #undef DECLARE_CONCRETE_INSTRUCTION | 2067 #undef DECLARE_CONCRETE_INSTRUCTION |
2048 | 2068 |
2049 } } // namespace v8::internal | 2069 } } // namespace v8::internal |
2050 | 2070 |
2051 #endif // V8_ARM_LITHIUM_ARM_H_ | 2071 #endif // V8_ARM_LITHIUM_ARM_H_ |
OLD | NEW |