chromium/v8/src/compiler/wasm-inlining.cc

// Copyright 2021 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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) {}

// TODO(12166): Save inlined frames for trap/--trace-wasm purposes.
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() {}

/* Rewire callee formal parameters to the call-site real parameters. Rewire
 * effect and control dependencies of callee's start node with the respective
 * inputs of the call node.
 */
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

}  // namespace compiler
}  // namespace internal
}  // namespace v8