V8 API Reference, 7.2.502.16 (for Deno 0.2.4)
constant-folding-reducer.h
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
24
const
char
* reducer_name()
const override
{
return
"ConstantFoldingReducer"
; }
25
26
Reduction
Reduce(
Node
* node)
final
;
27
28
private
:
29
JSGraph
* jsgraph()
const
{
return
jsgraph_; }
30
JSHeapBroker
* broker()
const
{
return
broker_; }
31
32
JSGraph
*
const
jsgraph_;
33
JSHeapBroker
*
const
broker_;
34
35
DISALLOW_COPY_AND_ASSIGN(
ConstantFoldingReducer
);
36
};
37
38
}
// namespace compiler
39
}
// namespace internal
40
}
// namespace v8
41
42
#endif // V8_COMPILER_CONSTANT_FOLDING_REDUCER_H_
v8::internal::compiler::JSGraph
Definition:
js-graph.h:26
v8::internal::compiler::ConstantFoldingReducer
Definition:
constant-folding-reducer.h:17
v8
Definition:
libplatform.h:13
v8::internal::compiler::JSHeapBroker
Definition:
js-heap-broker.h:594
v8::internal::compiler::Node
Definition:
node.h:43
v8::internal::compiler::Reduction
Definition:
graph-reducer.h:30
v8
src
compiler
constant-folding-reducer.h
Generated on Tue Dec 25 2018 14:38:34 by
1.8.14