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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
74 V(JSBitwiseAnd) \ | 74 V(JSBitwiseAnd) \ |
75 V(JSShiftLeft) \ | 75 V(JSShiftLeft) \ |
76 V(JSShiftRight) \ | 76 V(JSShiftRight) \ |
77 V(JSShiftRightLogical) | 77 V(JSShiftRightLogical) |
78 | 78 |
79 #define JS_ARITH_BINOP_LIST(V) \ | 79 #define JS_ARITH_BINOP_LIST(V) \ |
80 V(JSAdd) \ | 80 V(JSAdd) \ |
81 V(JSSubtract) \ | 81 V(JSSubtract) \ |
82 V(JSMultiply) \ | 82 V(JSMultiply) \ |
83 V(JSDivide) \ | 83 V(JSDivide) \ |
84 V(JSModulus) | 84 V(JSModulus) \ |
85 V(JSExponentiate) | |
85 | 86 |
86 #define JS_SIMPLE_BINOP_LIST(V) \ | 87 #define JS_SIMPLE_BINOP_LIST(V) \ |
87 JS_COMPARE_BINOP_LIST(V) \ | 88 JS_COMPARE_BINOP_LIST(V) \ |
88 JS_BITWISE_BINOP_LIST(V) \ | 89 JS_BITWISE_BINOP_LIST(V) \ |
89 JS_ARITH_BINOP_LIST(V) | 90 JS_ARITH_BINOP_LIST(V) |
90 | 91 |
91 #define JS_LOGIC_UNOP_LIST(V) V(JSUnaryNot) | 92 #define JS_LOGIC_UNOP_LIST(V) V(JSUnaryNot) |
92 | 93 |
93 #define JS_CONVERSION_UNOP_LIST(V) \ | 94 #define JS_CONVERSION_UNOP_LIST(V) \ |
94 V(JSToBoolean) \ | 95 V(JSToBoolean) \ |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
145 V(BooleanNot) \ | 146 V(BooleanNot) \ |
146 V(BooleanToNumber) \ | 147 V(BooleanToNumber) \ |
147 V(NumberEqual) \ | 148 V(NumberEqual) \ |
148 V(NumberLessThan) \ | 149 V(NumberLessThan) \ |
149 V(NumberLessThanOrEqual) \ | 150 V(NumberLessThanOrEqual) \ |
150 V(NumberAdd) \ | 151 V(NumberAdd) \ |
151 V(NumberSubtract) \ | 152 V(NumberSubtract) \ |
152 V(NumberMultiply) \ | 153 V(NumberMultiply) \ |
153 V(NumberDivide) \ | 154 V(NumberDivide) \ |
154 V(NumberModulus) \ | 155 V(NumberModulus) \ |
156 V(NumberExponentiate) \ | |
Michael Starzinger
2015/02/24 14:09:03
This opcode is never used.
| |
155 V(NumberToInt32) \ | 157 V(NumberToInt32) \ |
156 V(NumberToUint32) \ | 158 V(NumberToUint32) \ |
157 V(PlainPrimitiveToNumber) \ | 159 V(PlainPrimitiveToNumber) \ |
158 V(ReferenceEqual) \ | 160 V(ReferenceEqual) \ |
159 V(StringEqual) \ | 161 V(StringEqual) \ |
160 V(StringLessThan) \ | 162 V(StringLessThan) \ |
161 V(StringLessThanOrEqual) \ | 163 V(StringLessThanOrEqual) \ |
162 V(StringAdd) \ | 164 V(StringAdd) \ |
163 V(ChangeTaggedToInt32) \ | 165 V(ChangeTaggedToInt32) \ |
164 V(ChangeTaggedToUint32) \ | 166 V(ChangeTaggedToUint32) \ |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
308 static bool IsMergeOpcode(Value value) { | 310 static bool IsMergeOpcode(Value value) { |
309 return value == kMerge || value == kLoop; | 311 return value == kMerge || value == kLoop; |
310 } | 312 } |
311 }; | 313 }; |
312 | 314 |
313 } // namespace compiler | 315 } // namespace compiler |
314 } // namespace internal | 316 } // namespace internal |
315 } // namespace v8 | 317 } // namespace v8 |
316 | 318 |
317 #endif // V8_COMPILER_OPCODES_H_ | 319 #endif // V8_COMPILER_OPCODES_H_ |
OLD | NEW |