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

Side by Side Diff: src/arm/lithium-arm.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 | « no previous file | src/arm/lithium-arm.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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
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(LoadFunctionPrototype) \ 121 V(LoadFunctionPrototype) \
122 V(LoadGlobal) \ 122 V(LoadGlobal) \
123 V(LoadKeyedFastElement) \ 123 V(LoadKeyedFastElement) \
124 V(LoadKeyedGeneric) \ 124 V(LoadKeyedGeneric) \
125 V(LoadKeyedSpecializedArrayElement) \
125 V(LoadNamedField) \ 126 V(LoadNamedField) \
126 V(LoadNamedFieldPolymorphic) \ 127 V(LoadNamedFieldPolymorphic) \
127 V(LoadNamedGeneric) \ 128 V(LoadNamedGeneric) \
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(Throw) \ 158 V(Throw) \
159 V(ToFastProperties) \ 159 V(ToFastProperties) \
160 V(Typeof) \ 160 V(Typeof) \
161 V(TypeofIs) \ 161 V(TypeofIs) \
162 V(TypeofIsAndBranch) \ 162 V(TypeofIsAndBranch) \
(...skipping 1055 matching lines...) Expand 10 before | Expand all | Expand 10 after
1218 } 1218 }
1219 1219
1220 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedFastElement, "load-keyed-fast-element") 1220 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedFastElement, "load-keyed-fast-element")
1221 DECLARE_HYDROGEN_ACCESSOR(LoadKeyedFastElement) 1221 DECLARE_HYDROGEN_ACCESSOR(LoadKeyedFastElement)
1222 1222
1223 LOperand* elements() { return inputs_[0]; } 1223 LOperand* elements() { return inputs_[0]; }
1224 LOperand* key() { return inputs_[1]; } 1224 LOperand* key() { return inputs_[1]; }
1225 }; 1225 };
1226 1226
1227 1227
1228 class LLoadPixelArrayElement: public LTemplateInstruction<1, 2, 0> { 1228 class LLoadKeyedSpecializedArrayElement: public LTemplateInstruction<1, 2, 0> {
1229 public: 1229 public:
1230 LLoadPixelArrayElement(LOperand* external_pointer, LOperand* key) { 1230 LLoadKeyedSpecializedArrayElement(LOperand* external_pointer,
1231 LOperand* key) {
1231 inputs_[0] = external_pointer; 1232 inputs_[0] = external_pointer;
1232 inputs_[1] = key; 1233 inputs_[1] = key;
1233 } 1234 }
1234 1235
1235 DECLARE_CONCRETE_INSTRUCTION(LoadPixelArrayElement, 1236 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedSpecializedArrayElement,
1236 "load-pixel-array-element") 1237 "load-keyed-specialized-array-element")
1237 DECLARE_HYDROGEN_ACCESSOR(LoadPixelArrayElement) 1238 DECLARE_HYDROGEN_ACCESSOR(LoadKeyedSpecializedArrayElement)
1238 1239
1239 LOperand* external_pointer() { return inputs_[0]; } 1240 LOperand* external_pointer() { return inputs_[0]; }
1240 LOperand* key() { return inputs_[1]; } 1241 LOperand* key() { return inputs_[1]; }
1242 ExternalArrayType array_type() const {
1243 return hydrogen()->array_type();
1244 }
1241 }; 1245 };
1242 1246
1243 1247
1244 class LLoadKeyedGeneric: public LTemplateInstruction<1, 2, 0> { 1248 class LLoadKeyedGeneric: public LTemplateInstruction<1, 2, 0> {
1245 public: 1249 public:
1246 LLoadKeyedGeneric(LOperand* obj, LOperand* key) { 1250 LLoadKeyedGeneric(LOperand* obj, LOperand* key) {
1247 inputs_[0] = obj; 1251 inputs_[0] = obj;
1248 inputs_[1] = key; 1252 inputs_[1] = key;
1249 } 1253 }
1250 1254
(...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after
1635 DECLARE_CONCRETE_INSTRUCTION(StoreKeyedGeneric, "store-keyed-generic") 1639 DECLARE_CONCRETE_INSTRUCTION(StoreKeyedGeneric, "store-keyed-generic")
1636 DECLARE_HYDROGEN_ACCESSOR(StoreKeyedGeneric) 1640 DECLARE_HYDROGEN_ACCESSOR(StoreKeyedGeneric)
1637 1641
1638 virtual void PrintDataTo(StringStream* stream); 1642 virtual void PrintDataTo(StringStream* stream);
1639 1643
1640 LOperand* object() { return inputs_[0]; } 1644 LOperand* object() { return inputs_[0]; }
1641 LOperand* key() { return inputs_[1]; } 1645 LOperand* key() { return inputs_[1]; }
1642 LOperand* value() { return inputs_[2]; } 1646 LOperand* value() { return inputs_[2]; }
1643 }; 1647 };
1644 1648
1645 class LStorePixelArrayElement: public LTemplateInstruction<0, 3, 0> { 1649 class LStoreKeyedSpecializedArrayElement: public LTemplateInstruction<0, 3, 0> {
1646 public: 1650 public:
1647 LStorePixelArrayElement(LOperand* external_pointer, 1651 LStoreKeyedSpecializedArrayElement(LOperand* external_pointer,
1648 LOperand* key, 1652 LOperand* key,
1649 LOperand* val) { 1653 LOperand* val) {
1650 inputs_[0] = external_pointer; 1654 inputs_[0] = external_pointer;
1651 inputs_[1] = key; 1655 inputs_[1] = key;
1652 inputs_[2] = val; 1656 inputs_[2] = val;
1653 } 1657 }
1654 1658
1655 DECLARE_CONCRETE_INSTRUCTION(StorePixelArrayElement, 1659 DECLARE_CONCRETE_INSTRUCTION(StoreKeyedSpecializedArrayElement,
1656 "store-pixel-array-element") 1660 "store-keyed-specialized-array-element")
1657 DECLARE_HYDROGEN_ACCESSOR(StorePixelArrayElement) 1661 DECLARE_HYDROGEN_ACCESSOR(StoreKeyedSpecializedArrayElement)
1658 1662
1659 LOperand* external_pointer() { return inputs_[0]; } 1663 LOperand* external_pointer() { return inputs_[0]; }
1660 LOperand* key() { return inputs_[1]; } 1664 LOperand* key() { return inputs_[1]; }
1661 LOperand* value() { return inputs_[2]; } 1665 LOperand* value() { return inputs_[2]; }
1666 ExternalArrayType array_type() const {
1667 return hydrogen()->array_type();
1668 }
1662 }; 1669 };
1663 1670
1671
1664 class LStringCharCodeAt: public LTemplateInstruction<1, 2, 0> { 1672 class LStringCharCodeAt: public LTemplateInstruction<1, 2, 0> {
1665 public: 1673 public:
1666 LStringCharCodeAt(LOperand* string, LOperand* index) { 1674 LStringCharCodeAt(LOperand* string, LOperand* index) {
1667 inputs_[0] = string; 1675 inputs_[0] = string;
1668 inputs_[1] = index; 1676 inputs_[1] = index;
1669 } 1677 }
1670 1678
1671 DECLARE_CONCRETE_INSTRUCTION(StringCharCodeAt, "string-char-code-at") 1679 DECLARE_CONCRETE_INSTRUCTION(StringCharCodeAt, "string-char-code-at")
1672 DECLARE_HYDROGEN_ACCESSOR(StringCharCodeAt) 1680 DECLARE_HYDROGEN_ACCESSOR(StringCharCodeAt)
1673 1681
(...skipping 454 matching lines...) Expand 10 before | Expand all | Expand 10 after
2128 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2136 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2129 }; 2137 };
2130 2138
2131 #undef DECLARE_HYDROGEN_ACCESSOR 2139 #undef DECLARE_HYDROGEN_ACCESSOR
2132 #undef DECLARE_INSTRUCTION 2140 #undef DECLARE_INSTRUCTION
2133 #undef DECLARE_CONCRETE_INSTRUCTION 2141 #undef DECLARE_CONCRETE_INSTRUCTION
2134 2142
2135 } } // namespace v8::internal 2143 } } // namespace v8::internal
2136 2144
2137 #endif // V8_ARM_LITHIUM_ARM_H_ 2145 #endif // V8_ARM_LITHIUM_ARM_H_
OLDNEW
« no previous file with comments | « no previous file | src/arm/lithium-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698