summaryrefslogtreecommitdiff
path: root/chromium/v8/tools/system-analyzer/log/ic.mjs
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/v8/tools/system-analyzer/log/ic.mjs')
-rw-r--r--chromium/v8/tools/system-analyzer/log/ic.mjs19
1 files changed, 12 insertions, 7 deletions
diff --git a/chromium/v8/tools/system-analyzer/log/ic.mjs b/chromium/v8/tools/system-analyzer/log/ic.mjs
index 5001e60c364..b6c7ec55537 100644
--- a/chromium/v8/tools/system-analyzer/log/ic.mjs
+++ b/chromium/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'
+ ];
+ }
+}