V8 API Reference, 7.2.502.16 (for Deno 0.2.4)
operator-properties.h
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.
4 
5 #ifndef V8_COMPILER_OPERATOR_PROPERTIES_H_
6 #define V8_COMPILER_OPERATOR_PROPERTIES_H_
7 
8 #include "src/base/macros.h"
9 #include "src/globals.h"
10 
11 namespace v8 {
12 namespace internal {
13 namespace compiler {
14 
15 // Forward declarations.
16 class Operator;
17 
18 class V8_EXPORT_PRIVATE OperatorProperties final {
19  public:
20  static bool HasContextInput(const Operator* op);
21  static int GetContextInputCount(const Operator* op) {
22  return HasContextInput(op) ? 1 : 0;
23  }
24 
25  static bool NeedsExactContext(const Operator* op);
26 
27  static bool HasFrameStateInput(const Operator* op);
28  static int GetFrameStateInputCount(const Operator* op) {
29  return HasFrameStateInput(op) ? 1 : 0;
30  }
31 
32  static int GetTotalInputCount(const Operator* op);
33 
34  static bool IsBasicBlockBegin(const Operator* op);
35 
36  private:
37  DISALLOW_COPY_AND_ASSIGN(OperatorProperties);
38 };
39 
40 } // namespace compiler
41 } // namespace internal
42 } // namespace v8
43 
44 #endif // V8_COMPILER_OPERATOR_PROPERTIES_H_
Definition: libplatform.h:13