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

Issue 552143004: Simplify TONATIVE_*_EXCEPTIONSTATE* macros (Closed)

Created:
6 years, 3 months ago by Jens Widell
Modified:
6 years, 3 months ago
Reviewers:
haraken
CC:
blink-reviews, blink-reviews-bindings_chromium.org, arv+blink, abarth-chromium
Base URL:
https://chromium.googlesource.com/chromium/blink.git@bindings-conversion-ExceptionState
Project:
blink
Visibility:
Public.

Description

Simplify TONATIVE_*_EXCEPTIONSTATE* macros By assuming that the |value| expression throws exceptions via the ExceptionState object, and only via it, we can skip the v8::TryCatch declaration and check. This is good since it is less code, and since v8::TryCatch objects cost a bit of CPU time to initialize. The correctness of this patch depends on https://codereview.chromium.org/559553003/ and https://codereview.chromium.org/556273003/ that make sure all type conversion helpers with an ExceptionState& argument actually throw all exceptions via it. Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=181796

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -138 lines) Patch
M Source/bindings/core/v8/V8BindingMacros.h View 1 2 chunks +10 lines, -25 lines 0 comments Download
M Source/bindings/scripts/v8_methods.py View 1 2 2 chunks +8 lines, -1 line 0 comments Download
M Source/bindings/tests/results/core/V8TestInterface.cpp View 1 2 3 2 chunks +0 lines, -4 lines 0 comments Download
M Source/bindings/tests/results/core/V8TestInterface2.cpp View 1 2 3 3 chunks +0 lines, -6 lines 0 comments Download
M Source/bindings/tests/results/core/V8TestInterfaceConstructor4.cpp View 1 2 3 1 chunk +0 lines, -2 lines 0 comments Download
M Source/bindings/tests/results/core/V8TestObject.cpp View 1 2 3 50 chunks +0 lines, -100 lines 0 comments Download

Messages

Total messages: 9 (2 generated)
Jens Widell
PTAL Note that this is quite not ready to land; once https://codereview.chromium.org/561633003/ lands, dictionary conversions ...
6 years, 3 months ago (2014-09-10 11:01:31 UTC) #2
haraken
LGTM This might slightly speed up the binding code, since the allocation of v8::TryCatch is ...
6 years, 3 months ago (2014-09-10 11:14:22 UTC) #3
Jens Widell
On 2014/09/10 11:14:22, haraken wrote: > LGTM > > This might slightly speed up the ...
6 years, 3 months ago (2014-09-10 11:17:41 UTC) #4
Jens Widell
On 2014/09/10 11:14:22, haraken wrote: > This might slightly speed up the binding code, since ...
6 years, 3 months ago (2014-09-10 16:09:34 UTC) #5
haraken
On 2014/09/10 16:09:34, Jens Widell wrote: > On 2014/09/10 11:14:22, haraken wrote: > > This ...
6 years, 3 months ago (2014-09-11 01:04:07 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/552143004/60001
6 years, 3 months ago (2014-09-11 05:59:47 UTC) #8
commit-bot: I haz the power
6 years, 3 months ago (2014-09-11 06:45:31 UTC) #9
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as 181796

Powered by Google App Engine
This is Rietveld 408576698