Commit a1147408 authored by Victor Gomes's avatar Victor Gomes Committed by V8 LUCI CQ

[profiler] Support Sparkplug on heap compilation

Bug: v8:11872
Change-Id: I78c480e3266212adf1e71f728ca16b704c2e7d77
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3030702
Auto-Submit: Victor Gomes <victorgomes@chromium.org>
Reviewed-by: 's avatarYang Guo <yangguo@chromium.org>
Commit-Queue: Yang Guo <yangguo@chromium.org>
Cr-Commit-Position: refs/heads/master@{#75738}
parent 6ca1f677
......@@ -1200,9 +1200,17 @@ void V8HeapExplorer::TagBuiltinCodeObject(Code code, const char* name) {
}
void V8HeapExplorer::ExtractCodeReferences(HeapEntry* entry, Code code) {
TagObject(code.relocation_info(), "(code relocation info)");
SetInternalReference(entry, "relocation_info", code.relocation_info(),
Object reloc_info_or_undefined = code.relocation_info_or_undefined();
TagObject(reloc_info_or_undefined, "(code relocation info)");
SetInternalReference(entry, "relocation_info", reloc_info_or_undefined,
Code::kRelocationInfoOffset);
if (reloc_info_or_undefined.IsUndefined()) {
// The code object was compiled directly on the heap, but it was not
// finalized.
DCHECK(code.kind() == CodeKind::BASELINE);
return;
}
TagObject(code.deoptimization_data(), "(code deopt data)");
SetInternalReference(entry, "deoptimization_data", code.deoptimization_data(),
Code::kDeoptimizationDataOffset);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment