andrewiggins / v8-deopt-viewer

View deoptimizations of your JavaScript in V8

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

IC format in log file has changed

marvinhagemeister opened this issue · comments

Looks like there is one new column in the CSV and we trip over that. Ours has only 9 parsers whereas recent versions of v8 write 10 columns.

Our parser:

export const propertyICFieldParsers = [
parseInt, // profile code
parseInt, // line
parseInt, // column
parseIcState, // old_state
parseIcState, // new_state
parseInt, // map ID
parseString, // propertyKey
parseString, // modifier
parseString, // slow_reason
];

V8: https://source.chromium.org/chromium/chromium/src/+/main:v8/tools/system-analyzer/processor.mjs;l=69-72?q=StoreIC&ss=chromium%2Fchromium%2Fsrc&start=41

EDIT: This folder might also be of interest: https://source.chromium.org/chromium/chromium/src/+/main:v8/tools/system-analyzer/

Some more information:

Node 15/16:

StoreIC,0x3107e6a754d5,676125,534,44,X,X,0x000000000000,map,,

Node <= 14

StoreIC,0xf2e574a7855,534,44,X,X,0x000000000000,map,,

Not sure what the third number is referring to.