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

Side by Side Diff: src/x64/lithium-x64.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/x64/lithium-codegen-x64.cc ('k') | src/x64/lithium-x64.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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 V(IsSmiAndBranch) \ 114 V(IsSmiAndBranch) \
115 V(JSArrayLength) \ 115 V(JSArrayLength) \
116 V(Label) \ 116 V(Label) \
117 V(LazyBailout) \ 117 V(LazyBailout) \
118 V(LoadContextSlot) \ 118 V(LoadContextSlot) \
119 V(LoadElements) \ 119 V(LoadElements) \
120 V(LoadExternalArrayPointer) \ 120 V(LoadExternalArrayPointer) \
121 V(LoadGlobal) \ 121 V(LoadGlobal) \
122 V(LoadKeyedFastElement) \ 122 V(LoadKeyedFastElement) \
123 V(LoadKeyedGeneric) \ 123 V(LoadKeyedGeneric) \
124 V(LoadKeyedSpecializedArrayElement) \
124 V(LoadNamedField) \ 125 V(LoadNamedField) \
125 V(LoadNamedFieldPolymorphic) \ 126 V(LoadNamedFieldPolymorphic) \
126 V(LoadNamedGeneric) \ 127 V(LoadNamedGeneric) \
127 V(LoadFunctionPrototype) \ 128 V(LoadFunctionPrototype) \
128 V(LoadPixelArrayElement) \
129 V(ModI) \ 129 V(ModI) \
130 V(MulI) \ 130 V(MulI) \
131 V(NumberTagD) \ 131 V(NumberTagD) \
132 V(NumberTagI) \ 132 V(NumberTagI) \
133 V(NumberUntagD) \ 133 V(NumberUntagD) \
134 V(ObjectLiteral) \ 134 V(ObjectLiteral) \
135 V(OsrEntry) \ 135 V(OsrEntry) \
136 V(OuterContext) \ 136 V(OuterContext) \
137 V(Parameter) \ 137 V(Parameter) \
138 V(Power) \ 138 V(Power) \
139 V(PushArgument) \ 139 V(PushArgument) \
140 V(RegExpLiteral) \ 140 V(RegExpLiteral) \
141 V(Return) \ 141 V(Return) \
142 V(ShiftI) \ 142 V(ShiftI) \
143 V(SmiTag) \ 143 V(SmiTag) \
144 V(SmiUntag) \ 144 V(SmiUntag) \
145 V(StackCheck) \ 145 V(StackCheck) \
146 V(StoreContextSlot) \ 146 V(StoreContextSlot) \
147 V(StoreGlobal) \ 147 V(StoreGlobal) \
148 V(StoreKeyedFastElement) \ 148 V(StoreKeyedFastElement) \
149 V(StoreKeyedGeneric) \ 149 V(StoreKeyedGeneric) \
150 V(StoreKeyedSpecializedArrayElement) \
150 V(StoreNamedField) \ 151 V(StoreNamedField) \
151 V(StoreNamedGeneric) \ 152 V(StoreNamedGeneric) \
152 V(StorePixelArrayElement) \
153 V(StringCharCodeAt) \ 153 V(StringCharCodeAt) \
154 V(StringCharFromCode) \ 154 V(StringCharFromCode) \
155 V(StringLength) \ 155 V(StringLength) \
156 V(SubI) \ 156 V(SubI) \
157 V(TaggedToI) \ 157 V(TaggedToI) \
158 V(ToFastProperties) \ 158 V(ToFastProperties) \
159 V(Throw) \ 159 V(Throw) \
160 V(Typeof) \ 160 V(Typeof) \
161 V(TypeofIs) \ 161 V(TypeofIs) \
162 V(TypeofIsAndBranch) \ 162 V(TypeofIsAndBranch) \
(...skipping 1041 matching lines...) Expand 10 before | Expand all | Expand 10 after
1204 } 1204 }
1205 1205
1206 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedFastElement, "load-keyed-fast-element") 1206 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedFastElement, "load-keyed-fast-element")
1207 DECLARE_HYDROGEN_ACCESSOR(LoadKeyedFastElement) 1207 DECLARE_HYDROGEN_ACCESSOR(LoadKeyedFastElement)
1208 1208
1209 LOperand* elements() { return inputs_[0]; } 1209 LOperand* elements() { return inputs_[0]; }
1210 LOperand* key() { return inputs_[1]; } 1210 LOperand* key() { return inputs_[1]; }
1211 }; 1211 };
1212 1212
1213 1213
1214 class LLoadPixelArrayElement: public LTemplateInstruction<1, 2, 0> { 1214 class LLoadKeyedSpecializedArrayElement: public LTemplateInstruction<1, 2, 0> {
1215 public: 1215 public:
1216 LLoadPixelArrayElement(LOperand* external_pointer, LOperand* key) { 1216 LLoadKeyedSpecializedArrayElement(LOperand* external_pointer,
1217 LOperand* key) {
1217 inputs_[0] = external_pointer; 1218 inputs_[0] = external_pointer;
1218 inputs_[1] = key; 1219 inputs_[1] = key;
1219 } 1220 }
1220 1221
1221 DECLARE_CONCRETE_INSTRUCTION(LoadPixelArrayElement, 1222 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedSpecializedArrayElement,
1222 "load-pixel-array-element") 1223 "load-keyed-specialized-array-element")
1223 DECLARE_HYDROGEN_ACCESSOR(LoadPixelArrayElement) 1224 DECLARE_HYDROGEN_ACCESSOR(LoadKeyedSpecializedArrayElement)
1224 1225
1225 LOperand* external_pointer() { return inputs_[0]; } 1226 LOperand* external_pointer() { return inputs_[0]; }
1226 LOperand* key() { return inputs_[1]; } 1227 LOperand* key() { return inputs_[1]; }
1228 ExternalArrayType array_type() const {
1229 return hydrogen()->array_type();
1230 }
1227 }; 1231 };
1228 1232
1229 1233
1230 class LLoadKeyedGeneric: public LTemplateInstruction<1, 2, 0> { 1234 class LLoadKeyedGeneric: public LTemplateInstruction<1, 2, 0> {
1231 public: 1235 public:
1232 LLoadKeyedGeneric(LOperand* obj, LOperand* key) { 1236 LLoadKeyedGeneric(LOperand* obj, LOperand* key) {
1233 inputs_[0] = obj; 1237 inputs_[0] = obj;
1234 inputs_[1] = key; 1238 inputs_[1] = key;
1235 } 1239 }
1236 1240
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after
1594 DECLARE_HYDROGEN_ACCESSOR(StoreKeyedFastElement) 1598 DECLARE_HYDROGEN_ACCESSOR(StoreKeyedFastElement)
1595 1599
1596 virtual void PrintDataTo(StringStream* stream); 1600 virtual void PrintDataTo(StringStream* stream);
1597 1601
1598 LOperand* object() { return inputs_[0]; } 1602 LOperand* object() { return inputs_[0]; }
1599 LOperand* key() { return inputs_[1]; } 1603 LOperand* key() { return inputs_[1]; }
1600 LOperand* value() { return inputs_[2]; } 1604 LOperand* value() { return inputs_[2]; }
1601 }; 1605 };
1602 1606
1603 1607
1604 class LStorePixelArrayElement: public LTemplateInstruction<0, 3, 0> { 1608 class LStoreKeyedSpecializedArrayElement: public LTemplateInstruction<0, 3, 0> {
1605 public: 1609 public:
1606 LStorePixelArrayElement(LOperand* external_pointer, 1610 LStoreKeyedSpecializedArrayElement(LOperand* external_pointer,
1607 LOperand* key, 1611 LOperand* key,
1608 LOperand* val) { 1612 LOperand* val) {
1609 inputs_[0] = external_pointer; 1613 inputs_[0] = external_pointer;
1610 inputs_[1] = key; 1614 inputs_[1] = key;
1611 inputs_[2] = val; 1615 inputs_[2] = val;
1612 } 1616 }
1613 1617
1614 DECLARE_CONCRETE_INSTRUCTION(StorePixelArrayElement, 1618 DECLARE_CONCRETE_INSTRUCTION(StoreKeyedSpecializedArrayElement,
1615 "store-pixel-array-element") 1619 "store-keyed-specialized-array-element")
1616 DECLARE_HYDROGEN_ACCESSOR(StorePixelArrayElement) 1620 DECLARE_HYDROGEN_ACCESSOR(StoreKeyedSpecializedArrayElement)
1617 1621
1618 LOperand* external_pointer() { return inputs_[0]; } 1622 LOperand* external_pointer() { return inputs_[0]; }
1619 LOperand* key() { return inputs_[1]; } 1623 LOperand* key() { return inputs_[1]; }
1620 LOperand* value() { return inputs_[2]; } 1624 LOperand* value() { return inputs_[2]; }
1625 ExternalArrayType array_type() const {
1626 return hydrogen()->array_type();
1627 }
1621 }; 1628 };
1622 1629
1623 1630
1624 class LStoreKeyedGeneric: public LTemplateInstruction<0, 3, 0> { 1631 class LStoreKeyedGeneric: public LTemplateInstruction<0, 3, 0> {
1625 public: 1632 public:
1626 LStoreKeyedGeneric(LOperand* object, LOperand* key, LOperand* value) { 1633 LStoreKeyedGeneric(LOperand* object, LOperand* key, LOperand* value) {
1627 inputs_[0] = object; 1634 inputs_[0] = object;
1628 inputs_[1] = key; 1635 inputs_[1] = key;
1629 inputs_[2] = value; 1636 inputs_[2] = value;
1630 } 1637 }
(...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after
2111 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2118 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2112 }; 2119 };
2113 2120
2114 #undef DECLARE_HYDROGEN_ACCESSOR 2121 #undef DECLARE_HYDROGEN_ACCESSOR
2115 #undef DECLARE_INSTRUCTION 2122 #undef DECLARE_INSTRUCTION
2116 #undef DECLARE_CONCRETE_INSTRUCTION 2123 #undef DECLARE_CONCRETE_INSTRUCTION
2117 2124
2118 } } // namespace v8::int 2125 } } // namespace v8::int
2119 2126
2120 #endif // V8_X64_LITHIUM_X64_H_ 2127 #endif // V8_X64_LITHIUM_X64_H_
OLDNEW
« no previous file with comments | « src/x64/lithium-codegen-x64.cc ('k') | src/x64/lithium-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698