#include "src/compiler/basic-block-instrumentor.h"
#include <sstream>
#include "src/codegen/optimized-compilation-info.h"
#include "src/compiler/common-operator.h"
#include "src/compiler/graph.h"
#include "src/compiler/linkage.h"
#include "src/compiler/machine-operator.h"
#include "src/compiler/node.h"
#include "src/compiler/operator-properties.h"
#include "src/compiler/schedule.h"
#include "src/compiler/turboshaft/graph.h"
#include "src/compiler/turboshaft/operation-matcher.h"
#include "src/compiler/turboshaft/operations.h"
#include "src/objects/objects-inl.h"
namespace v8 {
namespace internal {
namespace compiler {
static NodeVector::iterator FindInsertionPoint(BasicBlock* block) { … }
static const Operator* IntPtrConstant(CommonOperatorBuilder* common,
intptr_t value) { … }
static const Operator* PointerConstant(CommonOperatorBuilder* common,
const void* ptr) { … }
BasicBlockProfilerData* BasicBlockInstrumentor::Instrument(
OptimizedCompilationInfo* info, Graph* graph, Schedule* schedule,
Isolate* isolate) { … }
namespace {
void StoreBuiltinCallForNode(Node* n, Builtin builtin, int block_id,
BuiltinsCallGraph* bcc_profiler) { … }
}
void BasicBlockCallGraphProfiler::StoreCallGraph(OptimizedCompilationInfo* info,
Schedule* schedule) { … }
bool IsBuiltinCall(const turboshaft::Operation& op,
const turboshaft::Graph& graph, Builtin* called_builtin) { … }
void BasicBlockCallGraphProfiler::StoreCallGraph(
OptimizedCompilationInfo* info, const turboshaft::Graph& graph) { … }
}
}
}