Commit 060a31a0 authored by Sathya Gunasekaran's avatar Sathya Gunasekaran Committed by Commit Bot

[tools] Fix ic-processor-driver.mjs

The IC object's interface is changing all the time and this code is
just bitrotting. Rather than trying to keep this updated all the time,
let's just use Object.values to print all the key value pairs in the
ic object.

This looks slightly worse than the previous text format but it has the
critical advantage of being broken less often.

Change-Id: Ia3580d1ba82a981d8442682f66d6002436e70f42
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2615418
Auto-Submit: Sathya Gunasekaran  <gsathya@chromium.org>
Commit-Queue: Camillo Bruni <cbruni@chromium.org>
Reviewed-by: 's avatarCamillo Bruni <cbruni@chromium.org>
Cr-Commit-Position: refs/heads/master@{#71969}
parent 0344609b
......@@ -78,11 +78,7 @@ const accumulator = {
StoreInArrayLiteralIC: 0,
}
for (const ic of processor.icTimeline.all) {
print(
ic.type + ' (' + ic.oldState + '->' + ic.newState + ic.modifier + ') at ' +
ic.filePosition + ' ' + ic.key +
' (map 0x' + ic.map.toString(16) + ')' +
(ic.reason ? ` ${ic.reason}` : '') + ' time: ' + ic.time);
print(Object.values(ic));
accumulator[ic.type]++;
}
......
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