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 #include "src/globals.h" | 10 #include "src/globals.h" |
(...skipping 782 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
793 static bool IsInlineeOpcode(Value value) { | 793 static bool IsInlineeOpcode(Value value) { |
794 return value == kJSCallConstruct || value == kJSCallFunction; | 794 return value == kJSCallConstruct || value == kJSCallFunction; |
795 } | 795 } |
796 | 796 |
797 // Returns true if opcode for comparison operator. | 797 // Returns true if opcode for comparison operator. |
798 static bool IsComparisonOpcode(Value value) { | 798 static bool IsComparisonOpcode(Value value) { |
799 return (kJSEqual <= value && value <= kJSGreaterThanOrEqual) || | 799 return (kJSEqual <= value && value <= kJSGreaterThanOrEqual) || |
800 (kNumberEqual <= value && value <= kStringLessThanOrEqual) || | 800 (kNumberEqual <= value && value <= kStringLessThanOrEqual) || |
801 (kWord32Equal <= value && value <= kFloat64LessThanOrEqual); | 801 (kWord32Equal <= value && value <= kFloat64LessThanOrEqual); |
802 } | 802 } |
| 803 |
| 804 static bool IsContextChainExtendingOpcode(Value value) { |
| 805 return kJSCreateFunctionContext <= value && value <= kJSCreateScriptContext; |
| 806 } |
803 }; | 807 }; |
804 | 808 |
805 V8_EXPORT_PRIVATE std::ostream& operator<<(std::ostream&, IrOpcode::Value); | 809 V8_EXPORT_PRIVATE std::ostream& operator<<(std::ostream&, IrOpcode::Value); |
806 | 810 |
807 } // namespace compiler | 811 } // namespace compiler |
808 } // namespace internal | 812 } // namespace internal |
809 } // namespace v8 | 813 } // namespace v8 |
810 | 814 |
811 #endif // V8_COMPILER_OPCODES_H_ | 815 #endif // V8_COMPILER_OPCODES_H_ |
OLD | NEW |