v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
constant-folding-reducer.h
Go to the documentation of this file.
1
// Copyright 2018 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_CONSTANT_FOLDING_REDUCER_H_
6
#define V8_COMPILER_CONSTANT_FOLDING_REDUCER_H_
7
8
#include "
src/compiler/graph-reducer.h
"
9
10
namespace
v8
{
11
namespace
internal
{
12
namespace
compiler {
13
14
// Forward declarations.
15
class
JSGraph;
16
17
class
V8_EXPORT_PRIVATE
ConstantFoldingReducer
final
18
:
public
NON_EXPORTED_BASE
(AdvancedReducer) {
19
public
:
20
ConstantFoldingReducer
(Editor* editor,
JSGraph
*
jsgraph
,
21
JSHeapBroker
*
broker
);
22
~ConstantFoldingReducer
() final;
23
ConstantFoldingReducer
(const
ConstantFoldingReducer
&) = delete;
24
ConstantFoldingReducer
& operator=(const
ConstantFoldingReducer
&) = delete;
25
26
const
char
* reducer_name()
const override
{
return
"ConstantFoldingReducer"
; }
27
28
Reduction
Reduce(
Node
* node)
final
;
29
30
private
:
31
JSGraph
*
jsgraph
()
const
{
return
jsgraph_; }
32
JSHeapBroker
*
broker
()
const
{
return
broker_
; }
33
34
JSGraph
*
const
jsgraph_
;
35
JSHeapBroker
*
const
broker_
;
36
};
37
38
}
// namespace compiler
39
}
// namespace internal
40
}
// namespace v8
41
42
#endif
// V8_COMPILER_CONSTANT_FOLDING_REDUCER_H_
jsgraph
JSGraph * jsgraph
Definition
add-type-assertions-reducer.cc:16
v8::internal::compiler::ConstantFoldingReducer
Definition
constant-folding-reducer.h:18
v8::internal::compiler::ConstantFoldingReducer::broker_
JSHeapBroker *const broker_
Definition
constant-folding-reducer.h:35
v8::internal::compiler::ConstantFoldingReducer::jsgraph_
JSGraph *const jsgraph_
Definition
constant-folding-reducer.h:34
v8::internal::compiler::ConstantFoldingReducer::jsgraph
JSGraph * jsgraph() const
Definition
constant-folding-reducer.h:31
v8::internal::compiler::ConstantFoldingReducer::broker
JSHeapBroker * broker() const
Definition
constant-folding-reducer.h:32
v8::internal::compiler::ConstantFoldingReducer::~ConstantFoldingReducer
~ConstantFoldingReducer() final
v8::internal::compiler::JSGraph
Definition
js-graph.h:27
v8::internal::compiler::JSHeapBroker
Definition
js-heap-broker.h:95
v8::internal::compiler::Node
Definition
node.h:41
v8::internal::compiler::Reduction
Definition
graph-reducer.h:34
broker_
JSHeapBroker *const broker_
Definition
compilation-dependencies.cc:497
broker
JSHeapBroker * broker
Definition
graph-builder.cc:68
graph-reducer.h
v8::internal::internal
internal
Definition
wasm-objects-inl.h:458
v8
Definition
api-arguments-inl.h:19
NON_EXPORTED_BASE
#define NON_EXPORTED_BASE(code)
Definition
compiler-specific.h:93
V8_EXPORT_PRIVATE
#define V8_EXPORT_PRIVATE
Definition
macros.h:460
src
compiler
constant-folding-reducer.h
Generated on Sun Apr 6 2025 21:08:51 for v8 by
1.12.0