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

Issue 26709011: Expose v8::Function::GetDisplayName to public API. (Closed)

Created:
7 years, 2 months ago by aandrey
Modified:
7 years, 1 month ago
CC:
v8-dev, Paweł Hajdan Jr.
Base URL:
git://github.com/v8/v8.git@master
Visibility:
Public.

Description

Patch Set 1 #

Total comments: 5

Patch Set 2 : addressed #

Patch Set 3 : fixed test #

Patch Set 4 : fixed test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+93 lines, -0 lines) Patch
M include/v8.h View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M src/api.cc View 1 2 3 1 chunk +23 lines, -0 lines 0 comments Download
M test/cctest/test-api.cc View 1 2 1 chunk +64 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
aandrey
7 years, 2 months ago (2013-10-16 14:48:05 UTC) #1
yurys
https://codereview.chromium.org/26709011/diff/1/src/api.cc File src/api.cc (right): https://codereview.chromium.org/26709011/diff/1/src/api.cc#newcode4115 src/api.cc:4115: Handle<Value> Function::GetDisplayName() const { If you anyways return either ...
7 years, 2 months ago (2013-10-16 14:57:52 UTC) #2
Michael Starzinger
What is the difference between this new entry point and just calling v8::Object::GetRealNamedProperty with the ...
7 years, 2 months ago (2013-10-16 15:15:01 UTC) #3
aandrey
On 2013/10/16 15:15:01, Michael Starzinger wrote: > What is the difference between this new entry ...
7 years, 2 months ago (2013-10-16 15:17:00 UTC) #4
Michael Starzinger
Hmpf, yep, you are right. I was misled by the "real" prefix in the function ...
7 years, 2 months ago (2013-10-16 15:19:03 UTC) #5
aandrey
https://codereview.chromium.org/26709011/diff/1/src/api.cc File src/api.cc (right): https://codereview.chromium.org/26709011/diff/1/src/api.cc#newcode4126 src/api.cc:4126: func->LookupRealNamedProperty(*property_name, &lookup); On 2013/10/16 14:57:52, Yury Semikhatsky wrote: > ...
7 years, 2 months ago (2013-10-16 15:19:44 UTC) #6
aandrey
https://codereview.chromium.org/26709011/diff/1/src/api.cc File src/api.cc (right): https://codereview.chromium.org/26709011/diff/1/src/api.cc#newcode4115 src/api.cc:4115: Handle<Value> Function::GetDisplayName() const { On 2013/10/16 14:57:52, Yury Semikhatsky ...
7 years, 2 months ago (2013-10-16 15:25:19 UTC) #7
yurys
https://codereview.chromium.org/26709011/diff/1/src/api.cc File src/api.cc (right): https://codereview.chromium.org/26709011/diff/1/src/api.cc#newcode4115 src/api.cc:4115: Handle<Value> Function::GetDisplayName() const { On 2013/10/16 15:25:19, aandrey wrote: ...
7 years, 2 months ago (2013-10-17 07:40:18 UTC) #8
aandrey
On 2013/10/17 07:40:18, Yury Semikhatsky wrote: > https://codereview.chromium.org/26709011/diff/1/src/api.cc > File src/api.cc (right): > > https://codereview.chromium.org/26709011/diff/1/src/api.cc#newcode4115 ...
7 years, 2 months ago (2013-10-17 08:03:34 UTC) #9
yurys
On 2013/10/17 08:03:34, aandrey wrote: > On 2013/10/17 07:40:18, Yury Semikhatsky wrote: > > https://codereview.chromium.org/26709011/diff/1/src/api.cc ...
7 years, 2 months ago (2013-10-17 09:59:05 UTC) #10
aandrey
On 2013/10/17 09:59:05, Yury Semikhatsky wrote: > On 2013/10/17 08:03:34, aandrey wrote: > > On ...
7 years, 2 months ago (2013-10-17 10:55:07 UTC) #11
yurys
lgtm
7 years, 2 months ago (2013-10-17 11:51:33 UTC) #12
aandrey
need lg from v8 owners
7 years, 2 months ago (2013-10-17 12:13:30 UTC) #13
aandrey
ping??
7 years, 2 months ago (2013-10-21 15:27:11 UTC) #14
Michael Starzinger
LGTM.
7 years, 2 months ago (2013-10-22 14:37:50 UTC) #15
yurys
Committed patchset #2 manually as r17324 (presubmit successful).
7 years, 2 months ago (2013-10-22 14:57:27 UTC) #16
yurys
Committed patchset #4 manually as r17340 (presubmit successful).
7 years, 2 months ago (2013-10-23 12:38:14 UTC) #17
arv (Not doing code reviews)
FYI, TC39 opposed adding displayName. Instead ES6 makes Function name writable. That should be in ...
7 years, 1 month ago (2013-11-04 23:37:20 UTC) #18
aandrey
On 2013/11/04 23:37:20, arv wrote: > FYI, TC39 opposed adding displayName. Instead ES6 makes Function ...
7 years, 1 month ago (2013-11-05 09:59:20 UTC) #19
yurys
7 years, 1 month ago (2013-11-05 10:22:38 UTC) #20
Message was sent while issue was closed.
On 2013/11/05 09:59:20, aandrey wrote:
> On 2013/11/04 23:37:20, arv wrote:
> > FYI, TC39 opposed adding displayName. Instead ES6 makes Function name
> writable.
> > That should be in the latest spec draft.
> 
> Thanks for the pointer!
> 
> I guess, we should implement displayName anyway for now, in order to match FF
> debugger's behavior.
> We can remove it later, after ES6 is implemented and most libraries migrate
from
> displayName to setting function names directly via this API.
> 
> wdyt?

I agree with Andrey, this is a de-facto standard supported by FF and one of the
most requested features of DevTools debugger (59 stars at
https://code.google.com/p/chromium/issues/detail?id=17356). If we need to we can
drop this when writable function name is supported.

Powered by Google App Engine
This is Rietveld 408576698