a6c474fecc
Enable more complex tooltips with clickable links and references. - Use short filename for Script.name if they are unique - Use shared App.isClickable method - Remove various toStringLong methods - Rename CodeLogEntry.disassemble to .code - Add DOM.button helper Bug: v8:10644 Change-Id: I5d46ffd560b37278dc46b8347cb9ff0a7fdfa2ef Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2916373 Reviewed-by: Victor Gomes <victorgomes@chromium.org> Commit-Queue: Camillo Bruni <cbruni@chromium.org> Cr-Commit-Position: refs/heads/master@{#74746}
25 lines
546 B
JavaScript
25 lines
546 B
JavaScript
// 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 {LogEntry} from './log.mjs';
|
|
|
|
export class ApiLogEntry extends LogEntry {
|
|
constructor(type, time, name, argument) {
|
|
super(type, time);
|
|
this._name = name;
|
|
this._argument = argument;
|
|
}
|
|
|
|
get name() {
|
|
return this._name;
|
|
}
|
|
|
|
get argument() {
|
|
return this._argument;
|
|
}
|
|
|
|
static get propertyNames() {
|
|
return ['type', 'name', 'argument'];
|
|
}
|
|
}
|