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

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: final version Created 9 years, 9 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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 V(CmpT) \ 82 V(CmpT) \
83 V(CmpTAndBranch) \ 83 V(CmpTAndBranch) \
84 V(ConstantD) \ 84 V(ConstantD) \
85 V(ConstantI) \ 85 V(ConstantI) \
86 V(ConstantT) \ 86 V(ConstantT) \
87 V(Context) \ 87 V(Context) \
88 V(DeleteProperty) \ 88 V(DeleteProperty) \
89 V(Deoptimize) \ 89 V(Deoptimize) \
90 V(DivI) \ 90 V(DivI) \
91 V(DoubleToI) \ 91 V(DoubleToI) \
92 V(ExternalArrayLength) \
92 V(FixedArrayLength) \ 93 V(FixedArrayLength) \
93 V(FunctionLiteral) \ 94 V(FunctionLiteral) \
94 V(Gap) \ 95 V(Gap) \
95 V(GetCachedArrayIndex) \ 96 V(GetCachedArrayIndex) \
96 V(GlobalObject) \ 97 V(GlobalObject) \
97 V(GlobalReceiver) \ 98 V(GlobalReceiver) \
98 V(Goto) \ 99 V(Goto) \
99 V(HasCachedArrayIndex) \ 100 V(HasCachedArrayIndex) \
100 V(HasCachedArrayIndexAndBranch) \ 101 V(HasCachedArrayIndexAndBranch) \
101 V(HasInstanceType) \ 102 V(HasInstanceType) \
102 V(HasInstanceTypeAndBranch) \ 103 V(HasInstanceTypeAndBranch) \
103 V(InstanceOf) \ 104 V(InstanceOf) \
104 V(InstanceOfAndBranch) \ 105 V(InstanceOfAndBranch) \
105 V(InstanceOfKnownGlobal) \ 106 V(InstanceOfKnownGlobal) \
106 V(Integer32ToDouble) \ 107 V(Integer32ToDouble) \
107 V(IsNull) \ 108 V(IsNull) \
108 V(IsNullAndBranch) \ 109 V(IsNullAndBranch) \
109 V(IsObject) \ 110 V(IsObject) \
110 V(IsObjectAndBranch) \ 111 V(IsObjectAndBranch) \
111 V(IsSmi) \ 112 V(IsSmi) \
112 V(IsSmiAndBranch) \ 113 V(IsSmiAndBranch) \
113 V(IsConstructCall) \ 114 V(IsConstructCall) \
114 V(IsConstructCallAndBranch) \ 115 V(IsConstructCallAndBranch) \
115 V(JSArrayLength) \ 116 V(JSArrayLength) \
116 V(Label) \ 117 V(Label) \
117 V(LazyBailout) \ 118 V(LazyBailout) \
118 V(LoadContextSlot) \ 119 V(LoadContextSlot) \
119 V(LoadElements) \ 120 V(LoadElements) \
121 V(LoadExternalArrayPointer) \
120 V(LoadFunctionPrototype) \ 122 V(LoadFunctionPrototype) \
121 V(LoadGlobal) \ 123 V(LoadGlobal) \
122 V(LoadKeyedFastElement) \ 124 V(LoadKeyedFastElement) \
123 V(LoadKeyedGeneric) \ 125 V(LoadKeyedGeneric) \
124 V(LoadNamedField) \ 126 V(LoadNamedField) \
125 V(LoadNamedGeneric) \ 127 V(LoadNamedGeneric) \
126 V(LoadPixelArrayElement) \ 128 V(LoadPixelArrayElement) \
127 V(LoadPixelArrayExternalPointer) \
128 V(ModI) \ 129 V(ModI) \
129 V(MulI) \ 130 V(MulI) \
130 V(NumberTagD) \ 131 V(NumberTagD) \
131 V(NumberTagI) \ 132 V(NumberTagI) \
132 V(NumberUntagD) \ 133 V(NumberUntagD) \
133 V(ObjectLiteral) \ 134 V(ObjectLiteral) \
134 V(OsrEntry) \ 135 V(OsrEntry) \
135 V(OuterContext) \ 136 V(OuterContext) \
136 V(Parameter) \ 137 V(Parameter) \
137 V(PixelArrayLength) \
138 V(Power) \ 138 V(Power) \
139 V(PushArgument) \ 139 V(PushArgument) \
140 V(RegExpLiteral) \ 140 V(RegExpLiteral) \
141 V(Return) \ 141 V(Return) \
142 V(ShiftI) \ 142 V(ShiftI) \
143 V(SmiTag) \ 143 V(SmiTag) \
144 V(SmiUntag) \ 144 V(SmiUntag) \
145 V(StackCheck) \ 145 V(StackCheck) \
146 V(StoreContextSlot) \ 146 V(StoreContextSlot) \
147 V(StoreGlobal) \ 147 V(StoreGlobal) \
(...skipping 881 matching lines...) Expand 10 before | Expand all | Expand 10 after
1029 public: 1029 public:
1030 explicit LJSArrayLength(LOperand* value) { 1030 explicit LJSArrayLength(LOperand* value) {
1031 inputs_[0] = value; 1031 inputs_[0] = value;
1032 } 1032 }
1033 1033
1034 DECLARE_CONCRETE_INSTRUCTION(JSArrayLength, "js-array-length") 1034 DECLARE_CONCRETE_INSTRUCTION(JSArrayLength, "js-array-length")
1035 DECLARE_HYDROGEN_ACCESSOR(JSArrayLength) 1035 DECLARE_HYDROGEN_ACCESSOR(JSArrayLength)
1036 }; 1036 };
1037 1037
1038 1038
1039 class LPixelArrayLength: public LTemplateInstruction<1, 1, 0> { 1039 class LExternalArrayLength: public LTemplateInstruction<1, 1, 0> {
1040 public: 1040 public:
1041 explicit LPixelArrayLength(LOperand* value) { 1041 explicit LExternalArrayLength(LOperand* value) {
1042 inputs_[0] = value; 1042 inputs_[0] = value;
1043 } 1043 }
1044 1044
1045 DECLARE_CONCRETE_INSTRUCTION(PixelArrayLength, "pixel-array-length") 1045 DECLARE_CONCRETE_INSTRUCTION(ExternalArrayLength, "external-array-length")
1046 DECLARE_HYDROGEN_ACCESSOR(PixelArrayLength) 1046 DECLARE_HYDROGEN_ACCESSOR(ExternalArrayLength)
1047 }; 1047 };
1048 1048
1049 1049
1050 class LFixedArrayLength: public LTemplateInstruction<1, 1, 0> { 1050 class LFixedArrayLength: public LTemplateInstruction<1, 1, 0> {
1051 public: 1051 public:
1052 explicit LFixedArrayLength(LOperand* value) { 1052 explicit LFixedArrayLength(LOperand* value) {
1053 inputs_[0] = value; 1053 inputs_[0] = value;
1054 } 1054 }
1055 1055
1056 DECLARE_CONCRETE_INSTRUCTION(FixedArrayLength, "fixed-array-length") 1056 DECLARE_CONCRETE_INSTRUCTION(FixedArrayLength, "fixed-array-length")
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
1204 class LLoadElements: public LTemplateInstruction<1, 1, 0> { 1204 class LLoadElements: public LTemplateInstruction<1, 1, 0> {
1205 public: 1205 public:
1206 explicit LLoadElements(LOperand* object) { 1206 explicit LLoadElements(LOperand* object) {
1207 inputs_[0] = object; 1207 inputs_[0] = object;
1208 } 1208 }
1209 1209
1210 DECLARE_CONCRETE_INSTRUCTION(LoadElements, "load-elements") 1210 DECLARE_CONCRETE_INSTRUCTION(LoadElements, "load-elements")
1211 }; 1211 };
1212 1212
1213 1213
1214 class LLoadPixelArrayExternalPointer: public LTemplateInstruction<1, 1, 0> { 1214 class LLoadExternalArrayPointer: public LTemplateInstruction<1, 1, 0> {
1215 public: 1215 public:
1216 explicit LLoadPixelArrayExternalPointer(LOperand* object) { 1216 explicit LLoadExternalArrayPointer(LOperand* object) {
1217 inputs_[0] = object; 1217 inputs_[0] = object;
1218 } 1218 }
1219 1219
1220 DECLARE_CONCRETE_INSTRUCTION(LoadPixelArrayExternalPointer, 1220 DECLARE_CONCRETE_INSTRUCTION(LoadExternalArrayPointer,
1221 "load-pixel-array-external-pointer") 1221 "load-external-array-pointer")
1222 }; 1222 };
1223 1223
1224 1224
1225 class LLoadKeyedFastElement: public LTemplateInstruction<1, 2, 0> { 1225 class LLoadKeyedFastElement: public LTemplateInstruction<1, 2, 0> {
1226 public: 1226 public:
1227 LLoadKeyedFastElement(LOperand* elements, LOperand* key) { 1227 LLoadKeyedFastElement(LOperand* elements, LOperand* key) {
1228 inputs_[0] = elements; 1228 inputs_[0] = elements;
1229 inputs_[1] = key; 1229 inputs_[1] = key;
1230 } 1230 }
1231 1231
(...skipping 904 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
« 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