OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_COMPILER_OPCODES_H_ | 5 #ifndef V8_COMPILER_OPCODES_H_ |
6 #define V8_COMPILER_OPCODES_H_ | 6 #define V8_COMPILER_OPCODES_H_ |
7 | 7 |
8 // Opcodes for control operators. | 8 // Opcodes for control operators. |
9 #define INNER_CONTROL_OP_LIST(V) \ | 9 #define INNER_CONTROL_OP_LIST(V) \ |
10 V(Dead) \ | 10 V(Dead) \ |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 V(JSYield) \ | 126 V(JSYield) \ |
127 V(JSDebugger) | 127 V(JSDebugger) |
128 | 128 |
129 #define JS_OP_LIST(V) \ | 129 #define JS_OP_LIST(V) \ |
130 JS_SIMPLE_BINOP_LIST(V) \ | 130 JS_SIMPLE_BINOP_LIST(V) \ |
131 JS_SIMPLE_UNOP_LIST(V) \ | 131 JS_SIMPLE_UNOP_LIST(V) \ |
132 JS_OBJECT_OP_LIST(V) \ | 132 JS_OBJECT_OP_LIST(V) \ |
133 JS_CONTEXT_OP_LIST(V) \ | 133 JS_CONTEXT_OP_LIST(V) \ |
134 JS_OTHER_OP_LIST(V) | 134 JS_OTHER_OP_LIST(V) |
135 | 135 |
136 // Opcodes for VirtualMachine-level operators. | 136 // Opcodes for VirtuaMachine-level operators. |
137 #define SIMPLIFIED_OP_LIST(V) \ | 137 #define SIMPLIFIED_OP_LIST(V) \ |
138 V(AnyToBoolean) \ | 138 V(AnyToBoolean) \ |
139 V(BooleanNot) \ | 139 V(BooleanNot) \ |
140 V(BooleanToNumber) \ | 140 V(BooleanToNumber) \ |
141 V(NumberEqual) \ | 141 V(NumberEqual) \ |
142 V(NumberLessThan) \ | 142 V(NumberLessThan) \ |
143 V(NumberLessThanOrEqual) \ | 143 V(NumberLessThanOrEqual) \ |
144 V(NumberAdd) \ | 144 V(NumberAdd) \ |
145 V(NumberSubtract) \ | 145 V(NumberSubtract) \ |
146 V(NumberMultiply) \ | 146 V(NumberMultiply) \ |
147 V(NumberDivide) \ | 147 V(NumberDivide) \ |
148 V(NumberModulus) \ | 148 V(NumberModulus) \ |
149 V(NumberToInt32) \ | 149 V(NumberToInt32) \ |
150 V(NumberToUint32) \ | 150 V(NumberToUint32) \ |
151 V(PlainPrimitiveToNumber) \ | 151 V(PlainPrimitiveToNumber) \ |
152 V(ReferenceEqual) \ | 152 V(ReferenceEqual) \ |
153 V(StringEqual) \ | 153 V(StringEqual) \ |
154 V(StringLessThan) \ | 154 V(StringLessThan) \ |
155 V(StringLessThanOrEqual) \ | 155 V(StringLessThanOrEqual) \ |
156 V(StringAdd) \ | 156 V(StringAdd) \ |
157 V(ChangeTaggedToInt32) \ | 157 V(ChangeTaggedToInt32) \ |
158 V(ChangeTaggedToUint32) \ | 158 V(ChangeTaggedToUint32) \ |
159 V(ChangeTaggedToFloat64) \ | 159 V(ChangeTaggedToFloat64) \ |
160 V(ChangeInt32ToTagged) \ | 160 V(ChangeInt32ToTagged) \ |
161 V(ChangeUint32ToTagged) \ | 161 V(ChangeUint32ToTagged) \ |
162 V(ChangeFloat64ToTagged) \ | 162 V(ChangeFloat64ToTagged) \ |
163 V(ChangeBoolToBit) \ | 163 V(ChangeBoolToBit) \ |
164 V(ChangeWord32ToBit) \ | |
165 V(ChangeWord64ToBit) \ | |
166 V(ChangeBitToBool) \ | 164 V(ChangeBitToBool) \ |
167 V(LoadField) \ | 165 V(LoadField) \ |
168 V(LoadBuffer) \ | 166 V(LoadBuffer) \ |
169 V(LoadElement) \ | 167 V(LoadElement) \ |
170 V(StoreField) \ | 168 V(StoreField) \ |
171 V(StoreBuffer) \ | 169 V(StoreBuffer) \ |
172 V(StoreElement) \ | 170 V(StoreElement) \ |
173 V(ObjectIsSmi) \ | 171 V(ObjectIsSmi) \ |
174 V(ObjectIsNonNegativeSmi) | 172 V(ObjectIsNonNegativeSmi) |
175 | 173 |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
329 return false; | 327 return false; |
330 } | 328 } |
331 } | 329 } |
332 }; | 330 }; |
333 | 331 |
334 } // namespace compiler | 332 } // namespace compiler |
335 } // namespace internal | 333 } // namespace internal |
336 } // namespace v8 | 334 } // namespace v8 |
337 | 335 |
338 #endif // V8_COMPILER_OPCODES_H_ | 336 #endif // V8_COMPILER_OPCODES_H_ |
OLD | NEW |