Commit 9a2298a9 authored by Camillo Bruni's avatar Camillo Bruni Committed by Commit Bot

[tools] Improve and clean up map procesor

- Show spinner while parsing input
- Show color boxes next transition types
- Support drag-n-drop of v8.log files

No-Try: true
Change-Id: I360d62960e9ec05fbab388ee2ca55baf4e2c6b78
Reviewed-on: https://chromium-review.googlesource.com/c/1345151Reviewed-by: 's avatarMichael Lippautz <mlippautz@chromium.org>
Commit-Queue: Camillo Bruni <cbruni@chromium.org>
Cr-Commit-Position: refs/heads/master@{#57675}
parent 3272a85e
This diff is collapsed.
...@@ -284,6 +284,10 @@ class V8Map { ...@@ -284,6 +284,10 @@ class V8Map {
return this.edge === void 0 ? "new" : this.edge.type; return this.edge === void 0 ? "new" : this.edge.type;
} }
isBootstrapped() {
return this.edge === void 0;
}
getParents() { getParents() {
let parents = []; let parents = [];
let current = this.parent(); let current = this.parent();
...@@ -363,31 +367,35 @@ class Edge { ...@@ -363,31 +367,35 @@ class Edge {
} }
isTransition() { isTransition() {
return this.type == "Transition" return this.type === "Transition"
} }
isFastToSlow() { isFastToSlow() {
return this.type == "Normalize" return this.type === "Normalize"
} }
isSlowToFast() { isSlowToFast() {
return this.type == "SlowToFast" return this.type === "SlowToFast"
} }
isInitial() { isInitial() {
return this.type == "InitialMap" return this.type === "InitialMap"
}
isBootstrapped() {
return this.type === "new"
} }
isReplaceDescriptors() { isReplaceDescriptors() {
return this.type == "ReplaceDescriptors" return this.type === "ReplaceDescriptors"
} }
isCopyAsPrototype() { isCopyAsPrototype() {
return this.reason == "CopyAsPrototype" return this.reason === "CopyAsPrototype"
} }
isOptimizeAsPrototype() { isOptimizeAsPrototype() {
return this.reason == "OptimizeAsPrototype" return this.reason === "OptimizeAsPrototype"
} }
symbol() { symbol() {
......
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