diff options
Diffstat (limited to 'deps/v8/tools/system-analyzer/log/ic.mjs')
-rw-r--r-- | deps/v8/tools/system-analyzer/log/ic.mjs | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/deps/v8/tools/system-analyzer/log/ic.mjs b/deps/v8/tools/system-analyzer/log/ic.mjs index 5001e60c36..b6c7ec5553 100644 --- a/deps/v8/tools/system-analyzer/log/ic.mjs +++ b/deps/v8/tools/system-analyzer/log/ic.mjs @@ -1,12 +1,12 @@ // Copyright 2020 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -import { Event } from './log.mjs'; +import {LogEntry} from './log.mjs'; -class IcLogEvent extends Event { +export class IcLogEntry extends LogEntry { constructor( - type, fn_file, time, line, column, key, oldState, newState, map, reason, - script, additional) { + type, fn_file, time, line, column, key, oldState, newState, map, reason, + script, modifier, additional) { super(type, time); this.category = 'other'; if (this.type.indexOf('Store') !== -1) { @@ -27,9 +27,9 @@ class IcLogEvent extends Event { this.reason = reason; this.additional = additional; this.script = script; + this.modifier = modifier; } - parseMapProperties(parts, offset) { let next = parts[++offset]; if (!next.startsWith('dict')) return offset; @@ -55,6 +55,11 @@ class IcLogEvent extends Event { this.file = parts[offset]; return offset; } -} -export { IcLogEvent }; + static get propertyNames() { + return [ + 'type', 'category', 'functionName', 'filePosition', 'state', 'key', 'map', + 'reason', 'file' + ]; + } +} |