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

Issue 6820003: Allow recursive messages reporting as it is already used. (Closed)

Created:
9 years, 8 months ago by antonm
Modified:
9 years, 4 months ago
CC:
v8-dev
Visibility:
Public.

Description

Allow recursive messages reporting as it is already used. Instead discard unhandled exceptions thown while running message listeners. Committed: http://code.google.com/p/v8/source/detail?r=7574

Patch Set 1 #

Total comments: 2

Patch Set 2 : Addressing Yuri's concerns #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -24 lines) Patch
M src/isolate.h View 2 chunks +0 lines, -9 lines 0 comments Download
M src/messages.cc View 2 chunks +5 lines, -12 lines 2 comments Download
M src/top.cc View 1 chunk +0 lines, -1 line 0 comments Download
M test/cctest/test-api.cc View 1 2 chunks +6 lines, -2 lines 4 comments Download

Messages

Total messages: 6 (0 generated)
antonm
Guys, may you have a look? Regression was detected by layout tests (but it wasn't ...
9 years, 8 months ago (2011-04-08 15:57:10 UTC) #1
yurys
http://codereview.chromium.org/6820003/diff/1/test/cctest/test-api.cc File test/cctest/test-api.cc (left): http://codereview.chromium.org/6820003/diff/1/test/cctest/test-api.cc#oldcode8680 test/cctest/test-api.cc:8680: CompileRun("throw 'ThrowInJS';"); Can we rewrite this listener to make ...
9 years, 8 months ago (2011-04-11 07:52:35 UTC) #2
Mads Ager (chromium)
OK, LGTM This takes it roughly back to what it was for this part, right?
9 years, 8 months ago (2011-04-11 11:39:29 UTC) #3
antonm
thanks a lot for review, guys. Landed. http://codereview.chromium.org/6820003/diff/1/test/cctest/test-api.cc File test/cctest/test-api.cc (left): http://codereview.chromium.org/6820003/diff/1/test/cctest/test-api.cc#oldcode8680 test/cctest/test-api.cc:8680: CompileRun("throw 'ThrowInJS';"); ...
9 years, 8 months ago (2011-04-11 16:19:17 UTC) #4
Vitaly Repeshko
LGTM http://codereview.chromium.org/6820003/diff/6/src/messages.cc File src/messages.cc (right): http://codereview.chromium.org/6820003/diff/6/src/messages.cc#newcode134 src/messages.cc:134: v8::TryCatch tryCatch; nit: noCamelCase http://codereview.chromium.org/6820003/diff/6/test/cctest/test-api.cc File test/cctest/test-api.cc (right): ...
9 years, 8 months ago (2011-04-11 19:37:39 UTC) #5
antonm
9 years, 8 months ago (2011-04-15 12:15:34 UTC) #6
http://codereview.chromium.org/6875003 should address 2 of 3 your suggestions.

http://codereview.chromium.org/6820003/diff/6/src/messages.cc
File src/messages.cc (right):

http://codereview.chromium.org/6820003/diff/6/src/messages.cc#newcode134
src/messages.cc:134: v8::TryCatch tryCatch;
On 2011/04/11 19:37:39, Vitaly Repeshko wrote:
> nit: noCamelCase

Done.

http://codereview.chromium.org/6820003/diff/6/test/cctest/test-api.cc
File test/cctest/test-api.cc (right):

http://codereview.chromium.org/6820003/diff/6/test/cctest/test-api.cc#newcode...
test/cctest/test-api.cc:8683: if (--call_depth) CompileRun("throw
'ThrowInJS';");
On 2011/04/11 19:37:39, Vitaly Repeshko wrote:
> In case we re-entered this message callback, should we assert that it got its
> own exception?

I don't think it's important for the given test.

http://codereview.chromium.org/6820003/diff/6/test/cctest/test-api.cc#newcode...
test/cctest/test-api.cc:8714: call_depth = 5;
On 2011/04/11 19:37:39, Vitaly Repeshko wrote:
> 5 is arbitrary here, right? In any case, it'd be nice to have a comment.

Done.

Powered by Google App Engine
This is Rietveld 408576698