Commit edc094a5 authored by JianxiaoLuIntel's avatar JianxiaoLuIntel Committed by V8 LUCI CQ

Fix trace_turbo crash

`mksnapshot --trace_turbo` will crash because builtins have no bytecode.

Bug: v8:7327
Change-Id: I61740b9ce934e85d158518787a2c7dc76c57e8d2
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3834641Reviewed-by: 's avatarTobias Tebbi <tebbi@chromium.org>
Commit-Queue: Tobias Tebbi <tebbi@chromium.org>
Cr-Commit-Position: refs/heads/main@{#82553}
parent dc5c3ee5
......@@ -3861,8 +3861,10 @@ MaybeHandle<Code> PipelineImpl::FinalizeCode(bool retire_broker) {
json_of << "\"nodePositions\":";
json_of << data->source_position_output() << ",\n";
JsonPrintAllSourceWithPositions(json_of, data->info(), isolate());
json_of << ",\n";
JsonPrintAllBytecodeSources(json_of, data->info());
if (info()->has_bytecode_array()) {
json_of << ",\n";
JsonPrintAllBytecodeSources(json_of, info());
}
json_of << "\n}";
}
if (info()->trace_turbo_json() || info()->trace_turbo_graph()) {
......
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