#ifndef V8_COMPILER_WASM_ESCAPE_ANALYSIS_H_
#define V8_COMPILER_WASM_ESCAPE_ANALYSIS_H_
#if !V8_ENABLE_WEBASSEMBLY
#error This header should only be included if WebAssembly is enabled.
#endif
#include "src/compiler/graph-reducer.h"
namespace v8 {
namespace internal {
namespace compiler {
class MachineGraph;
class WasmEscapeAnalysis final : public AdvancedReducer {
public:
WasmEscapeAnalysis(Editor* editor, MachineGraph* mcgraph)
: AdvancedReducer(editor), mcgraph_(mcgraph) {}
const char* reducer_name() const override { return "WasmEscapeAnalysis"; }
Reduction Reduce(Node* node) final;
private:
Reduction ReduceAllocateRaw(Node* call);
MachineGraph* const mcgraph_;
};
}
}
}
#endif