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

Issue 9382002: Provide user-friendly access to natively bound function parameters (Closed)

Created:
8 years, 10 months ago by yurys
Modified:
8 years, 10 months ago
CC:
v8-dev, pfeldman, loislo
Visibility:
Public.

Description

Provide user-friendly access to natively bound function parameters For a closure created using native Function.prototype.bind() the most important information for the heap profiler user is bound function, receiver and arguments. This change adds shortcuts for those fields. Committed: https://code.google.com/p/v8/source/detail?r=10675

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 6

Patch Set 3 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+90 lines, -23 lines) Patch
M src/profile-generator.h View 1 chunk +4 lines, -0 lines 0 comments Download
M src/profile-generator.cc View 1 2 5 chunks +49 lines, -23 lines 0 comments Download
M test/cctest/test-heap-profiler.cc View 1 2 1 chunk +37 lines, -0 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
yurys
http://codereview.chromium.org/9382002/diff/3001/src/profile-generator.cc File src/profile-generator.cc (left): http://codereview.chromium.org/9382002/diff/3001/src/profile-generator.cc#oldcode2129 src/profile-generator.cc:2129: } else if (obj->IsDescriptorArray()) { DescriptorArray is indistinguishable from ...
8 years, 10 months ago (2012-02-10 11:30:13 UTC) #1
mnaganov (inactive)
LGTM with comments http://codereview.chromium.org/9382002/diff/3001/src/profile-generator.cc File src/profile-generator.cc (left): http://codereview.chromium.org/9382002/diff/3001/src/profile-generator.cc#oldcode2129 src/profile-generator.cc:2129: } else if (obj->IsDescriptorArray()) { On ...
8 years, 10 months ago (2012-02-10 12:28:20 UTC) #2
yurys
8 years, 10 months ago (2012-02-10 13:48:58 UTC) #3
http://codereview.chromium.org/9382002/diff/3001/src/profile-generator.cc
File src/profile-generator.cc (right):

http://codereview.chromium.org/9382002/diff/3001/src/profile-generator.cc#new...
src/profile-generator.cc:2172: SetNativeBindReference(js_obj, entry, "bound
this",
On 2012/02/10 12:28:21, Mikhail Naganov (Chromium) wrote:
> Perhaps, use underscores for names? Otherwise it might look confusing when
> showing retaining paths. Have you checked that?

Makes sense. Done.

http://codereview.chromium.org/9382002/diff/3001/src/profile-generator.cc#new...
src/profile-generator.cc:2178: SetNativeBindReference(js_obj, entry, "bound
argument",
On 2012/02/10 12:28:21, Mikhail Naganov (Chromium) wrote:
> Does it make sense to label them "bound_argument_%d"?

Done.

Powered by Google App Engine
This is Rietveld 408576698