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

Issue 2125163004: Correctly format builtin constructors in stack traces (Closed)

Created:
4 years, 5 months ago by jgruber
Modified:
4 years, 5 months ago
CC:
v8-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@20160704-string-number-builtins
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Correctly format builtin constructors in stack traces CallSite::IsConstructor() was unable to recognize builtin construct stubs (NumberConstructor_ConstructStub and StringConstructor_ConstructStub) as constructors, and thus these frames were not formatted correctly in stack traces. Fix this by explicitly marking their Code objects as construct stubs and passing along a special receiver value when we encounter such cases in CaptureSimpleStackTrace. R=mstarzinger@chromium.org, yangguo@chromium.org BUG= Committed: https://crrev.com/be5808bff899b503f1ff026cec9e5c28d13fed7d Cr-Commit-Position: refs/heads/master@{#37631}

Patch Set 1 #

Total comments: 5

Patch Set 2 : Address comments & rebase on master #

Patch Set 3 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+64 lines, -28 lines) Patch
M src/bootstrapper.cc View 1 15 chunks +15 lines, -15 lines 0 comments Download
M src/compiler.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M src/factory.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M src/isolate.cc View 1 2 1 chunk +8 lines, -0 lines 0 comments Download
M src/objects.h View 1 4 chunks +15 lines, -1 line 0 comments Download
M src/objects.cc View 1 3 chunks +6 lines, -2 lines 0 comments Download
M src/objects-inl.h View 1 chunk +12 lines, -0 lines 0 comments Download
M src/runtime/runtime-classes.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M src/runtime/runtime-function.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M test/mjsunit/regress/regress-5173.js View 1 chunk +4 lines, -6 lines 0 comments Download

Messages

Total messages: 33 (16 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2125163004/1
4 years, 5 months ago (2016-07-07 15:09:18 UTC) #2
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 5 months ago (2016-07-07 15:35:19 UTC) #4
Yang
https://codereview.chromium.org/2125163004/diff/1/src/bootstrapper.cc File src/bootstrapper.cc (right): https://codereview.chromium.org/2125163004/diff/1/src/bootstrapper.cc#newcode1378 src/bootstrapper.cc:1378: string_fun->shared()->set_construct_stub(*code); Would it make sense to introduce a SharedFunctionInfo::SetConstructStub ...
4 years, 5 months ago (2016-07-08 07:08:04 UTC) #5
Yang
On 2016/07/08 07:08:04, Yang wrote: > https://codereview.chromium.org/2125163004/diff/1/src/bootstrapper.cc > File src/bootstrapper.cc (right): > > https://codereview.chromium.org/2125163004/diff/1/src/bootstrapper.cc#newcode1378 > ...
4 years, 5 months ago (2016-07-08 07:42:06 UTC) #6
Michael Starzinger
LGTM modulo Yang's comments.
4 years, 5 months ago (2016-07-08 08:28:27 UTC) #7
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2125163004/20001
4 years, 5 months ago (2016-07-08 09:10:55 UTC) #9
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: v8_linux_gcc_compile_rel on master.tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux_gcc_compile_rel/builds/19063)
4 years, 5 months ago (2016-07-08 09:29:35 UTC) #11
jgruber
https://codereview.chromium.org/2125163004/diff/1/src/bootstrapper.cc File src/bootstrapper.cc (right): https://codereview.chromium.org/2125163004/diff/1/src/bootstrapper.cc#newcode1378 src/bootstrapper.cc:1378: string_fun->shared()->set_construct_stub(*code); On 2016/07/08 07:08:04, Yang wrote: > Would it ...
4 years, 5 months ago (2016-07-08 10:02:41 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2125163004/20001
4 years, 5 months ago (2016-07-08 10:11:13 UTC) #15
jgruber
https://codereview.chromium.org/2125163004/diff/1/src/bootstrapper.cc File src/bootstrapper.cc (right): https://codereview.chromium.org/2125163004/diff/1/src/bootstrapper.cc#newcode1378 src/bootstrapper.cc:1378: string_fun->shared()->set_construct_stub(*code); On 2016/07/08 10:02:41, jgruber wrote: > On 2016/07/08 ...
4 years, 5 months ago (2016-07-08 10:11:59 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: v8_linux_gcc_compile_rel on master.tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux_gcc_compile_rel/builds/19081)
4 years, 5 months ago (2016-07-08 10:16:46 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2125163004/20001
4 years, 5 months ago (2016-07-11 07:52:12 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: v8_linux64_asan_rel_ng on master.tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux64_asan_rel_ng/builds/4728) v8_linux64_avx2_rel_ng on master.tryserver.v8 (JOB_FAILED, ...
4 years, 5 months ago (2016-07-11 07:53:26 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2125163004/40001
4 years, 5 months ago (2016-07-11 10:01:03 UTC) #29
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 5 months ago (2016-07-11 10:03:09 UTC) #30
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-11 10:03:13 UTC) #31
commit-bot: I haz the power
4 years, 5 months ago (2016-07-11 10:05:14 UTC) #33
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/be5808bff899b503f1ff026cec9e5c28d13fed7d
Cr-Commit-Position: refs/heads/master@{#37631}

Powered by Google App Engine
This is Rietveld 408576698