v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
operator-properties.h
Go to the documentation of this file.
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
10namespace v8 {
11namespace internal {
12namespace compiler {
13
14// Forward declarations.
15class Operator;
16
18 public:
21
22 static bool HasContextInput(const Operator* op);
23 static int GetContextInputCount(const Operator* op) {
24 return HasContextInput(op) ? 1 : 0;
25 }
26
27 static bool NeedsExactContext(const Operator* op);
28
29 static bool HasFrameStateInput(const Operator* op);
30 static int GetFrameStateInputCount(const Operator* op) {
31 return HasFrameStateInput(op) ? 1 : 0;
32 }
33
34 static int GetTotalInputCount(const Operator* op);
35
36 static bool IsBasicBlockBegin(const Operator* op);
37};
38
39} // namespace compiler
40} // namespace internal
41} // namespace v8
42
43#endif // V8_COMPILER_OPERATOR_PROPERTIES_H_
OperatorProperties & operator=(const OperatorProperties &)=delete
static int GetContextInputCount(const Operator *op)
static int GetFrameStateInputCount(const Operator *op)
OperatorProperties(const OperatorProperties &)=delete
#define V8_EXPORT_PRIVATE
Definition macros.h:460