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

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

Issue 6546036: Combine typed and pixel arrays. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: fix wrong external element call 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
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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 V(CmpT) \ 84 V(CmpT) \
85 V(CmpTAndBranch) \ 85 V(CmpTAndBranch) \
86 V(ConstantD) \ 86 V(ConstantD) \
87 V(ConstantI) \ 87 V(ConstantI) \
88 V(ConstantT) \ 88 V(ConstantT) \
89 V(Context) \ 89 V(Context) \
90 V(DeleteProperty) \ 90 V(DeleteProperty) \
91 V(Deoptimize) \ 91 V(Deoptimize) \
92 V(DivI) \ 92 V(DivI) \
93 V(DoubleToI) \ 93 V(DoubleToI) \
94 V(ExternalArrayLength) \
94 V(FixedArrayLength) \ 95 V(FixedArrayLength) \
95 V(FunctionLiteral) \ 96 V(FunctionLiteral) \
96 V(Gap) \ 97 V(Gap) \
97 V(GlobalObject) \ 98 V(GlobalObject) \
98 V(GlobalReceiver) \ 99 V(GlobalReceiver) \
99 V(Goto) \ 100 V(Goto) \
100 V(HasCachedArrayIndex) \ 101 V(HasCachedArrayIndex) \
101 V(HasCachedArrayIndexAndBranch) \ 102 V(HasCachedArrayIndexAndBranch) \
102 V(HasInstanceType) \ 103 V(HasInstanceType) \
103 V(HasInstanceTypeAndBranch) \ 104 V(HasInstanceTypeAndBranch) \
104 V(InstanceOf) \ 105 V(InstanceOf) \
105 V(InstanceOfAndBranch) \ 106 V(InstanceOfAndBranch) \
106 V(InstanceOfKnownGlobal) \ 107 V(InstanceOfKnownGlobal) \
107 V(Integer32ToDouble) \ 108 V(Integer32ToDouble) \
108 V(IsNull) \ 109 V(IsNull) \
109 V(IsNullAndBranch) \ 110 V(IsNullAndBranch) \
110 V(IsObject) \ 111 V(IsObject) \
111 V(IsObjectAndBranch) \ 112 V(IsObjectAndBranch) \
112 V(IsSmi) \ 113 V(IsSmi) \
113 V(IsSmiAndBranch) \ 114 V(IsSmiAndBranch) \
114 V(IsConstructCall) \ 115 V(IsConstructCall) \
115 V(IsConstructCallAndBranch) \ 116 V(IsConstructCallAndBranch) \
116 V(JSArrayLength) \ 117 V(JSArrayLength) \
117 V(Label) \ 118 V(Label) \
118 V(LazyBailout) \ 119 V(LazyBailout) \
119 V(LoadContextSlot) \ 120 V(LoadContextSlot) \
120 V(LoadElements) \ 121 V(LoadElements) \
122 V(LoadExternalArrayPointer) \
121 V(LoadFunctionPrototype) \ 123 V(LoadFunctionPrototype) \
122 V(LoadGlobal) \ 124 V(LoadGlobal) \
123 V(LoadKeyedFastElement) \ 125 V(LoadKeyedFastElement) \
124 V(LoadKeyedGeneric) \ 126 V(LoadKeyedGeneric) \
125 V(LoadNamedField) \ 127 V(LoadNamedField) \
126 V(LoadNamedGeneric) \ 128 V(LoadNamedGeneric) \
127 V(LoadPixelArrayElement) \ 129 V(LoadPixelArrayElement) \
128 V(LoadPixelArrayExternalPointer) \
129 V(ModI) \ 130 V(ModI) \
130 V(MulI) \ 131 V(MulI) \
131 V(NumberTagD) \ 132 V(NumberTagD) \
132 V(NumberTagI) \ 133 V(NumberTagI) \
133 V(NumberUntagD) \ 134 V(NumberUntagD) \
134 V(ObjectLiteral) \ 135 V(ObjectLiteral) \
135 V(OsrEntry) \ 136 V(OsrEntry) \
136 V(OuterContext) \ 137 V(OuterContext) \
137 V(Parameter) \ 138 V(Parameter) \
138 V(PixelArrayLength) \
139 V(Power) \ 139 V(Power) \
140 V(PushArgument) \ 140 V(PushArgument) \
141 V(RegExpLiteral) \ 141 V(RegExpLiteral) \
142 V(Return) \ 142 V(Return) \
143 V(ShiftI) \ 143 V(ShiftI) \
144 V(SmiTag) \ 144 V(SmiTag) \
145 V(SmiUntag) \ 145 V(SmiUntag) \
146 V(StackCheck) \ 146 V(StackCheck) \
147 V(StoreContextSlot) \ 147 V(StoreContextSlot) \
148 V(StoreGlobal) \ 148 V(StoreGlobal) \
(...skipping 870 matching lines...) Expand 10 before | Expand all | Expand 10 after
1019 public: 1019 public:
1020 explicit LJSArrayLength(LOperand* value) { 1020 explicit LJSArrayLength(LOperand* value) {
1021 inputs_[0] = value; 1021 inputs_[0] = value;
1022 } 1022 }
1023 1023
1024 DECLARE_CONCRETE_INSTRUCTION(JSArrayLength, "js-array-length") 1024 DECLARE_CONCRETE_INSTRUCTION(JSArrayLength, "js-array-length")
1025 DECLARE_HYDROGEN_ACCESSOR(JSArrayLength) 1025 DECLARE_HYDROGEN_ACCESSOR(JSArrayLength)
1026 }; 1026 };
1027 1027
1028 1028
1029 class LPixelArrayLength: public LTemplateInstruction<1, 1, 0> { 1029 class LExternalArrayLength: public LTemplateInstruction<1, 1, 0> {
1030 public: 1030 public:
1031 explicit LPixelArrayLength(LOperand* value) { 1031 explicit LExternalArrayLength(LOperand* value) {
1032 inputs_[0] = value; 1032 inputs_[0] = value;
1033 } 1033 }
1034 1034
1035 DECLARE_CONCRETE_INSTRUCTION(PixelArrayLength, "pixel-array-length") 1035 DECLARE_CONCRETE_INSTRUCTION(ExternalArrayLength, "external-array-length")
1036 DECLARE_HYDROGEN_ACCESSOR(PixelArrayLength) 1036 DECLARE_HYDROGEN_ACCESSOR(ExternalArrayLength)
1037 }; 1037 };
1038 1038
1039 1039
1040 class LFixedArrayLength: public LTemplateInstruction<1, 1, 0> { 1040 class LFixedArrayLength: public LTemplateInstruction<1, 1, 0> {
1041 public: 1041 public:
1042 explicit LFixedArrayLength(LOperand* value) { 1042 explicit LFixedArrayLength(LOperand* value) {
1043 inputs_[0] = value; 1043 inputs_[0] = value;
1044 } 1044 }
1045 1045
1046 DECLARE_CONCRETE_INSTRUCTION(FixedArrayLength, "fixed-array-length") 1046 DECLARE_CONCRETE_INSTRUCTION(FixedArrayLength, "fixed-array-length")
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
1194 class LLoadElements: public LTemplateInstruction<1, 1, 0> { 1194 class LLoadElements: public LTemplateInstruction<1, 1, 0> {
1195 public: 1195 public:
1196 explicit LLoadElements(LOperand* object) { 1196 explicit LLoadElements(LOperand* object) {
1197 inputs_[0] = object; 1197 inputs_[0] = object;
1198 } 1198 }
1199 1199
1200 DECLARE_CONCRETE_INSTRUCTION(LoadElements, "load-elements") 1200 DECLARE_CONCRETE_INSTRUCTION(LoadElements, "load-elements")
1201 }; 1201 };
1202 1202
1203 1203
1204 class LLoadPixelArrayExternalPointer: public LTemplateInstruction<1, 1, 0> { 1204 class LLoadExternalArrayPointer: public LTemplateInstruction<1, 1, 0> {
1205 public: 1205 public:
1206 explicit LLoadPixelArrayExternalPointer(LOperand* object) { 1206 explicit LLoadExternalArrayPointer(LOperand* object) {
1207 inputs_[0] = object; 1207 inputs_[0] = object;
1208 } 1208 }
1209 1209
1210 DECLARE_CONCRETE_INSTRUCTION(LoadPixelArrayExternalPointer, 1210 DECLARE_CONCRETE_INSTRUCTION(LoadExternalArrayPointer,
1211 "load-pixel-array-external-pointer") 1211 "load-external-array-pointer")
1212 }; 1212 };
1213 1213
1214 1214
1215 class LLoadKeyedFastElement: public LTemplateInstruction<1, 2, 0> { 1215 class LLoadKeyedFastElement: public LTemplateInstruction<1, 2, 0> {
1216 public: 1216 public:
1217 LLoadKeyedFastElement(LOperand* elements, LOperand* key) { 1217 LLoadKeyedFastElement(LOperand* elements, LOperand* key) {
1218 inputs_[0] = elements; 1218 inputs_[0] = elements;
1219 inputs_[1] = key; 1219 inputs_[1] = key;
1220 } 1220 }
1221 1221
(...skipping 914 matching lines...) Expand 10 before | Expand all | Expand 10 after
2136 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2136 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2137 }; 2137 };
2138 2138
2139 #undef DECLARE_HYDROGEN_ACCESSOR 2139 #undef DECLARE_HYDROGEN_ACCESSOR
2140 #undef DECLARE_INSTRUCTION 2140 #undef DECLARE_INSTRUCTION
2141 #undef DECLARE_CONCRETE_INSTRUCTION 2141 #undef DECLARE_CONCRETE_INSTRUCTION
2142 2142
2143 } } // namespace v8::internal 2143 } } // namespace v8::internal
2144 2144
2145 #endif // V8_IA32_LITHIUM_IA32_H_ 2145 #endif // V8_IA32_LITHIUM_IA32_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698