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

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

Issue 6410112: Implement crankshaft support for pixel array loads. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: merge with latest Created 9 years, 10 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(Label) \ 114 V(Label) \
115 V(LazyBailout) \ 115 V(LazyBailout) \
116 V(LoadContextSlot) \ 116 V(LoadContextSlot) \
117 V(LoadElements) \ 117 V(LoadElements) \
118 V(LoadGlobal) \ 118 V(LoadGlobal) \
119 V(LoadKeyedFastElement) \ 119 V(LoadKeyedFastElement) \
120 V(LoadKeyedGeneric) \ 120 V(LoadKeyedGeneric) \
121 V(LoadNamedField) \ 121 V(LoadNamedField) \
122 V(LoadNamedGeneric) \ 122 V(LoadNamedGeneric) \
123 V(LoadFunctionPrototype) \ 123 V(LoadFunctionPrototype) \
124 V(LoadPixelArrayElement) \
125 V(LoadPixelArrayExternalPointer) \
124 V(ModI) \ 126 V(ModI) \
125 V(MulI) \ 127 V(MulI) \
126 V(NumberTagD) \ 128 V(NumberTagD) \
127 V(NumberTagI) \ 129 V(NumberTagI) \
128 V(NumberUntagD) \ 130 V(NumberUntagD) \
129 V(ObjectLiteral) \ 131 V(ObjectLiteral) \
130 V(OsrEntry) \ 132 V(OsrEntry) \
131 V(Parameter) \ 133 V(Parameter) \
134 V(PixelArrayLength) \
132 V(Power) \ 135 V(Power) \
133 V(PushArgument) \ 136 V(PushArgument) \
134 V(RegExpLiteral) \ 137 V(RegExpLiteral) \
135 V(Return) \ 138 V(Return) \
136 V(ShiftI) \ 139 V(ShiftI) \
137 V(SmiTag) \ 140 V(SmiTag) \
138 V(SmiUntag) \ 141 V(SmiUntag) \
139 V(StackCheck) \ 142 V(StackCheck) \
140 V(StoreGlobal) \ 143 V(StoreGlobal) \
141 V(StoreKeyedFastElement) \ 144 V(StoreKeyedFastElement) \
(...skipping 829 matching lines...) Expand 10 before | Expand all | Expand 10 after
971 public: 974 public:
972 explicit LJSArrayLength(LOperand* value) { 975 explicit LJSArrayLength(LOperand* value) {
973 inputs_[0] = value; 976 inputs_[0] = value;
974 } 977 }
975 978
976 DECLARE_CONCRETE_INSTRUCTION(JSArrayLength, "js-array-length") 979 DECLARE_CONCRETE_INSTRUCTION(JSArrayLength, "js-array-length")
977 DECLARE_HYDROGEN_ACCESSOR(JSArrayLength) 980 DECLARE_HYDROGEN_ACCESSOR(JSArrayLength)
978 }; 981 };
979 982
980 983
984 class LPixelArrayLength: public LTemplateInstruction<1, 1, 0> {
985 public:
986 explicit LPixelArrayLength(LOperand* value) {
987 inputs_[0] = value;
988 }
989
990 DECLARE_CONCRETE_INSTRUCTION(PixelArrayLength, "pixel-array-length")
991 DECLARE_HYDROGEN_ACCESSOR(PixelArrayLength)
992 };
993
994
981 class LFixedArrayLength: public LTemplateInstruction<1, 1, 0> { 995 class LFixedArrayLength: public LTemplateInstruction<1, 1, 0> {
982 public: 996 public:
983 explicit LFixedArrayLength(LOperand* value) { 997 explicit LFixedArrayLength(LOperand* value) {
984 inputs_[0] = value; 998 inputs_[0] = value;
985 } 999 }
986 1000
987 DECLARE_CONCRETE_INSTRUCTION(FixedArrayLength, "fixed-array-length") 1001 DECLARE_CONCRETE_INSTRUCTION(FixedArrayLength, "fixed-array-length")
988 DECLARE_HYDROGEN_ACCESSOR(FixedArrayLength) 1002 DECLARE_HYDROGEN_ACCESSOR(FixedArrayLength)
989 }; 1003 };
990 1004
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
1133 class LLoadElements: public LTemplateInstruction<1, 1, 0> { 1147 class LLoadElements: public LTemplateInstruction<1, 1, 0> {
1134 public: 1148 public:
1135 explicit LLoadElements(LOperand* object) { 1149 explicit LLoadElements(LOperand* object) {
1136 inputs_[0] = object; 1150 inputs_[0] = object;
1137 } 1151 }
1138 1152
1139 DECLARE_CONCRETE_INSTRUCTION(LoadElements, "load-elements") 1153 DECLARE_CONCRETE_INSTRUCTION(LoadElements, "load-elements")
1140 }; 1154 };
1141 1155
1142 1156
1157 class LLoadPixelArrayExternalPointer: public LTemplateInstruction<1, 1, 0> {
1158 public:
1159 explicit LLoadPixelArrayExternalPointer(LOperand* object) {
1160 inputs_[0] = object;
1161 }
1162
1163 DECLARE_CONCRETE_INSTRUCTION(LoadPixelArrayExternalPointer,
1164 "load-pixel-array-external-pointer")
1165 };
1166
1167
1143 class LLoadKeyedFastElement: public LTemplateInstruction<1, 2, 0> { 1168 class LLoadKeyedFastElement: public LTemplateInstruction<1, 2, 0> {
1144 public: 1169 public:
1145 LLoadKeyedFastElement(LOperand* elements, LOperand* key) { 1170 LLoadKeyedFastElement(LOperand* elements, LOperand* key) {
1146 inputs_[0] = elements; 1171 inputs_[0] = elements;
1147 inputs_[1] = key; 1172 inputs_[1] = key;
1148 } 1173 }
1149 1174
1150 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedFastElement, "load-keyed-fast-element") 1175 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedFastElement, "load-keyed-fast-element")
1151 DECLARE_HYDROGEN_ACCESSOR(LoadKeyedFastElement) 1176 DECLARE_HYDROGEN_ACCESSOR(LoadKeyedFastElement)
1152 1177
1153 LOperand* elements() { return inputs_[0]; } 1178 LOperand* elements() { return inputs_[0]; }
1154 LOperand* key() { return inputs_[1]; } 1179 LOperand* key() { return inputs_[1]; }
1155 }; 1180 };
1156 1181
1157 1182
1183 class LLoadPixelArrayElement: public LTemplateInstruction<1, 2, 0> {
1184 public:
1185 LLoadPixelArrayElement(LOperand* external_pointer, LOperand* key) {
1186 inputs_[0] = external_pointer;
1187 inputs_[1] = key;
1188 }
1189
1190 DECLARE_CONCRETE_INSTRUCTION(LoadPixelArrayElement,
1191 "load-pixel-array-element")
1192 DECLARE_HYDROGEN_ACCESSOR(LoadPixelArrayElement)
1193
1194 LOperand* external_pointer() { return inputs_[0]; }
1195 LOperand* key() { return inputs_[1]; }
1196 };
1197
1198
1158 class LLoadKeyedGeneric: public LTemplateInstruction<1, 2, 0> { 1199 class LLoadKeyedGeneric: public LTemplateInstruction<1, 2, 0> {
1159 public: 1200 public:
1160 LLoadKeyedGeneric(LOperand* obj, LOperand* key) { 1201 LLoadKeyedGeneric(LOperand* obj, LOperand* key) {
1161 inputs_[0] = obj; 1202 inputs_[0] = obj;
1162 inputs_[1] = key; 1203 inputs_[1] = key;
1163 } 1204 }
1164 1205
1165 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedGeneric, "load-keyed-generic") 1206 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedGeneric, "load-keyed-generic")
1166 1207
1167 LOperand* object() { return inputs_[0]; } 1208 LOperand* object() { return inputs_[0]; }
(...skipping 748 matching lines...) Expand 10 before | Expand all | Expand 10 after
1916 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 1957 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
1917 }; 1958 };
1918 1959
1919 #undef DECLARE_HYDROGEN_ACCESSOR 1960 #undef DECLARE_HYDROGEN_ACCESSOR
1920 #undef DECLARE_INSTRUCTION 1961 #undef DECLARE_INSTRUCTION
1921 #undef DECLARE_CONCRETE_INSTRUCTION 1962 #undef DECLARE_CONCRETE_INSTRUCTION
1922 1963
1923 } } // namespace v8::int 1964 } } // namespace v8::int
1924 1965
1925 #endif // V8_X64_LITHIUM_X64_H_ 1966 #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