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 8101: Posponed the setting of "external_caught_exception" to when leaving JavaScrip... (Closed)

Created:
12 years, 2 months ago by Søren Thygesen Gjesse
Modified:
9 years, 7 months ago
CC:
v8-dev
Visibility:
Public.

Description

Posponed the setting of "external_caught_exception" to when leaving JavaScript execution. This is achieved by storing a pointer to the C++ TryCatch when the exception is thrown and checking that this is the handler active when leaving JavaScript. Committed: http://code.google.com/p/v8/source/detail?r=570

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -6 lines) Patch
M src/execution.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M src/top.h View 2 chunks +7 lines, -0 lines 4 comments Download
M src/top.cc View 4 chunks +3 lines, -6 lines 1 comment Download
A test/mjsunit/api-call-after-overridden-exception.js View 1 chunk +41 lines, -0 lines 1 comment Download

Messages

Total messages: 3 (0 generated)
Søren Thygesen Gjesse
12 years, 2 months ago (2008-10-23 12:45:51 UTC) #1
Kasper Lund
LGTM. Please explain catcher_ though... http://codereview.chromium.org/8101/diff/1/3 File src/top.cc (right): http://codereview.chromium.org/8101/diff/1/3#newcode610 Line 610: // Set the ...
12 years, 2 months ago (2008-10-23 12:52:43 UTC) #2
Christian Plesner Hansen
12 years, 2 months ago (2008-10-23 13:09:38 UTC) #3
Lgtm, with comments.

http://codereview.chromium.org/8101/diff/1/4
File src/top.h (right):

http://codereview.chromium.org/8101/diff/1/4#newcode56
Line 56: v8::TryCatch* catcher_;
What about a more descriptive name for this one?  active_external_handler_
maybe?

http://codereview.chromium.org/8101/diff/1/4#newcode150
Line 150: (Top::thread_local_.try_catch_handler_ ==
Top::thread_local_.catcher_);
If the catcher is set won't it always be the top exception handler?

Powered by Google App Engine
This is Rietveld 408576698