From: yangguo@chromium.org Date: Thu, 15 Sep 2011 13:12:59 +0000 (+0000) Subject: Tickprocessor no longer prints error messages on log entries that are unrelated to... X-Git-Tag: upstream/4.7.83~18452 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b6808ee7909298faf4c0102819ccf62ee666495e;p=platform%2Fupstream%2Fv8.git Tickprocessor no longer prints error messages on log entries that are unrelated to profiling. BUG=v8:1683 Review URL: http://codereview.chromium.org/7906003 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@9302 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- diff --git a/tools/logreader.js b/tools/logreader.js index b23add4..d057f2a 100644 --- a/tools/logreader.js +++ b/tools/logreader.js @@ -134,9 +134,8 @@ LogReader.prototype.skipDispatch = function(dispatch) { LogReader.prototype.dispatchLogRow_ = function(fields) { // Obtain the dispatch. var command = fields[0]; - if (!(command in this.dispatchTable_)) { - throw new Error('unknown command: ' + command); - } + if (!(command in this.dispatchTable_)) return; + var dispatch = this.dispatchTable_[command]; if (dispatch === null || this.skipDispatch(dispatch)) {