Commit b07e02ef authored by Georg Neis's avatar Georg Neis Committed by Commit Bot

[tools] Make ic-processor print global loads/stores.

Change-Id: I807581b0c058c304769d4ba1b4f9bc8a9739536f
No-Try: true
Reviewed-on: https://chromium-review.googlesource.com/c/1417633Reviewed-by: 's avatarToon Verwaest <verwaest@chromium.org>
Commit-Queue: Georg Neis <neis@chromium.org>
Cr-Commit-Position: refs/heads/master@{#58920}
parent 2619f59c
...@@ -45,6 +45,12 @@ function IcProcessor() { ...@@ -45,6 +45,12 @@ function IcProcessor() {
processor: this.processCodeDelete }, processor: this.processCodeDelete },
'sfi-move': { parsers: [parseInt, parseInt], 'sfi-move': { parsers: [parseInt, parseInt],
processor: this.processFunctionMove }, processor: this.processFunctionMove },
'LoadGlobalIC': {
parsers : propertyICParser,
processor: this.processPropertyIC.bind(this, "LoadGlobalIC") },
'StoreGlobalIC': {
parsers : propertyICParser,
processor: this.processPropertyIC.bind(this, "StoreGlobalIC") },
'LoadIC': { 'LoadIC': {
parsers : propertyICParser, parsers : propertyICParser,
processor: this.processPropertyIC.bind(this, "LoadIC") }, processor: this.processPropertyIC.bind(this, "LoadIC") },
...@@ -63,6 +69,8 @@ function IcProcessor() { ...@@ -63,6 +69,8 @@ function IcProcessor() {
}); });
this.profile_ = new Profile(); this.profile_ = new Profile();
this.LoadGlobalIC = 0;
this.StoreGlobalIC = 0;
this.LoadIC = 0; this.LoadIC = 0;
this.StoreIC = 0; this.StoreIC = 0;
this.KeyedLoadIC = 0; this.KeyedLoadIC = 0;
...@@ -104,6 +112,8 @@ IcProcessor.prototype.processLogFile = function(fileName) { ...@@ -104,6 +112,8 @@ IcProcessor.prototype.processLogFile = function(fileName) {
} }
print(); print();
print("====================="); print("=====================");
print("LoadGlobal: " + this.LoadGlobalIC);
print("StoreGlobal: " + this.StoreGlobalIC);
print("Load: " + this.LoadIC); print("Load: " + this.LoadIC);
print("Store: " + this.StoreIC); print("Store: " + this.StoreIC);
print("KeyedLoad: " + this.KeyedLoadIC); print("KeyedLoad: " + this.KeyedLoadIC);
......
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