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

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

Issue 7350021: Crankshaft support for FixedDoubleArrays (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: review feedback Created 9 years, 5 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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 V(JSArrayLength) \ 109 V(JSArrayLength) \
110 V(Label) \ 110 V(Label) \
111 V(LazyBailout) \ 111 V(LazyBailout) \
112 V(LoadContextSlot) \ 112 V(LoadContextSlot) \
113 V(LoadElements) \ 113 V(LoadElements) \
114 V(LoadExternalArrayPointer) \ 114 V(LoadExternalArrayPointer) \
115 V(LoadFunctionPrototype) \ 115 V(LoadFunctionPrototype) \
116 V(LoadGlobalCell) \ 116 V(LoadGlobalCell) \
117 V(LoadGlobalGeneric) \ 117 V(LoadGlobalGeneric) \
118 V(LoadKeyedFastElement) \ 118 V(LoadKeyedFastElement) \
119 V(LoadKeyedFastDoubleElement) \
119 V(LoadKeyedGeneric) \ 120 V(LoadKeyedGeneric) \
120 V(LoadKeyedSpecializedArrayElement) \ 121 V(LoadKeyedSpecializedArrayElement) \
121 V(LoadNamedField) \ 122 V(LoadNamedField) \
122 V(LoadNamedFieldPolymorphic) \ 123 V(LoadNamedFieldPolymorphic) \
123 V(LoadNamedGeneric) \ 124 V(LoadNamedGeneric) \
124 V(ModI) \ 125 V(ModI) \
125 V(MulI) \ 126 V(MulI) \
126 V(NumberTagD) \ 127 V(NumberTagD) \
127 V(NumberTagI) \ 128 V(NumberTagI) \
128 V(NumberUntagD) \ 129 V(NumberUntagD) \
129 V(ObjectLiteral) \ 130 V(ObjectLiteral) \
130 V(OsrEntry) \ 131 V(OsrEntry) \
131 V(OuterContext) \ 132 V(OuterContext) \
132 V(Parameter) \ 133 V(Parameter) \
133 V(Power) \ 134 V(Power) \
134 V(PushArgument) \ 135 V(PushArgument) \
135 V(RegExpLiteral) \ 136 V(RegExpLiteral) \
136 V(Return) \ 137 V(Return) \
137 V(ShiftI) \ 138 V(ShiftI) \
138 V(SmiTag) \ 139 V(SmiTag) \
139 V(SmiUntag) \ 140 V(SmiUntag) \
140 V(StackCheck) \ 141 V(StackCheck) \
141 V(StoreContextSlot) \ 142 V(StoreContextSlot) \
142 V(StoreGlobalCell) \ 143 V(StoreGlobalCell) \
143 V(StoreGlobalGeneric) \ 144 V(StoreGlobalGeneric) \
145 V(StoreKeyedFastDoubleElement) \
144 V(StoreKeyedFastElement) \ 146 V(StoreKeyedFastElement) \
145 V(StoreKeyedGeneric) \ 147 V(StoreKeyedGeneric) \
146 V(StoreKeyedSpecializedArrayElement) \ 148 V(StoreKeyedSpecializedArrayElement) \
147 V(StoreNamedField) \ 149 V(StoreNamedField) \
148 V(StoreNamedGeneric) \ 150 V(StoreNamedGeneric) \
149 V(StringAdd) \ 151 V(StringAdd) \
150 V(StringCharCodeAt) \ 152 V(StringCharCodeAt) \
151 V(StringCharFromCode) \ 153 V(StringCharFromCode) \
152 V(StringLength) \ 154 V(StringLength) \
153 V(SubI) \ 155 V(SubI) \
(...skipping 1000 matching lines...) Expand 10 before | Expand all | Expand 10 after
1154 } 1156 }
1155 1157
1156 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedFastElement, "load-keyed-fast-element") 1158 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedFastElement, "load-keyed-fast-element")
1157 DECLARE_HYDROGEN_ACCESSOR(LoadKeyedFastElement) 1159 DECLARE_HYDROGEN_ACCESSOR(LoadKeyedFastElement)
1158 1160
1159 LOperand* elements() { return inputs_[0]; } 1161 LOperand* elements() { return inputs_[0]; }
1160 LOperand* key() { return inputs_[1]; } 1162 LOperand* key() { return inputs_[1]; }
1161 }; 1163 };
1162 1164
1163 1165
1166 class LLoadKeyedFastDoubleElement: public LTemplateInstruction<1, 2, 0> {
1167 public:
1168 LLoadKeyedFastDoubleElement(LOperand* elements,
1169 LOperand* key) {
1170 inputs_[0] = elements;
1171 inputs_[1] = key;
1172 }
1173
1174 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedFastDoubleElement,
1175 "load-keyed-fast-double-element")
1176 DECLARE_HYDROGEN_ACCESSOR(LoadKeyedFastDoubleElement)
1177
1178 LOperand* elements() { return inputs_[0]; }
1179 LOperand* key() { return inputs_[1]; }
1180 };
1181
1182
1164 class LLoadKeyedSpecializedArrayElement: public LTemplateInstruction<1, 2, 0> { 1183 class LLoadKeyedSpecializedArrayElement: public LTemplateInstruction<1, 2, 0> {
1165 public: 1184 public:
1166 LLoadKeyedSpecializedArrayElement(LOperand* external_pointer, 1185 LLoadKeyedSpecializedArrayElement(LOperand* external_pointer,
1167 LOperand* key) { 1186 LOperand* key) {
1168 inputs_[0] = external_pointer; 1187 inputs_[0] = external_pointer;
1169 inputs_[1] = key; 1188 inputs_[1] = key;
1170 } 1189 }
1171 1190
1172 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedSpecializedArrayElement, 1191 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedSpecializedArrayElement,
1173 "load-keyed-specialized-array-element") 1192 "load-keyed-specialized-array-element")
(...skipping 470 matching lines...) Expand 10 before | Expand all | Expand 10 after
1644 DECLARE_HYDROGEN_ACCESSOR(StoreKeyedFastElement) 1663 DECLARE_HYDROGEN_ACCESSOR(StoreKeyedFastElement)
1645 1664
1646 virtual void PrintDataTo(StringStream* stream); 1665 virtual void PrintDataTo(StringStream* stream);
1647 1666
1648 LOperand* object() { return inputs_[0]; } 1667 LOperand* object() { return inputs_[0]; }
1649 LOperand* key() { return inputs_[1]; } 1668 LOperand* key() { return inputs_[1]; }
1650 LOperand* value() { return inputs_[2]; } 1669 LOperand* value() { return inputs_[2]; }
1651 }; 1670 };
1652 1671
1653 1672
1673 class LStoreKeyedFastDoubleElement: public LTemplateInstruction<0, 3, 0> {
1674 public:
1675 LStoreKeyedFastDoubleElement(LOperand* elements,
1676 LOperand* key,
1677 LOperand* val) {
1678 inputs_[0] = elements;
1679 inputs_[1] = key;
1680 inputs_[2] = val;
1681 }
1682
1683 DECLARE_CONCRETE_INSTRUCTION(StoreKeyedFastDoubleElement,
1684 "store-keyed-fast-double-element")
1685 DECLARE_HYDROGEN_ACCESSOR(StoreKeyedFastDoubleElement)
1686
1687 virtual void PrintDataTo(StringStream* stream);
1688
1689 LOperand* elements() { return inputs_[0]; }
1690 LOperand* key() { return inputs_[1]; }
1691 LOperand* value() { return inputs_[2]; }
1692 };
1693
1694
1654 class LStoreKeyedSpecializedArrayElement: public LTemplateInstruction<0, 3, 0> { 1695 class LStoreKeyedSpecializedArrayElement: public LTemplateInstruction<0, 3, 0> {
1655 public: 1696 public:
1656 LStoreKeyedSpecializedArrayElement(LOperand* external_pointer, 1697 LStoreKeyedSpecializedArrayElement(LOperand* external_pointer,
1657 LOperand* key, 1698 LOperand* key,
1658 LOperand* val) { 1699 LOperand* val) {
1659 inputs_[0] = external_pointer; 1700 inputs_[0] = external_pointer;
1660 inputs_[1] = key; 1701 inputs_[1] = key;
1661 inputs_[2] = val; 1702 inputs_[2] = val;
1662 } 1703 }
1663 1704
(...skipping 587 matching lines...) Expand 10 before | Expand all | Expand 10 after
2251 2292
2252 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2293 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2253 }; 2294 };
2254 2295
2255 #undef DECLARE_HYDROGEN_ACCESSOR 2296 #undef DECLARE_HYDROGEN_ACCESSOR
2256 #undef DECLARE_CONCRETE_INSTRUCTION 2297 #undef DECLARE_CONCRETE_INSTRUCTION
2257 2298
2258 } } // namespace v8::internal 2299 } } // namespace v8::internal
2259 2300
2260 #endif // V8_IA32_LITHIUM_IA32_H_ 2301 #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