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

Issue 8345039: Make builtin functions be skipped in stack traces. (Closed)

Created:
9 years, 2 months ago by Lasse Reichstein
Modified:
9 years, 2 months ago
Reviewers:
Erik Corry, Rico, rossberg
CC:
v8-dev
Visibility:
Public.

Description

Make builtin functions be skipped in stack traces. Does include exposed builtin functions ("native functions"). Committed: http://code.google.com/p/v8/source/detail?r=9723

Patch Set 1 #

Patch Set 2 : Added tests. Made more (all?) exposed builtins flagged as native. #

Patch Set 3 : Added flag. Simplified exceptions. #

Total comments: 11

Patch Set 4 : Addressed review comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+164 lines, -18 lines) Patch
M src/bootstrapper.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M src/flag-definitions.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M src/messages.js View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/runtime.cc View 1 2 3 2 chunks +15 lines, -18 lines 0 comments Download
M test/mjsunit/stack-traces.js View 1 2 chunks +58 lines, -0 lines 0 comments Download
A test/mjsunit/stack-traces-2.js View 1 2 3 1 chunk +87 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
Lasse Reichstein
9 years, 2 months ago (2011-10-19 07:06:01 UTC) #1
Erik Corry
Wot no tests?
9 years, 2 months ago (2011-10-19 07:22:27 UTC) #2
Lasse Reichstein
Tests incoming, please hold.
9 years, 2 months ago (2011-10-19 08:15:32 UTC) #3
Lasse Reichstein
Now with tests. Feel free to review.
9 years, 2 months ago (2011-10-19 08:56:26 UTC) #4
rossberg
Can we perhaps have a flag to control this? I would be really lost debugging ...
9 years, 2 months ago (2011-10-19 13:58:20 UTC) #5
Lasse Reichstein
Good point. Added flag, and made it turn off all attempts at avoiding builtins in ...
9 years, 2 months ago (2011-10-20 07:58:13 UTC) #6
Lasse Reichstein
9 years, 2 months ago (2011-10-20 12:01:28 UTC) #7
rossberg
lgtm
9 years, 2 months ago (2011-10-20 12:15:35 UTC) #8
Rico
LGTM http://codereview.chromium.org/8345039/diff/5001/src/runtime.cc File src/runtime.cc (right): http://codereview.chromium.org/8345039/diff/5001/src/runtime.cc#newcode12973 src/runtime.cc:12973: if (!raw_fun->IsJSFunction()) well you added them above, so ...
9 years, 2 months ago (2011-10-20 12:17:33 UTC) #9
Lasse Reichstein
9 years, 2 months ago (2011-10-20 12:26:09 UTC) #10
http://codereview.chromium.org/8345039/diff/5001/src/runtime.cc
File src/runtime.cc (right):

http://codereview.chromium.org/8345039/diff/5001/src/runtime.cc#newcode12973
src/runtime.cc:12973: if (!raw_fun->IsJSFunction())
Absolutely.

http://codereview.chromium.org/8345039/diff/5001/src/runtime.cc#newcode12984
src/runtime.cc:12984: // The --builtins-in-stack-traces command line flag allows
including
I'm renaming it to -trace*s*. I've misspelled it consistently every time I've
written it, so with the 's' seems to be the most obvious name.

http://codereview.chromium.org/8345039/diff/5001/test/mjsunit/stack-traces-2.js
File test/mjsunit/stack-traces-2.js (right):

http://codereview.chromium.org/8345039/diff/5001/test/mjsunit/stack-traces-2....
test/mjsunit/stack-traces-2.js:80: // Omitted because QuickSort has builtins
object as receiver, and is non-native
On 2011/10/20 12:17:33, Rico wrote:
> Comment is slightly misleading, it is not omitted in this case due to the flag

Done.

http://codereview.chromium.org/8345039/diff/5001/test/mjsunit/stack-traces-2....
test/mjsunit/stack-traces-2.js:83: (b < a) - (a < b); });
Off by a "Not". Fixed.

http://codereview.chromium.org/8345039/diff/5001/test/mjsunit/stack-traces-2....
test/mjsunit/stack-traces-2.js:86: // Omitted because ADD from runtime.js is
non-native builtin.
On 2011/10/20 12:17:33, Rico wrote:
> Also slightly misleading 

Done.

Powered by Google App Engine
This is Rietveld 408576698