Skip to content

Commit 77140c1

Browse files
bsep-chromiumCommit Bot
authored andcommitted
Delete dead/debug code in (tick|ic|map)processor.js.
Change-Id: I76264a2f912eaac0ca913004fe9ec1f57d03ecb9 Reviewed-on: https://chromium-review.googlesource.com/1177390 Reviewed-by: Camillo Bruni <cbruni@chromium.org> Commit-Queue: Bret Sepulveda <bsep@chromium.org> Cr-Commit-Position: refs/heads/master@{#55160}
1 parent 620410a commit 77140c1

3 files changed

Lines changed: 1 addition & 16 deletions

File tree

tools/ic-processor.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ function IcProcessor() {
6161
parsers : propertyICParser,
6262
processor: this.processPropertyIC.bind(this, "StoreInArrayLiteralIC") },
6363
});
64-
this.deserializedEntriesNames_ = [];
6564
this.profile_ = new Profile();
6665

6766
this.LoadIC = 0;
@@ -118,10 +117,6 @@ IcProcessor.prototype.addEntry = function(entry) {
118117

119118
IcProcessor.prototype.processCodeCreation = function(
120119
type, kind, timestamp, start, size, name, maybe_func) {
121-
name = this.deserializedEntriesNames_[start] || name;
122-
if (name.startsWith("onComplete")) {
123-
console.log(name);
124-
}
125120
if (maybe_func.length) {
126121
var funcAddr = parseInt(maybe_func[0]);
127122
var state = parseState(maybe_func[1]);

tools/map-processor.js

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ class MapProcessor extends LogReader {
3939
processor: this.processMapDetails
4040
}
4141
};
42-
this.deserializedEntriesNames_ = [];
4342
this.profile_ = new Profile();
4443
this.timeline_ = new Timeline();
4544
}
@@ -66,7 +65,7 @@ class MapProcessor extends LogReader {
6665
this.processLogLine(line);
6766
}
6867
} catch(e) {
69-
console.log("Error occurred during parsing, trying to continue: " + e);
68+
console.error("Error occurred during parsing, trying to continue: " + e);
7069
}
7170
return this.finalize();
7271
}
@@ -108,10 +107,6 @@ class MapProcessor extends LogReader {
108107

109108
processCodeCreation(
110109
type, kind, timestamp, start, size, name, maybe_func) {
111-
name = this.deserializedEntriesNames_[start] || name;
112-
if (name.startsWith("onComplete")) {
113-
console.log(name);
114-
}
115110
if (maybe_func.length) {
116111
let funcAddr = parseInt(maybe_func[0]);
117112
let state = this.parseState(maybe_func[1]);
@@ -180,9 +175,6 @@ class MapProcessor extends LogReader {
180175
}
181176

182177
createMap(id, time) {
183-
if (id == 0x1821257d1761) {
184-
console.log(id);
185-
}
186178
let map = new V8Map(id, time);
187179
this.timeline_.push(map);
188180
return map;

tools/tickprocessor.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,6 @@ function TickProcessor(
160160
this.stateFilter_ = stateFilter;
161161
this.runtimeTimerFilter_ = runtimeTimerFilter;
162162
this.sourceMap = sourceMap;
163-
this.deserializedEntriesNames_ = [];
164163
var ticks = this.ticks_ =
165164
{ total: 0, unaccounted: 0, excluded: 0, gc: 0 };
166165

@@ -299,7 +298,6 @@ TickProcessor.prototype.processSharedLibrary = function(
299298

300299
TickProcessor.prototype.processCodeCreation = function(
301300
type, kind, timestamp, start, size, name, maybe_func) {
302-
name = this.deserializedEntriesNames_[start] || name;
303301
if (maybe_func.length) {
304302
var funcAddr = parseInt(maybe_func[0]);
305303
var state = parseState(maybe_func[1]);

0 commit comments

Comments
 (0)