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

Issue 6685087: Make exception thrown via v8 public API propagate to v8::TryCatch as JS thrown exceptions do. (Closed)

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

Description

Make exception thrown via v8 public API propagate to v8::TryCatch as JS thrown exceptions do. Correctly process failures which can be returned by Object::GetProperty when performing GetRealNamedProperty* queries. Callback properties can produce exceptions so we need to wrap access to them into exception checks. However, despite of many other methods with exception checks, property access doesn't mandatroy go via JavaScript and hence we need to inject code to propagate exception to public API TryCatch handlers. Committed: http://code.google.com/p/v8/source/detail?r=7548

Patch Set 1 #

Total comments: 4

Patch Set 2 : Next round #

Patch Set 3 : Next round #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+300 lines, -67 lines) Patch
M src/api.cc View 1 3 chunks +29 lines, -24 lines 2 comments Download
M src/debug.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M src/handles.h View 1 1 chunk +5 lines, -0 lines 0 comments Download
M src/handles.cc View 1 2 1 chunk +11 lines, -0 lines 0 comments Download
M src/isolate.h View 1 5 chunks +41 lines, -0 lines 0 comments Download
M src/isolate.cc View 1 1 chunk +27 lines, -0 lines 0 comments Download
M src/messages.h View 1 1 chunk +3 lines, -1 line 0 comments Download
M src/messages.cc View 1 2 chunks +26 lines, -1 line 0 comments Download
M src/top.cc View 1 4 chunks +26 lines, -39 lines 0 comments Download
M test/cctest/test-api.cc View 1 2 chunks +131 lines, -1 line 0 comments Download

Messages

Total messages: 7 (0 generated)
antonm
Guys, may you have a look? It is rebaselined version of http://code.google.com/p/v8/source/detail?r=7258 modulo two changes: ...
9 years, 9 months ago (2011-03-18 16:05:59 UTC) #1
Mads Ager (chromium)
http://codereview.chromium.org/6685087/diff/1/src/api.cc File src/api.cc (right): http://codereview.chromium.org/6685087/diff/1/src/api.cc#newcode2395 src/api.cc:2395: // propagate outside. propagate -> to propagate? http://codereview.chromium.org/6685087/diff/1/src/messages.cc File ...
9 years, 9 months ago (2011-03-21 10:33:21 UTC) #2
antonm
http://codereview.chromium.org/6685087/diff/1/src/api.cc File src/api.cc (right): http://codereview.chromium.org/6685087/diff/1/src/api.cc#newcode2395 src/api.cc:2395: // propagate outside. On 2011/03/21 10:33:22, Mads Ager wrote: ...
9 years, 9 months ago (2011-03-21 18:15:48 UTC) #3
Mads Ager (chromium)
LGTM http://codereview.chromium.org/6685087/diff/7001/src/api.cc File src/api.cc (right): http://codereview.chromium.org/6685087/diff/7001/src/api.cc#newcode2784 src/api.cc:2784: static Local<Value> GetPropertyByLookup(i::Isolate* isolate, The isolate parameter is ...
9 years, 9 months ago (2011-03-22 07:32:14 UTC) #4
Vitaly Repeshko
LGTM
9 years, 9 months ago (2011-03-22 08:53:30 UTC) #5
Vitaly Repeshko
LGTM
9 years, 9 months ago (2011-03-22 08:53:30 UTC) #6
antonm
9 years, 9 months ago (2011-03-22 10:57:06 UTC) #7
Thanks a lot for review, Mads and Vitaly.

http://codereview.chromium.org/6685087/diff/7001/src/api.cc
File src/api.cc (right):

http://codereview.chromium.org/6685087/diff/7001/src/api.cc#newcode2784
src/api.cc:2784: static Local<Value> GetPropertyByLookup(i::Isolate* isolate,
On 2011/03/22 07:32:14, Mads Ager wrote:
> The isolate parameter is not used. Remove?

It's implicitly used in EXCEPTION_BAILOUT_CHECK.

Powered by Google App Engine
This is Rietveld 408576698