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> | 8 #include <iosfwd> |
9 | 9 |
10 // Opcodes for control operators. | 10 // Opcodes for control operators. |
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
372 static bool IsIfProjectionOpcode(Value value) { | 372 static bool IsIfProjectionOpcode(Value value) { |
373 return kIfTrue <= value && value <= kIfDefault; | 373 return kIfTrue <= value && value <= kIfDefault; |
374 } | 374 } |
375 | 375 |
376 // Returns true if opcode for comparison operator. | 376 // Returns true if opcode for comparison operator. |
377 static bool IsComparisonOpcode(Value value) { | 377 static bool IsComparisonOpcode(Value value) { |
378 return (kJSEqual <= value && value <= kJSGreaterThanOrEqual) || | 378 return (kJSEqual <= value && value <= kJSGreaterThanOrEqual) || |
379 (kNumberEqual <= value && value <= kStringLessThanOrEqual) || | 379 (kNumberEqual <= value && value <= kStringLessThanOrEqual) || |
380 (kWord32Equal <= value && value <= kFloat64LessThanOrEqual); | 380 (kWord32Equal <= value && value <= kFloat64LessThanOrEqual); |
381 } | 381 } |
| 382 |
| 383 static bool Is64(Value value); |
382 }; | 384 }; |
383 | 385 |
384 std::ostream& operator<<(std::ostream&, IrOpcode::Value); | 386 std::ostream& operator<<(std::ostream&, IrOpcode::Value); |
385 | 387 |
386 } // namespace compiler | 388 } // namespace compiler |
387 } // namespace internal | 389 } // namespace internal |
388 } // namespace v8 | 390 } // namespace v8 |
389 | 391 |
390 #endif // V8_COMPILER_OPCODES_H_ | 392 #endif // V8_COMPILER_OPCODES_H_ |
OLD | NEW |