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

Side by Side Diff: src/arm/lithium-arm.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/api.cc ('k') | 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(Label) \ 115 V(Label) \
116 V(LazyBailout) \ 116 V(LazyBailout) \
117 V(LoadContextSlot) \ 117 V(LoadContextSlot) \
118 V(LoadElements) \ 118 V(LoadElements) \
119 V(LoadFunctionPrototype) \ 119 V(LoadFunctionPrototype) \
120 V(LoadGlobal) \ 120 V(LoadGlobal) \
121 V(LoadKeyedFastElement) \ 121 V(LoadKeyedFastElement) \
122 V(LoadKeyedGeneric) \ 122 V(LoadKeyedGeneric) \
123 V(LoadNamedField) \ 123 V(LoadNamedField) \
124 V(LoadNamedGeneric) \ 124 V(LoadNamedGeneric) \
125 V(LoadPixelArrayElement) \
126 V(LoadPixelArrayExternalPointer) \
125 V(ModI) \ 127 V(ModI) \
126 V(MulI) \ 128 V(MulI) \
127 V(NumberTagD) \ 129 V(NumberTagD) \
128 V(NumberTagI) \ 130 V(NumberTagI) \
129 V(NumberUntagD) \ 131 V(NumberUntagD) \
130 V(ObjectLiteral) \ 132 V(ObjectLiteral) \
131 V(OsrEntry) \ 133 V(OsrEntry) \
132 V(OuterContext) \ 134 V(OuterContext) \
133 V(Parameter) \ 135 V(Parameter) \
136 V(PixelArrayLength) \
134 V(PushArgument) \ 137 V(PushArgument) \
135 V(RegExpLiteral) \ 138 V(RegExpLiteral) \
136 V(Return) \ 139 V(Return) \
137 V(ShiftI) \ 140 V(ShiftI) \
138 V(SmiTag) \ 141 V(SmiTag) \
139 V(SmiUntag) \ 142 V(SmiUntag) \
140 V(StackCheck) \ 143 V(StackCheck) \
141 V(StoreContextSlot) \ 144 V(StoreContextSlot) \
142 V(StoreGlobal) \ 145 V(StoreGlobal) \
143 V(StoreKeyedFastElement) \ 146 V(StoreKeyedFastElement) \
(...skipping 826 matching lines...) Expand 10 before | Expand all | Expand 10 after
970 public: 973 public:
971 explicit LJSArrayLength(LOperand* value) { 974 explicit LJSArrayLength(LOperand* value) {
972 inputs_[0] = value; 975 inputs_[0] = value;
973 } 976 }
974 977
975 DECLARE_CONCRETE_INSTRUCTION(JSArrayLength, "js-array-length") 978 DECLARE_CONCRETE_INSTRUCTION(JSArrayLength, "js-array-length")
976 DECLARE_HYDROGEN_ACCESSOR(JSArrayLength) 979 DECLARE_HYDROGEN_ACCESSOR(JSArrayLength)
977 }; 980 };
978 981
979 982
983 class LPixelArrayLength: public LTemplateInstruction<1, 1, 0> {
984 public:
985 explicit LPixelArrayLength(LOperand* value) {
986 inputs_[0] = value;
987 }
988
989 DECLARE_CONCRETE_INSTRUCTION(PixelArrayLength, "pixel-array-length")
990 DECLARE_HYDROGEN_ACCESSOR(PixelArrayLength)
991 };
992
993
980 class LFixedArrayLength: public LTemplateInstruction<1, 1, 0> { 994 class LFixedArrayLength: public LTemplateInstruction<1, 1, 0> {
981 public: 995 public:
982 explicit LFixedArrayLength(LOperand* value) { 996 explicit LFixedArrayLength(LOperand* value) {
983 inputs_[0] = value; 997 inputs_[0] = value;
984 } 998 }
985 999
986 DECLARE_CONCRETE_INSTRUCTION(FixedArrayLength, "fixed-array-length") 1000 DECLARE_CONCRETE_INSTRUCTION(FixedArrayLength, "fixed-array-length")
987 DECLARE_HYDROGEN_ACCESSOR(FixedArrayLength) 1001 DECLARE_HYDROGEN_ACCESSOR(FixedArrayLength)
988 }; 1002 };
989 1003
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
1119 class LLoadElements: public LTemplateInstruction<1, 1, 0> { 1133 class LLoadElements: public LTemplateInstruction<1, 1, 0> {
1120 public: 1134 public:
1121 explicit LLoadElements(LOperand* object) { 1135 explicit LLoadElements(LOperand* object) {
1122 inputs_[0] = object; 1136 inputs_[0] = object;
1123 } 1137 }
1124 1138
1125 DECLARE_CONCRETE_INSTRUCTION(LoadElements, "load-elements") 1139 DECLARE_CONCRETE_INSTRUCTION(LoadElements, "load-elements")
1126 }; 1140 };
1127 1141
1128 1142
1143 class LLoadPixelArrayExternalPointer: public LTemplateInstruction<1, 1, 0> {
1144 public:
1145 explicit LLoadPixelArrayExternalPointer(LOperand* object) {
1146 inputs_[0] = object;
1147 }
1148
1149 DECLARE_CONCRETE_INSTRUCTION(LoadPixelArrayExternalPointer,
1150 "load-pixel-array-external-pointer")
1151 };
1152
1153
1129 class LLoadKeyedFastElement: public LTemplateInstruction<1, 2, 0> { 1154 class LLoadKeyedFastElement: public LTemplateInstruction<1, 2, 0> {
1130 public: 1155 public:
1131 LLoadKeyedFastElement(LOperand* elements, LOperand* key) { 1156 LLoadKeyedFastElement(LOperand* elements, LOperand* key) {
1132 inputs_[0] = elements; 1157 inputs_[0] = elements;
1133 inputs_[1] = key; 1158 inputs_[1] = key;
1134 } 1159 }
1135 1160
1136 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedFastElement, "load-keyed-fast-element") 1161 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedFastElement, "load-keyed-fast-element")
1137 DECLARE_HYDROGEN_ACCESSOR(LoadKeyedFastElement) 1162 DECLARE_HYDROGEN_ACCESSOR(LoadKeyedFastElement)
1138 1163
1139 LOperand* elements() { return inputs_[0]; } 1164 LOperand* elements() { return inputs_[0]; }
1140 LOperand* key() { return inputs_[1]; } 1165 LOperand* key() { return inputs_[1]; }
1141 }; 1166 };
1142 1167
1143 1168
1169 class LLoadPixelArrayElement: public LTemplateInstruction<1, 2, 0> {
1170 public:
1171 LLoadPixelArrayElement(LOperand* external_pointer, LOperand* key) {
1172 inputs_[0] = external_pointer;
1173 inputs_[1] = key;
1174 }
1175
1176 DECLARE_CONCRETE_INSTRUCTION(LoadPixelArrayElement,
1177 "load-pixel-array-element")
1178 DECLARE_HYDROGEN_ACCESSOR(LoadPixelArrayElement)
1179
1180 LOperand* external_pointer() { return inputs_[0]; }
1181 LOperand* key() { return inputs_[1]; }
1182 };
1183
1184
1144 class LLoadKeyedGeneric: public LTemplateInstruction<1, 2, 0> { 1185 class LLoadKeyedGeneric: public LTemplateInstruction<1, 2, 0> {
1145 public: 1186 public:
1146 LLoadKeyedGeneric(LOperand* obj, LOperand* key) { 1187 LLoadKeyedGeneric(LOperand* obj, LOperand* key) {
1147 inputs_[0] = obj; 1188 inputs_[0] = obj;
1148 inputs_[1] = key; 1189 inputs_[1] = key;
1149 } 1190 }
1150 1191
1151 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedGeneric, "load-keyed-generic") 1192 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedGeneric, "load-keyed-generic")
1152 1193
1153 LOperand* object() { return inputs_[0]; } 1194 LOperand* object() { return inputs_[0]; }
(...skipping 821 matching lines...) Expand 10 before | Expand all | Expand 10 after
1975 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2016 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
1976 }; 2017 };
1977 2018
1978 #undef DECLARE_HYDROGEN_ACCESSOR 2019 #undef DECLARE_HYDROGEN_ACCESSOR
1979 #undef DECLARE_INSTRUCTION 2020 #undef DECLARE_INSTRUCTION
1980 #undef DECLARE_CONCRETE_INSTRUCTION 2021 #undef DECLARE_CONCRETE_INSTRUCTION
1981 2022
1982 } } // namespace v8::internal 2023 } } // namespace v8::internal
1983 2024
1984 #endif // V8_ARM_LITHIUM_ARM_H_ 2025 #endif // V8_ARM_LITHIUM_ARM_H_
OLDNEW
« no previous file with comments | « src/api.cc ('k') | src/arm/lithium-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698