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

Issue 1413503007: Provide a counter for thrown JavaScript errors per context (Closed)

Created:
5 years, 2 months ago by Michael Hablich
Modified:
5 years, 1 month ago
CC:
v8-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Provide a counter for thrown JavaScript errors per context This will be used as a data source for an UMA histogram. LOG=N BUG=chromium:546603 R=jochen@chromium.org,yangguo@chromium.org Committed: https://crrev.com/762777594889fd4f6520e65d23d0e558ff85defd Cr-Commit-Position: refs/heads/master@{#31851}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Transformed from counter to histogram #

Patch Set 3 : not intended for review #

Patch Set 4 : V8 thrown exceptions now reported per Isolate via Histogram #

Patch Set 5 : Per context counting implemented #

Total comments: 12

Patch Set 6 : Adaptations to feedback and now all V8 exceptions are counted #

Total comments: 7

Patch Set 7 : Moved counting from creation to throwing again #

Total comments: 6

Patch Set 8 : Adapted to Yang's feedback #

Total comments: 6

Patch Set 9 : Moved initialization #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -1 line) Patch
M src/bootstrapper.cc View 1 2 3 4 5 6 7 8 2 chunks +6 lines, -0 lines 0 comments Download
M src/contexts.h View 1 2 3 4 5 6 7 2 chunks +4 lines, -0 lines 0 comments Download
M src/contexts.cc View 1 2 3 4 5 6 7 8 1 chunk +11 lines, -0 lines 0 comments Download
M src/counters.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
M src/factory.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M src/runtime/runtime-internal.cc View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 42 (14 generated)
Michael Hablich
PTAL
5 years, 2 months ago (2015-10-22 16:14:09 UTC) #1
Yang
Not sure whether counters are still used in Chrome. Jochen is probably more up-to-date on ...
5 years, 2 months ago (2015-10-23 04:53:21 UTC) #2
jochen (gone - plz use gerrit)
counters aren't used. you'll have to count how often an exception was thrown, and then ...
5 years, 2 months ago (2015-10-23 12:14:39 UTC) #3
Michael Hablich
On 2015/10/23 12:14:39, jochen wrote: > counters aren't used. > > you'll have to count ...
5 years, 1 month ago (2015-10-26 15:49:07 UTC) #4
jochen (gone - plz use gerrit)
I still don't understand how that value would be useful? you'll get a histogram, with ...
5 years, 1 month ago (2015-10-26 15:56:47 UTC) #5
Michael Hablich
On 2015/10/26 15:56:47, jochen wrote: > I still don't understand how that value would be ...
5 years, 1 month ago (2015-10-26 16:13:17 UTC) #6
Michael Hablich
PTAL PS #4: As discussed offline with Jochen counting the exceptions per Isolate makes the ...
5 years, 1 month ago (2015-10-28 12:41:39 UTC) #8
jochen (gone - plz use gerrit)
On 2015/10/28 at 12:41:39, hablich wrote: > PTAL PS #4: > > As discussed offline ...
5 years, 1 month ago (2015-10-28 12:44:55 UTC) #9
Michael Hablich
On 2015/10/28 12:44:55, jochen wrote: > On 2015/10/28 at 12:41:39, hablich wrote: > > PTAL ...
5 years, 1 month ago (2015-10-29 13:37:03 UTC) #12
Michael Starzinger
https://codereview.chromium.org/1413503007/diff/140001/src/isolate.cc File src/isolate.cc (right): https://codereview.chromium.org/1413503007/diff/140001/src/isolate.cc#newcode1023 src/isolate.cc:1023: PredictExceptionCatcher() != CAUGHT_BY_JAVASCRIPT); Notes about PredictExceptionCatcher: 1) Calling this ...
5 years, 1 month ago (2015-10-29 13:42:55 UTC) #13
jochen (gone - plz use gerrit)
https://codereview.chromium.org/1413503007/diff/140001/src/contexts.cc File src/contexts.cc (right): https://codereview.chromium.org/1413503007/diff/140001/src/contexts.cc#newcode593 src/contexts.cc:593: if (!IsNativeContext()) return; just DCHECK(IsNativeContext()) https://codereview.chromium.org/1413503007/diff/140001/src/contexts.cc#newcode594 src/contexts.cc:594: if (exceptions_thrown()->IsUndefined()) ...
5 years, 1 month ago (2015-10-29 14:37:07 UTC) #14
Michael Hablich
On 2015/10/29 14:37:07, jochen wrote: > https://codereview.chromium.org/1413503007/diff/140001/src/contexts.cc > File src/contexts.cc (right): > > https://codereview.chromium.org/1413503007/diff/140001/src/contexts.cc#newcode593 > ...
5 years, 1 month ago (2015-10-29 15:23:24 UTC) #16
Michael Hablich
https://codereview.chromium.org/1413503007/diff/140001/src/contexts.cc File src/contexts.cc (right): https://codereview.chromium.org/1413503007/diff/140001/src/contexts.cc#newcode593 src/contexts.cc:593: if (!IsNativeContext()) return; On 2015/10/29 14:37:07, jochen wrote: > ...
5 years, 1 month ago (2015-10-29 15:23:34 UTC) #17
Michael Hablich
On 2015/10/29 15:23:34, Hablich wrote: > https://codereview.chromium.org/1413503007/diff/140001/src/contexts.cc > File src/contexts.cc (right): > > https://codereview.chromium.org/1413503007/diff/140001/src/contexts.cc#newcode593 > ...
5 years, 1 month ago (2015-10-30 08:31:50 UTC) #18
jochen (gone - plz use gerrit)
https://codereview.chromium.org/1413503007/diff/180001/src/factory.cc File src/factory.cc (right): https://codereview.chromium.org/1413503007/diff/180001/src/factory.cc#newcode1163 src/factory.cc:1163: isolate()->native_context()->IncrementExceptionsThrown(); \ this looks wrong. It's not uncommon to ...
5 years, 1 month ago (2015-10-30 12:13:39 UTC) #19
jochen (gone - plz use gerrit)
assuming mstarzinger@ approves this lgtm
5 years, 1 month ago (2015-10-30 12:16:40 UTC) #20
Michael Starzinger
No objects to the CL in it's current form. But I have no idea whether ...
5 years, 1 month ago (2015-10-30 12:27:10 UTC) #22
Yang
https://codereview.chromium.org/1413503007/diff/180001/src/factory.cc File src/factory.cc (right): https://codereview.chromium.org/1413503007/diff/180001/src/factory.cc#newcode1163 src/factory.cc:1163: isolate()->native_context()->IncrementExceptionsThrown(); \ On 2015/10/30 12:13:38, jochen wrote: > this ...
5 years, 1 month ago (2015-10-30 13:01:02 UTC) #25
Michael Hablich
PTAL latest patchset. I also tried it out with Jochens patch regarding DetachGlobal and it ...
5 years, 1 month ago (2015-10-30 15:55:03 UTC) #27
Yang
https://codereview.chromium.org/1413503007/diff/220001/src/contexts.cc File src/contexts.cc (right): https://codereview.chromium.org/1413503007/diff/220001/src/contexts.cc#newcode596 src/contexts.cc:596: int previous_value = Smi::cast(errors_thrown())->value(); this cast would be unnecessary ...
5 years, 1 month ago (2015-11-02 05:48:57 UTC) #28
Michael Hablich
PTAL PS #8 https://codereview.chromium.org/1413503007/diff/220001/src/contexts.cc File src/contexts.cc (right): https://codereview.chromium.org/1413503007/diff/220001/src/contexts.cc#newcode596 src/contexts.cc:596: int previous_value = Smi::cast(errors_thrown())->value(); On 2015/11/02 ...
5 years, 1 month ago (2015-11-04 10:58:08 UTC) #29
Yang
LGTM if comments are addressed. https://codereview.chromium.org/1413503007/diff/230001/src/bootstrapper.cc File src/bootstrapper.cc (right): https://codereview.chromium.org/1413503007/diff/230001/src/bootstrapper.cc#newcode3160 src/bootstrapper.cc:3160: isolate->native_context()->set_errors_thrown(Smi::FromInt(0)); Move this below ...
5 years, 1 month ago (2015-11-05 07:50:02 UTC) #30
Michael Hablich
https://codereview.chromium.org/1413503007/diff/230001/src/bootstrapper.cc File src/bootstrapper.cc (right): https://codereview.chromium.org/1413503007/diff/230001/src/bootstrapper.cc#newcode3160 src/bootstrapper.cc:3160: isolate->native_context()->set_errors_thrown(Smi::FromInt(0)); On 2015/11/05 07:50:01, Yang wrote: > Move this ...
5 years, 1 month ago (2015-11-05 13:23:11 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1413503007/270001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1413503007/270001
5 years, 1 month ago (2015-11-05 13:23:27 UTC) #36
commit-bot: I haz the power
Try jobs failed on following builders: v8_mac_rel on tryserver.v8 (JOB_TIMED_OUT, http://build.chromium.org/p/tryserver.v8/builders/v8_mac_rel/builds/11568)
5 years, 1 month ago (2015-11-05 19:23:48 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1413503007/270001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1413503007/270001
5 years, 1 month ago (2015-11-06 07:56:04 UTC) #40
commit-bot: I haz the power
Committed patchset #9 (id:270001)
5 years, 1 month ago (2015-11-06 08:07:59 UTC) #41
commit-bot: I haz the power
5 years, 1 month ago (2015-11-06 08:08:27 UTC) #42
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/762777594889fd4f6520e65d23d0e558ff85defd
Cr-Commit-Position: refs/heads/master@{#31851}

Powered by Google App Engine
This is Rietveld 408576698