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

Issue 564063002: Generate simple code for "trivial" conversions (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@master
Project:
blink
Visibility:
Public.

Description

Generate simple code for "trivial" conversions A trivial conversion is defined as one that cannot throw an exception, and thus need no v8::TryCatch or ExceptionState, and no "did it succeed?" check after the conversion. For such conversions, generate the code Type variable = convertedValue() instead of TONATIVE_VOID(Type, variable, convertedValue()) Also include all such conversions in the set of argument conversions that don't require a v8::TryCatch, since they then no longer do. BUG=413257 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=181897

Patch Set 1 #

Patch Set 2 : rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+121 lines, -198 lines) Patch
M Source/bindings/scripts/v8_methods.py View 1 1 chunk +4 lines, -1 line 0 comments Download
M Source/bindings/scripts/v8_types.py View 2 chunks +14 lines, -0 lines 0 comments Download
M Source/bindings/tests/results/core/V8TestInterface.cpp View 7 chunks +7 lines, -11 lines 0 comments Download
M Source/bindings/tests/results/core/V8TestInterfaceConstructor.cpp View 1 2 chunks +2 lines, -2 lines 0 comments Download
M Source/bindings/tests/results/core/V8TestInterfaceConstructor2.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/tests/results/core/V8TestInterfaceConstructor4.cpp View 1 chunk +1 line, -3 lines 0 comments Download
M Source/bindings/tests/results/core/V8TestInterfaceGarbageCollected.cpp View 2 chunks +2 lines, -4 lines 0 comments Download
M Source/bindings/tests/results/core/V8TestInterfaceNamedConstructor.cpp View 1 chunk +1 line, -3 lines 0 comments Download
M Source/bindings/tests/results/core/V8TestInterfaceNode.cpp View 2 chunks +2 lines, -6 lines 0 comments Download
M Source/bindings/tests/results/core/V8TestInterfaceNotScriptWrappable.cpp View 2 chunks +2 lines, -4 lines 0 comments Download
M Source/bindings/tests/results/core/V8TestInterfaceWillBeGarbageCollected.cpp View 2 chunks +2 lines, -4 lines 0 comments Download
M Source/bindings/tests/results/core/V8TestObject.cpp View 1 79 chunks +80 lines, -154 lines 0 comments Download
M Source/bindings/tests/results/core/V8TestSpecialOperations.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/tests/results/modules/V8TestInterface5.cpp View 2 chunks +2 lines, -4 lines 0 comments Download

Messages

Total messages: 6 (2 generated)
Jens Widell
PTAL Alternative approaches are possible. We could for instance introduce a TONATIVE_TRIVIAL() macro. As long ...
6 years, 3 months ago (2014-09-12 10:28:57 UTC) #2
haraken
On 2014/09/12 10:28:57, Jens Widell wrote: > PTAL > > Alternative approaches are possible. We ...
6 years, 3 months ago (2014-09-12 11:45:45 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/564063002/20001
6 years, 3 months ago (2014-09-12 11:53:33 UTC) #5
commit-bot: I haz the power
6 years, 3 months ago (2014-09-12 12:57:31 UTC) #6
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as 181897

Powered by Google App Engine
This is Rietveld 408576698