#include "src/compiler/wasm-address-reassociation.h"
#include "src/compiler/common-operator.h"
#include "src/compiler/graph.h"
#include "src/compiler/js-graph.h"
#include "src/compiler/machine-graph.h"
#include "src/compiler/machine-operator.h"
#include "src/compiler/node-matchers.h"
#include "src/compiler/node-properties.h"
#include "src/compiler/node.h"
#include "src/compiler/opcodes.h"
#include "src/compiler/operator.h"
#include "src/zone/zone.h"
namespace v8 {
namespace internal {
namespace compiler {
WasmAddressReassociation::WasmAddressReassociation(JSGraph* jsgraph, Zone* zone)
: … { … }
void WasmAddressReassociation::Optimize() { … }
bool WasmAddressReassociation::ShouldTryOptimize(
const CandidateAddressKey& key) const { … }
Node* WasmAddressReassociation::CreateNewBase(const CandidateAddressKey& key) { … }
void WasmAddressReassociation::ReplaceInputs(Node* mem_op, Node* base,
Node* offset) { … }
void WasmAddressReassociation::VisitProtectedMemOp(Node* node,
NodeId effect_chain) { … }
void WasmAddressReassociation::AddCandidate(Node* mem_op, Node* base,
Node* reg_offset,
int64_t imm_offset,
NodeId effect_chain) { … }
bool WasmAddressReassociation::HasCandidateBaseAddr(
const CandidateAddressKey& key) const { … }
void WasmAddressReassociation::CandidateMemOps::AddCandidate(
Node* mem_op, int64_t imm_offset) { … }
size_t WasmAddressReassociation::CandidateMemOps::GetNumNodes() const { … }
Node* WasmAddressReassociation::CandidateMemOps::mem_op(size_t i) const { … }
int64_t WasmAddressReassociation::CandidateMemOps::imm_offset(size_t i) const { … }
}
}
}