Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(130)

Issue 67191: Reimplement (address -> code) mapping from tickprocessor.py in JS. (Closed)

Created:
11 years, 8 months ago by Mikhail Naganov
Modified:
9 years, 7 months ago
CC:
v8-dev
Visibility:
Public.

Description

Reimplement (address -> code) mapping from tickprocessor.py in JS. Found a pair of bugs concerned with border cases in the original implementation. Committed: http://code.google.com/p/v8/source/detail?r=1726

Patch Set 1 #

Total comments: 4

Patch Set 2 : Added a comment to deleted_ member #

Unified diffs Side-by-side diffs Delta from patch set Stats (+335 lines, -1 line) Patch
M test/mjsunit/mjsunit.js View 1 chunk +14 lines, -0 lines 0 comments Download
A test/mjsunit/tools/codemap.js View 1 chunk +116 lines, -0 lines 0 comments Download
A tools/codemap.js View 1 1 chunk +205 lines, -0 lines 0 comments Download
M tools/splaytree.js View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 3 (0 generated)
Mikhail Naganov
11 years, 8 months ago (2009-04-15 21:50:42 UTC) #1
Søren Thygesen Gjesse
LGTM! http://codereview.chromium.org/67191/diff/1/4 File tools/codemap.js (right): http://codereview.chromium.org/67191/diff/1/4#newcode46 Line 46: * Deleted code entries. Please add "Used ...
11 years, 8 months ago (2009-04-16 06:08:24 UTC) #2
Mikhail Naganov
11 years, 8 months ago (2009-04-16 16:05:38 UTC) #3
http://codereview.chromium.org/67191/diff/1/4
File tools/codemap.js (right):

http://codereview.chromium.org/67191/diff/1/4#newcode46
Line 46: * Deleted code entries.
On 2009/04/16 06:08:24, Søren Gjesse wrote:
> Please add "Used for JIT compiled code which has been garbage collected" to
the
> comment.

Done.

http://codereview.chromium.org/67191/diff/1/4#newcode199
Line 199: this.name = opt_name || '';
On 2009/04/16 06:08:24, Søren Gjesse wrote:
> How about adding the empty name to the prototype:
> 
> devtools.profiler.CodeMap.CodeEntry.prototype.name = '';
> 
> And than changing this assignament to:
> 
> if (opt_name) {
>   this.name = opt_name
> }
> 
> 

I'll better not. First, this is the commonly used idiom for accessing optional
parameters in JS. Second, it's 4 vs. 1 lines of code.

Powered by Google App Engine
This is Rietveld 408576698