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

Issue 10384196: messages.js: Get better function names in stack traces. (Closed)

Created:
8 years, 7 months ago by marja
Modified:
8 years, 7 months ago
CC:
v8-dev
Base URL:
git://github.com/v8/v8.git@master
Visibility:
Public.

Description

messages.js: Get better function names in stack traces. CallSite.getFunctionName() is able to retrieve names for functions better than getFunction().name. Use it in CallSite.toString(). Code by marja@chromium.org. BUG=NONE TEST=stack-traces.js: Added testClassNames. Committed: https://code.google.com/p/v8/source/detail?r=11652

Patch Set 1 #

Patch Set 2 : Fixes + tests #

Total comments: 7

Patch Set 3 : Code review. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -18 lines) Patch
M src/messages.js View 1 2 5 chunks +29 lines, -18 lines 0 comments Download
M test/mjsunit/stack-traces.js View 1 2 2 chunks +14 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
marja
ptal
8 years, 7 months ago (2012-05-16 09:04:02 UTC) #1
Yang
On 2012/05/16 09:04:02, marja wrote: > ptal LGTM. But this may break webkit layout tests ...
8 years, 7 months ago (2012-05-16 09:22:01 UTC) #2
marja
LayoutTests/platform/chromium/test_expectations.txt says: // Tests Error.stack behavior. We aren't consistent with JSC and do not intend ...
8 years, 7 months ago (2012-05-16 12:22:10 UTC) #3
Yang
On 2012/05/16 12:22:10, marja wrote: > LayoutTests/platform/chromium/test_expectations.txt says: > > // Tests Error.stack behavior. We ...
8 years, 7 months ago (2012-05-16 13:26:14 UTC) #4
Yang
On 2012/05/16 13:26:14, Yang wrote: > On 2012/05/16 12:22:10, marja wrote: > > LayoutTests/platform/chromium/test_expectations.txt says: ...
8 years, 7 months ago (2012-05-16 15:15:32 UTC) #5
marja
Hi (again), I fixed the brokenness detected by the existing tests and added a new ...
8 years, 7 months ago (2012-05-23 12:23:33 UTC) #6
Yang
On 2012/05/23 12:23:33, marja wrote: > Hi (again), > > I fixed the brokenness detected ...
8 years, 7 months ago (2012-05-23 12:37:09 UTC) #7
Christian Plesner Hansen
(Replying using the account I used to use for v8 stuff) http://codereview.chromium.org/10384196/diff/18003/src/messages.js File src/messages.js (right): ...
8 years, 7 months ago (2012-05-24 02:15:18 UTC) #8
marja
http://codereview.chromium.org/10384196/diff/18003/src/messages.js File src/messages.js (right): http://codereview.chromium.org/10384196/diff/18003/src/messages.js#newcode834 src/messages.js:834: return %FunctionGetInferredName(this.fun); On 2012/05/24 02:15:18, Christian Plesner Hansen wrote: ...
8 years, 7 months ago (2012-05-24 08:38:16 UTC) #9
Christian Plesner Hansen
lgtm
8 years, 7 months ago (2012-05-24 10:46:49 UTC) #10
marja
Thanks for the review! yangguo: can you try again to commit this? (I ran ia32.release.check ...
8 years, 7 months ago (2012-05-24 10:56:56 UTC) #11
Yang
8 years, 7 months ago (2012-05-24 11:06:14 UTC) #12
On 2012/05/24 10:56:56, marja wrote:
> Thanks for the review!
> 
> yangguo: can you try again to commit this?
> 
> (I ran ia32.release.check which passed. Should I have ran something more?)

Landed as r11652.

Powered by Google App Engine
This is Rietveld 408576698