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

Issue 106763002: Get information about original function from bound function (Closed)

Created:
7 years ago by Alexandra Mikhaylova
Modified:
7 years ago
Reviewers:
alph, yurys, Yang, loislo
CC:
v8-dev_chromium.org
Visibility:
Public.

Description

Add Function::GetBoundFunction to the API. This adds functionality for getting original functions from bound functions. It's of much use when information about function calls is shown on the Events timeline in DevTools: instead of referencing to v8natives.js where bound functions are created, we'll be able to show real function data (name, resource, script line and column numbers) retrieved from original functions. BUG=None LOG=Y R=yangguo@chromium.org, yurys@chromium.org Committed: https://code.google.com/p/v8/source/detail?r=18401

Patch Set 1 #

Total comments: 2

Patch Set 2 : Correct API + add a test #

Total comments: 4

Patch Set 3 : GetBoundFunction returns v8::Undefined if this function is not bound + REBASE #

Total comments: 10

Patch Set 4 : Code review response #

Total comments: 6

Patch Set 5 : Code review response #

Unified diffs Side-by-side diffs Delta from patch set Stats (+47 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 4 1 chunk +14 lines, -0 lines 0 comments Download
M test/cctest/test-api.cc View 1 2 3 4 1 chunk +27 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
Alexandra Mikhaylova
The very 1st version of this feature
7 years ago (2013-12-05 16:18:16 UTC) #1
yurys
Also please add a test for this change. https://codereview.chromium.org/106763002/diff/1/src/api.cc File src/api.cc (right): https://codereview.chromium.org/106763002/diff/1/src/api.cc#newcode4222 src/api.cc:4222: if ...
7 years ago (2013-12-09 12:17:16 UTC) #2
Alexandra Mikhaylova
https://codereview.chromium.org/106763002/diff/1/src/api.cc File src/api.cc (right): https://codereview.chromium.org/106763002/diff/1/src/api.cc#newcode4222 src/api.cc:4222: if (func->shared()->bound()) { On 2013/12/09 12:17:16, yurys wrote: > ...
7 years ago (2013-12-12 12:41:14 UTC) #3
yurys
https://codereview.chromium.org/106763002/diff/20001/include/v8.h File include/v8.h (right): https://codereview.chromium.org/106763002/diff/20001/include/v8.h#newcode2669 include/v8.h:2669: * Returns the original function if this function is ...
7 years ago (2013-12-12 12:47:15 UTC) #4
yurys
https://codereview.chromium.org/106763002/diff/20001/test/cctest/test-api.cc File test/cctest/test-api.cc (right): https://codereview.chromium.org/106763002/diff/20001/test/cctest/test-api.cc#newcode17764 test/cctest/test-api.cc:17764: env->GetIsolate(), "test")); style: wrong indentation
7 years ago (2013-12-12 12:49:27 UTC) #5
Alexandra Mikhaylova
https://codereview.chromium.org/106763002/diff/20001/include/v8.h File include/v8.h (right): https://codereview.chromium.org/106763002/diff/20001/include/v8.h#newcode2669 include/v8.h:2669: * Returns the original function if this function is ...
7 years ago (2013-12-12 15:53:01 UTC) #6
yurys
Please provide meaningful change description and link to a bug if there is one. https://codereview.chromium.org/106763002/diff/30001/src/api.cc ...
7 years ago (2013-12-12 20:20:50 UTC) #7
Alexandra Mikhaylova
https://codereview.chromium.org/106763002/diff/30001/src/api.cc File src/api.cc (right): https://codereview.chromium.org/106763002/diff/30001/src/api.cc#newcode4317 src/api.cc:4317: i::Isolate::Current()); On 2013/12/12 20:20:50, yurys wrote: > func->GetIsolate()) Done. ...
7 years ago (2013-12-18 10:00:27 UTC) #8
yurys
https://codereview.chromium.org/106763002/diff/50001/src/api.cc File src/api.cc (right): https://codereview.chromium.org/106763002/diff/50001/src/api.cc#newcode4316 src/api.cc:4316: i::JSReceiver::cast(bound_args->get(i::JSFunction::kBoundFunctionIndex)), Why do you need to cast to i::JSReceiver ...
7 years ago (2013-12-18 10:10:14 UTC) #9
Alexandra Mikhaylova
https://codereview.chromium.org/106763002/diff/50001/src/api.cc File src/api.cc (right): https://codereview.chromium.org/106763002/diff/50001/src/api.cc#newcode4316 src/api.cc:4316: i::JSReceiver::cast(bound_args->get(i::JSFunction::kBoundFunctionIndex)), On 2013/12/18 10:10:14, yurys wrote: > Why do ...
7 years ago (2013-12-18 14:16:06 UTC) #10
yurys
LGTM, you'll need OWNER's approval.
7 years ago (2013-12-18 15:02:32 UTC) #11
Alexandra Mikhaylova
Hi Yang, Could you please review this issue as the OWNER.
7 years ago (2013-12-18 15:09:21 UTC) #12
Yang
On 2013/12/18 15:09:21, Alexandra Mikhaylova wrote: > Hi Yang, > > Could you please review ...
7 years ago (2013-12-19 10:32:35 UTC) #13
yurys
On 2013/12/19 10:32:35, Yang wrote: > On 2013/12/18 15:09:21, Alexandra Mikhaylova wrote: > > Hi ...
7 years ago (2013-12-19 11:54:57 UTC) #14
Yang
On 2013/12/19 11:54:57, yurys wrote: > On 2013/12/19 10:32:35, Yang wrote: > > On 2013/12/18 ...
7 years ago (2013-12-19 11:57:27 UTC) #15
yurys
7 years ago (2013-12-23 08:05:04 UTC) #16
Message was sent while issue was closed.
Committed patchset #5 manually as r18401 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698