| 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 #include <iosfwd> |
| 9 |
| 8 // Opcodes for control operators. | 10 // Opcodes for control operators. |
| 9 #define CONTROL_OP_LIST(V) \ | 11 #define CONTROL_OP_LIST(V) \ |
| 10 V(Start) \ | 12 V(Start) \ |
| 11 V(Dead) \ | 13 V(Dead) \ |
| 12 V(Loop) \ | 14 V(Loop) \ |
| 13 V(Branch) \ | 15 V(Branch) \ |
| 14 V(Switch) \ | 16 V(Switch) \ |
| 15 V(IfTrue) \ | 17 V(IfTrue) \ |
| 16 V(IfFalse) \ | 18 V(IfFalse) \ |
| 17 V(IfSuccess) \ | 19 V(IfSuccess) \ |
| (...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 341 } | 343 } |
| 342 | 344 |
| 343 // Returns true if opcode for comparison operator. | 345 // Returns true if opcode for comparison operator. |
| 344 static bool IsComparisonOpcode(Value value) { | 346 static bool IsComparisonOpcode(Value value) { |
| 345 return (kJSEqual <= value && value <= kJSGreaterThanOrEqual) || | 347 return (kJSEqual <= value && value <= kJSGreaterThanOrEqual) || |
| 346 (kNumberEqual <= value && value <= kStringLessThanOrEqual) || | 348 (kNumberEqual <= value && value <= kStringLessThanOrEqual) || |
| 347 (kWord32Equal <= value && value <= kFloat64LessThanOrEqual); | 349 (kWord32Equal <= value && value <= kFloat64LessThanOrEqual); |
| 348 } | 350 } |
| 349 }; | 351 }; |
| 350 | 352 |
| 353 std::ostream& operator<<(std::ostream&, IrOpcode::Value); |
| 354 |
| 351 } // namespace compiler | 355 } // namespace compiler |
| 352 } // namespace internal | 356 } // namespace internal |
| 353 } // namespace v8 | 357 } // namespace v8 |
| 354 | 358 |
| 355 #endif // V8_COMPILER_OPCODES_H_ | 359 #endif // V8_COMPILER_OPCODES_H_ |
| OLD | NEW |