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
10
namespace
v8
{
11
namespace
internal
{
12
namespace
compiler {
13
14
// Forward declarations.
15
class
Operator;
16
17
class
V8_EXPORT_PRIVATE
OperatorProperties
final {
18
public
:
19
OperatorProperties
(
const
OperatorProperties
&) =
delete
;
20
OperatorProperties
&
operator=
(
const
OperatorProperties
&) =
delete
;
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_
v8::internal::compiler::OperatorProperties
Definition
operator-properties.h:17
v8::internal::compiler::OperatorProperties::operator=
OperatorProperties & operator=(const OperatorProperties &)=delete
v8::internal::compiler::OperatorProperties::GetContextInputCount
static int GetContextInputCount(const Operator *op)
Definition
operator-properties.h:23
v8::internal::compiler::OperatorProperties::GetFrameStateInputCount
static int GetFrameStateInputCount(const Operator *op)
Definition
operator-properties.h:30
v8::internal::compiler::OperatorProperties::OperatorProperties
OperatorProperties(const OperatorProperties &)=delete
v8::internal::compiler::Operator
Definition
operator.h:33
v8::internal::internal
internal
Definition
wasm-objects-inl.h:458
v8
Definition
api-arguments-inl.h:19
macros.h
V8_EXPORT_PRIVATE
#define V8_EXPORT_PRIVATE
Definition
macros.h:460
src
compiler
operator-properties.h
Generated on Sun Apr 6 2025 21:08:52 for v8 by
1.12.0