Skip to content

Commit b07e02e

Browse files
GeorgNeisCommit Bot
authored andcommitted
[tools] Make ic-processor print global loads/stores.
Change-Id: I807581b0c058c304769d4ba1b4f9bc8a9739536f No-Try: true Reviewed-on: https://chromium-review.googlesource.com/c/1417633 Reviewed-by: Toon Verwaest <verwaest@chromium.org> Commit-Queue: Georg Neis <neis@chromium.org> Cr-Commit-Position: refs/heads/master@{#58920}
1 parent 2619f59 commit b07e02e

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

tools/ic-processor.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,12 @@ function IcProcessor() {
4545
processor: this.processCodeDelete },
4646
'sfi-move': { parsers: [parseInt, parseInt],
4747
processor: this.processFunctionMove },
48+
'LoadGlobalIC': {
49+
parsers : propertyICParser,
50+
processor: this.processPropertyIC.bind(this, "LoadGlobalIC") },
51+
'StoreGlobalIC': {
52+
parsers : propertyICParser,
53+
processor: this.processPropertyIC.bind(this, "StoreGlobalIC") },
4854
'LoadIC': {
4955
parsers : propertyICParser,
5056
processor: this.processPropertyIC.bind(this, "LoadIC") },
@@ -63,6 +69,8 @@ function IcProcessor() {
6369
});
6470
this.profile_ = new Profile();
6571

72+
this.LoadGlobalIC = 0;
73+
this.StoreGlobalIC = 0;
6674
this.LoadIC = 0;
6775
this.StoreIC = 0;
6876
this.KeyedLoadIC = 0;
@@ -104,6 +112,8 @@ IcProcessor.prototype.processLogFile = function(fileName) {
104112
}
105113
print();
106114
print("=====================");
115+
print("LoadGlobal: " + this.LoadGlobalIC);
116+
print("StoreGlobal: " + this.StoreGlobalIC);
107117
print("Load: " + this.LoadIC);
108118
print("Store: " + this.StoreIC);
109119
print("KeyedLoad: " + this.KeyedLoadIC);

0 commit comments

Comments
 (0)