#include "src/compiler/wasm-inlining.h"
#include <cinttypes>
#include "src/compiler/all-nodes.h"
#include "src/compiler/compiler-source-position-table.h"
#include "src/compiler/node-matchers.h"
#include "src/compiler/wasm-compiler.h"
#include "src/wasm/function-body-decoder.h"
#include "src/wasm/graph-builder-interface.h"
#include "src/wasm/wasm-features.h"
#include "src/wasm/wasm-module.h"
#include "src/wasm/wasm-subtyping.h"
namespace v8 {
namespace internal {
namespace compiler {
Reduction WasmInliner::Reduce(Node* node) { … }
#define TRACE …
void WasmInliner::Trace(Node* call, int inlinee, const char* decision) { … }
int WasmInliner::GetCallCount(Node* call) { … }
Reduction WasmInliner::ReduceCall(Node* call) { … }
bool SmallEnoughToInline(const wasm::WasmModule* module,
size_t current_graph_size, uint32_t candidate_size,
size_t initial_graph_size) { … }
bool WasmInliner::graph_size_allows_inlining(const wasm::WasmModule* module,
size_t graph_size,
size_t initial_graph_size) { … }
void WasmInliner::Trace(const CandidateInfo& candidate, const char* decision) { … }
void WasmInliner::Finalize() { … }
void WasmInliner::RewireFunctionEntry(Node* call, Node* callee_start) { … }
void WasmInliner::InlineTailCall(Node* call, Node* callee_start,
Node* callee_end) { … }
void WasmInliner::InlineCall(Node* call, Node* callee_start, Node* callee_end,
const wasm::FunctionSig* inlinee_sig,
SourcePosition parent_pos,
wasm::DanglingExceptions* dangling_exceptions) { … }
const wasm::WasmModule* WasmInliner::module() const { … }
#undef TRACE
}
}
}