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

Side by Side Diff: src/x64/lithium-x64.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/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(IsUndetectableAndBranch) \ 114 V(IsUndetectableAndBranch) \
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(LoadGlobalCell) \ 122 V(LoadGlobalCell) \
123 V(LoadGlobalGeneric) \ 123 V(LoadGlobalGeneric) \
124 V(LoadKeyedFastDoubleElement) \
124 V(LoadKeyedFastElement) \ 125 V(LoadKeyedFastElement) \
125 V(LoadKeyedGeneric) \ 126 V(LoadKeyedGeneric) \
126 V(LoadKeyedSpecializedArrayElement) \ 127 V(LoadKeyedSpecializedArrayElement) \
127 V(LoadNamedField) \ 128 V(LoadNamedField) \
128 V(LoadNamedFieldPolymorphic) \ 129 V(LoadNamedFieldPolymorphic) \
129 V(LoadNamedGeneric) \ 130 V(LoadNamedGeneric) \
130 V(ModI) \ 131 V(ModI) \
131 V(MulI) \ 132 V(MulI) \
132 V(NumberTagD) \ 133 V(NumberTagD) \
133 V(NumberTagI) \ 134 V(NumberTagI) \
134 V(NumberUntagD) \ 135 V(NumberUntagD) \
135 V(ObjectLiteral) \ 136 V(ObjectLiteral) \
136 V(OsrEntry) \ 137 V(OsrEntry) \
137 V(OuterContext) \ 138 V(OuterContext) \
138 V(Parameter) \ 139 V(Parameter) \
139 V(Power) \ 140 V(Power) \
140 V(PushArgument) \ 141 V(PushArgument) \
141 V(RegExpLiteral) \ 142 V(RegExpLiteral) \
142 V(Return) \ 143 V(Return) \
143 V(ShiftI) \ 144 V(ShiftI) \
144 V(SmiTag) \ 145 V(SmiTag) \
145 V(SmiUntag) \ 146 V(SmiUntag) \
146 V(StackCheck) \ 147 V(StackCheck) \
147 V(StoreContextSlot) \ 148 V(StoreContextSlot) \
148 V(StoreGlobalCell) \ 149 V(StoreGlobalCell) \
149 V(StoreGlobalGeneric) \ 150 V(StoreGlobalGeneric) \
151 V(StoreKeyedFastDoubleElement) \
150 V(StoreKeyedFastElement) \ 152 V(StoreKeyedFastElement) \
151 V(StoreKeyedGeneric) \ 153 V(StoreKeyedGeneric) \
152 V(StoreKeyedSpecializedArrayElement) \ 154 V(StoreKeyedSpecializedArrayElement) \
153 V(StoreNamedField) \ 155 V(StoreNamedField) \
154 V(StoreNamedGeneric) \ 156 V(StoreNamedGeneric) \
155 V(StringAdd) \ 157 V(StringAdd) \
156 V(StringCharCodeAt) \ 158 V(StringCharCodeAt) \
157 V(StringCharFromCode) \ 159 V(StringCharFromCode) \
158 V(StringLength) \ 160 V(StringLength) \
159 V(SubI) \ 161 V(SubI) \
(...skipping 967 matching lines...) Expand 10 before | Expand all | Expand 10 after
1127 } 1129 }
1128 1130
1129 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedFastElement, "load-keyed-fast-element") 1131 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedFastElement, "load-keyed-fast-element")
1130 DECLARE_HYDROGEN_ACCESSOR(LoadKeyedFastElement) 1132 DECLARE_HYDROGEN_ACCESSOR(LoadKeyedFastElement)
1131 1133
1132 LOperand* elements() { return inputs_[0]; } 1134 LOperand* elements() { return inputs_[0]; }
1133 LOperand* key() { return inputs_[1]; } 1135 LOperand* key() { return inputs_[1]; }
1134 }; 1136 };
1135 1137
1136 1138
1139 class LLoadKeyedFastDoubleElement: public LTemplateInstruction<1, 2, 0> {
1140 public:
1141 LLoadKeyedFastDoubleElement(LOperand* elements, LOperand* key) {
1142 inputs_[0] = elements;
1143 inputs_[1] = key;
1144 }
1145
1146 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedFastDoubleElement,
1147 "load-keyed-fast-double-element")
1148 DECLARE_HYDROGEN_ACCESSOR(LoadKeyedFastDoubleElement)
1149
1150 LOperand* elements() { return inputs_[0]; }
1151 LOperand* key() { return inputs_[1]; }
1152 };
1153
1154
1137 class LLoadKeyedSpecializedArrayElement: public LTemplateInstruction<1, 2, 0> { 1155 class LLoadKeyedSpecializedArrayElement: public LTemplateInstruction<1, 2, 0> {
1138 public: 1156 public:
1139 LLoadKeyedSpecializedArrayElement(LOperand* external_pointer, 1157 LLoadKeyedSpecializedArrayElement(LOperand* external_pointer,
1140 LOperand* key) { 1158 LOperand* key) {
1141 inputs_[0] = external_pointer; 1159 inputs_[0] = external_pointer;
1142 inputs_[1] = key; 1160 inputs_[1] = key;
1143 } 1161 }
1144 1162
1145 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedSpecializedArrayElement, 1163 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedSpecializedArrayElement,
1146 "load-keyed-specialized-array-element") 1164 "load-keyed-specialized-array-element")
(...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after
1578 DECLARE_HYDROGEN_ACCESSOR(StoreKeyedFastElement) 1596 DECLARE_HYDROGEN_ACCESSOR(StoreKeyedFastElement)
1579 1597
1580 virtual void PrintDataTo(StringStream* stream); 1598 virtual void PrintDataTo(StringStream* stream);
1581 1599
1582 LOperand* object() { return inputs_[0]; } 1600 LOperand* object() { return inputs_[0]; }
1583 LOperand* key() { return inputs_[1]; } 1601 LOperand* key() { return inputs_[1]; }
1584 LOperand* value() { return inputs_[2]; } 1602 LOperand* value() { return inputs_[2]; }
1585 }; 1603 };
1586 1604
1587 1605
1606 class LStoreKeyedFastDoubleElement: public LTemplateInstruction<0, 3, 0> {
1607 public:
1608 LStoreKeyedFastDoubleElement(LOperand* elements,
1609 LOperand* key,
1610 LOperand* val) {
1611 inputs_[0] = elements;
1612 inputs_[1] = key;
1613 inputs_[2] = val;
1614 }
1615
1616 DECLARE_CONCRETE_INSTRUCTION(StoreKeyedFastDoubleElement,
1617 "store-keyed-fast-double-element")
1618 DECLARE_HYDROGEN_ACCESSOR(StoreKeyedFastDoubleElement)
1619
1620 virtual void PrintDataTo(StringStream* stream);
1621
1622 LOperand* elements() { return inputs_[0]; }
1623 LOperand* key() { return inputs_[1]; }
1624 LOperand* value() { return inputs_[2]; }
1625 };
1626
1627
1588 class LStoreKeyedSpecializedArrayElement: public LTemplateInstruction<0, 3, 0> { 1628 class LStoreKeyedSpecializedArrayElement: public LTemplateInstruction<0, 3, 0> {
1589 public: 1629 public:
1590 LStoreKeyedSpecializedArrayElement(LOperand* external_pointer, 1630 LStoreKeyedSpecializedArrayElement(LOperand* external_pointer,
1591 LOperand* key, 1631 LOperand* key,
1592 LOperand* val) { 1632 LOperand* val) {
1593 inputs_[0] = external_pointer; 1633 inputs_[0] = external_pointer;
1594 inputs_[1] = key; 1634 inputs_[1] = key;
1595 inputs_[2] = val; 1635 inputs_[2] = val;
1596 } 1636 }
1597 1637
(...skipping 542 matching lines...) Expand 10 before | Expand all | Expand 10 after
2140 2180
2141 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2181 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2142 }; 2182 };
2143 2183
2144 #undef DECLARE_HYDROGEN_ACCESSOR 2184 #undef DECLARE_HYDROGEN_ACCESSOR
2145 #undef DECLARE_CONCRETE_INSTRUCTION 2185 #undef DECLARE_CONCRETE_INSTRUCTION
2146 2186
2147 } } // namespace v8::int 2187 } } // namespace v8::int
2148 2188
2149 #endif // V8_X64_LITHIUM_X64_H_ 2189 #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