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
3 // found in the LICENSE file.
5 #ifndef V8_COMPILER_OPERATOR_PROPERTIES_H_
6 #define V8_COMPILER_OPERATOR_PROPERTIES_H_
8 #include "src/base/macros.h"
14 // Forward declarations.
18 class OperatorProperties FINAL {
20 static bool HasContextInput(const Operator* op);
21 static bool HasFrameStateInput(const Operator* op);
23 static int GetContextInputCount(const Operator* op) {
24 return HasContextInput(op) ? 1 : 0;
26 static int GetFrameStateInputCount(const Operator* op) {
27 return HasFrameStateInput(op) ? 1 : 0;
29 static int GetTotalInputCount(const Operator* op);
31 static bool IsBasicBlockBegin(const Operator* op);
34 DISALLOW_COPY_AND_ASSIGN(OperatorProperties);
37 } // namespace compiler
38 } // namespace internal
41 #endif // V8_COMPILER_OPERATOR_PROPERTIES_H_