Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(346)

Side by Side Diff: src/ia32/lithium-ia32.h

Issue 6656001: Support external arrays in Crankshaft (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: final version Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/ia32/lithium-codegen-ia32.cc ('k') | src/ia32/lithium-ia32.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 V(JSArrayLength) \ 117 V(JSArrayLength) \
118 V(Label) \ 118 V(Label) \
119 V(LazyBailout) \ 119 V(LazyBailout) \
120 V(LoadContextSlot) \ 120 V(LoadContextSlot) \
121 V(LoadElements) \ 121 V(LoadElements) \
122 V(LoadExternalArrayPointer) \ 122 V(LoadExternalArrayPointer) \
123 V(LoadFunctionPrototype) \ 123 V(LoadFunctionPrototype) \
124 V(LoadGlobal) \ 124 V(LoadGlobal) \
125 V(LoadKeyedFastElement) \ 125 V(LoadKeyedFastElement) \
126 V(LoadKeyedGeneric) \ 126 V(LoadKeyedGeneric) \
127 V(LoadKeyedSpecializedArrayElement) \
127 V(LoadNamedField) \ 128 V(LoadNamedField) \
128 V(LoadNamedFieldPolymorphic) \ 129 V(LoadNamedFieldPolymorphic) \
129 V(LoadNamedGeneric) \ 130 V(LoadNamedGeneric) \
130 V(LoadPixelArrayElement) \
131 V(ModI) \ 131 V(ModI) \
132 V(MulI) \ 132 V(MulI) \
133 V(NumberTagD) \ 133 V(NumberTagD) \
134 V(NumberTagI) \ 134 V(NumberTagI) \
135 V(NumberUntagD) \ 135 V(NumberUntagD) \
136 V(ObjectLiteral) \ 136 V(ObjectLiteral) \
137 V(OsrEntry) \ 137 V(OsrEntry) \
138 V(OuterContext) \ 138 V(OuterContext) \
139 V(Parameter) \ 139 V(Parameter) \
140 V(Power) \ 140 V(Power) \
141 V(PushArgument) \ 141 V(PushArgument) \
142 V(RegExpLiteral) \ 142 V(RegExpLiteral) \
143 V(Return) \ 143 V(Return) \
144 V(ShiftI) \ 144 V(ShiftI) \
145 V(SmiTag) \ 145 V(SmiTag) \
146 V(SmiUntag) \ 146 V(SmiUntag) \
147 V(StackCheck) \ 147 V(StackCheck) \
148 V(StoreContextSlot) \ 148 V(StoreContextSlot) \
149 V(StoreGlobal) \ 149 V(StoreGlobal) \
150 V(StoreKeyedFastElement) \ 150 V(StoreKeyedFastElement) \
151 V(StoreKeyedGeneric) \ 151 V(StoreKeyedGeneric) \
152 V(StoreKeyedSpecializedArrayElement) \
152 V(StoreNamedField) \ 153 V(StoreNamedField) \
153 V(StoreNamedGeneric) \ 154 V(StoreNamedGeneric) \
154 V(StorePixelArrayElement) \
155 V(StringCharCodeAt) \ 155 V(StringCharCodeAt) \
156 V(StringCharFromCode) \ 156 V(StringCharFromCode) \
157 V(StringLength) \ 157 V(StringLength) \
158 V(SubI) \ 158 V(SubI) \
159 V(TaggedToI) \ 159 V(TaggedToI) \
160 V(Throw) \ 160 V(Throw) \
161 V(ToFastProperties) \ 161 V(ToFastProperties) \
162 V(Typeof) \ 162 V(Typeof) \
163 V(TypeofIs) \ 163 V(TypeofIs) \
164 V(TypeofIsAndBranch) \ 164 V(TypeofIsAndBranch) \
(...skipping 1084 matching lines...) Expand 10 before | Expand all | Expand 10 after
1249 } 1249 }
1250 1250
1251 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedFastElement, "load-keyed-fast-element") 1251 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedFastElement, "load-keyed-fast-element")
1252 DECLARE_HYDROGEN_ACCESSOR(LoadKeyedFastElement) 1252 DECLARE_HYDROGEN_ACCESSOR(LoadKeyedFastElement)
1253 1253
1254 LOperand* elements() { return inputs_[0]; } 1254 LOperand* elements() { return inputs_[0]; }
1255 LOperand* key() { return inputs_[1]; } 1255 LOperand* key() { return inputs_[1]; }
1256 }; 1256 };
1257 1257
1258 1258
1259 class LLoadPixelArrayElement: public LTemplateInstruction<1, 2, 0> { 1259 class LLoadKeyedSpecializedArrayElement: public LTemplateInstruction<1, 2, 0> {
1260 public: 1260 public:
1261 LLoadPixelArrayElement(LOperand* external_pointer, LOperand* key) { 1261 LLoadKeyedSpecializedArrayElement(LOperand* external_pointer,
1262 LOperand* key) {
1262 inputs_[0] = external_pointer; 1263 inputs_[0] = external_pointer;
1263 inputs_[1] = key; 1264 inputs_[1] = key;
1264 } 1265 }
1265 1266
1266 DECLARE_CONCRETE_INSTRUCTION(LoadPixelArrayElement, 1267 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedSpecializedArrayElement,
1267 "load-pixel-array-element") 1268 "load-keyed-specialized-array-element")
1268 DECLARE_HYDROGEN_ACCESSOR(LoadPixelArrayElement) 1269 DECLARE_HYDROGEN_ACCESSOR(LoadKeyedSpecializedArrayElement)
1269 1270
1270 LOperand* external_pointer() { return inputs_[0]; } 1271 LOperand* external_pointer() { return inputs_[0]; }
1271 LOperand* key() { return inputs_[1]; } 1272 LOperand* key() { return inputs_[1]; }
1273 ExternalArrayType array_type() const {
1274 return hydrogen()->array_type();
1275 }
1272 }; 1276 };
1273 1277
1274 1278
1275 class LLoadKeyedGeneric: public LTemplateInstruction<1, 3, 0> { 1279 class LLoadKeyedGeneric: public LTemplateInstruction<1, 3, 0> {
1276 public: 1280 public:
1277 LLoadKeyedGeneric(LOperand* context, LOperand* obj, LOperand* key) { 1281 LLoadKeyedGeneric(LOperand* context, LOperand* obj, LOperand* key) {
1278 inputs_[0] = context; 1282 inputs_[0] = context;
1279 inputs_[1] = obj; 1283 inputs_[1] = obj;
1280 inputs_[2] = key; 1284 inputs_[2] = key;
1281 } 1285 }
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after
1667 DECLARE_HYDROGEN_ACCESSOR(StoreKeyedFastElement) 1671 DECLARE_HYDROGEN_ACCESSOR(StoreKeyedFastElement)
1668 1672
1669 virtual void PrintDataTo(StringStream* stream); 1673 virtual void PrintDataTo(StringStream* stream);
1670 1674
1671 LOperand* object() { return inputs_[0]; } 1675 LOperand* object() { return inputs_[0]; }
1672 LOperand* key() { return inputs_[1]; } 1676 LOperand* key() { return inputs_[1]; }
1673 LOperand* value() { return inputs_[2]; } 1677 LOperand* value() { return inputs_[2]; }
1674 }; 1678 };
1675 1679
1676 1680
1677 class LStorePixelArrayElement: public LTemplateInstruction<0, 3, 1> { 1681 class LStoreKeyedSpecializedArrayElement: public LTemplateInstruction<0, 3, 1> {
1678 public: 1682 public:
1679 LStorePixelArrayElement(LOperand* external_pointer, 1683 LStoreKeyedSpecializedArrayElement(LOperand* external_pointer,
1680 LOperand* key, 1684 LOperand* key,
1681 LOperand* val, 1685 LOperand* val,
1682 LOperand* clamped) { 1686 LOperand* temp) {
1683 inputs_[0] = external_pointer; 1687 inputs_[0] = external_pointer;
1684 inputs_[1] = key; 1688 inputs_[1] = key;
1685 inputs_[2] = val; 1689 inputs_[2] = val;
1686 temps_[0] = clamped; 1690 temps_[0] = temp;
1687 } 1691 }
1688 1692
1689 DECLARE_CONCRETE_INSTRUCTION(StorePixelArrayElement, 1693 DECLARE_CONCRETE_INSTRUCTION(StoreKeyedSpecializedArrayElement,
1690 "store-pixel-array-element") 1694 "store-keyed-specialized-array-element")
1691 DECLARE_HYDROGEN_ACCESSOR(StorePixelArrayElement) 1695 DECLARE_HYDROGEN_ACCESSOR(StoreKeyedSpecializedArrayElement)
1692 1696
1693 LOperand* external_pointer() { return inputs_[0]; } 1697 LOperand* external_pointer() { return inputs_[0]; }
1694 LOperand* key() { return inputs_[1]; } 1698 LOperand* key() { return inputs_[1]; }
1695 LOperand* value() { return inputs_[2]; } 1699 LOperand* value() { return inputs_[2]; }
1700 ExternalArrayType array_type() const {
1701 return hydrogen()->array_type();
1702 }
1696 }; 1703 };
1697 1704
1698 1705
1699 class LStoreKeyedGeneric: public LTemplateInstruction<0, 4, 0> { 1706 class LStoreKeyedGeneric: public LTemplateInstruction<0, 4, 0> {
1700 public: 1707 public:
1701 LStoreKeyedGeneric(LOperand* context, 1708 LStoreKeyedGeneric(LOperand* context,
1702 LOperand* object, 1709 LOperand* object,
1703 LOperand* key, 1710 LOperand* key,
1704 LOperand* value) { 1711 LOperand* value) {
1705 inputs_[0] = context; 1712 inputs_[0] = context;
(...skipping 474 matching lines...) Expand 10 before | Expand all | Expand 10 after
2180 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2187 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2181 }; 2188 };
2182 2189
2183 #undef DECLARE_HYDROGEN_ACCESSOR 2190 #undef DECLARE_HYDROGEN_ACCESSOR
2184 #undef DECLARE_INSTRUCTION 2191 #undef DECLARE_INSTRUCTION
2185 #undef DECLARE_CONCRETE_INSTRUCTION 2192 #undef DECLARE_CONCRETE_INSTRUCTION
2186 2193
2187 } } // namespace v8::internal 2194 } } // namespace v8::internal
2188 2195
2189 #endif // V8_IA32_LITHIUM_IA32_H_ 2196 #endif // V8_IA32_LITHIUM_IA32_H_
OLDNEW
« no previous file with comments | « src/ia32/lithium-codegen-ia32.cc ('k') | src/ia32/lithium-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698