| Index: src/compiler/operator-properties.h
|
| diff --git a/src/compiler/operator-properties.h b/src/compiler/operator-properties.h
|
| index 70186c9af9019494dc5fbac493bd1951a40aaf5b..37c9755ed7aceb68536a1823ce22356b51ee1788 100644
|
| --- a/src/compiler/operator-properties.h
|
| +++ b/src/compiler/operator-properties.h
|
| @@ -5,22 +5,33 @@
|
| #ifndef V8_COMPILER_OPERATOR_PROPERTIES_H_
|
| #define V8_COMPILER_OPERATOR_PROPERTIES_H_
|
|
|
| +#include "src/base/macros.h"
|
| +
|
| namespace v8 {
|
| namespace internal {
|
| namespace compiler {
|
|
|
| +// Forward declarations.
|
| class Operator;
|
|
|
| -class OperatorProperties {
|
| +
|
| +class OperatorProperties FINAL {
|
| public:
|
| - static inline bool HasContextInput(const Operator* op);
|
| - static inline bool HasFrameStateInput(const Operator* op);
|
| + static bool HasContextInput(const Operator* op);
|
| + static bool HasFrameStateInput(const Operator* op);
|
| +
|
| + static int GetContextInputCount(const Operator* op) {
|
| + return HasContextInput(op) ? 1 : 0;
|
| + }
|
| + static int GetFrameStateInputCount(const Operator* op) {
|
| + return HasFrameStateInput(op) ? 1 : 0;
|
| + }
|
| + static int GetTotalInputCount(const Operator* op);
|
|
|
| - static inline int GetContextInputCount(const Operator* op);
|
| - static inline int GetFrameStateInputCount(const Operator* op);
|
| - static inline int GetTotalInputCount(const Operator* op);
|
| + static bool IsBasicBlockBegin(const Operator* op);
|
|
|
| - static inline bool IsBasicBlockBegin(const Operator* op);
|
| + private:
|
| + DISALLOW_COPY_AND_ASSIGN(OperatorProperties);
|
| };
|
|
|
| } // namespace compiler
|
|
|