Commit a402686e authored by Pierre Langlois's avatar Pierre Langlois Committed by Commit Bot

[turbolizer] Show whether a block is deferred in sequence view

Bug: v8:7327
Change-Id: I2a140cf79d3be83a34401f5e4a8033fd9d89568b
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1526011
Commit-Queue: Sigurd Schneider <sigurds@chromium.org>
Reviewed-by: 's avatarSigurd Schneider <sigurds@chromium.org>
Cr-Commit-Position: refs/heads/master@{#60306}
parent b1cd3ee7
...@@ -1172,7 +1172,8 @@ std::ostream& operator<<(std::ostream& os, const InstructionBlockAsJSON& b) { ...@@ -1172,7 +1172,8 @@ std::ostream& operator<<(std::ostream& os, const InstructionBlockAsJSON& b) {
const InstructionSequence* code = b.code_; const InstructionSequence* code = b.code_;
os << "{"; os << "{";
os << "\"id\": " << block->rpo_number() << ","; os << "\"id\": " << block->rpo_number() << ",";
os << "\"deferred\": " << block->IsDeferred() << ","; os << "\"deferred\": " << (block->IsDeferred() ? "true" : "false");
os << ",";
os << "\"loop_header\": " << block->IsLoopHeader() << ","; os << "\"loop_header\": " << block->IsLoopHeader() << ",";
if (block->IsLoopHeader()) { if (block->IsLoopHeader()) {
os << "\"loop_end\": " << block->loop_end() << ","; os << "\"loop_end\": " << block->loop_end() << ",";
......
...@@ -165,6 +165,7 @@ export class SequenceView extends TextView { ...@@ -165,6 +165,7 @@ export class SequenceView extends TextView {
} }
const sequenceBlock = createElement("div", "schedule-block"); const sequenceBlock = createElement("div", "schedule-block");
sequenceBlock.classList.toggle("deferred", block.deferred);
const blockId = createElement("div", ["block-id", "com", "clickable"], block.id); const blockId = createElement("div", ["block-id", "com", "clickable"], block.id);
blockId.onclick = mkBlockLinkHandler(block.id); blockId.onclick = mkBlockLinkHandler(block.id);
......
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