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

Issue 221073003: Add helper functions for throwing arity-related TypeErrors (Closed)

Created:
6 years, 8 months ago by fs
Modified:
6 years, 8 months ago
CC:
blink-reviews, Nils Barth (inactive), kojih, arv+blink, jsbell+bindings_chromium.org, sof, kouhei+bindings_chromium.org, abarth-chromium, marja+watch_chromium.org, adamk+blink_chromium.org, Nate Chapin, Inactive
Visibility:
Public.

Description

Add helper functions for throwing arity-related TypeErrors Add a few new helper functions that the generated bindings code can use to throw TypeErrors for arity mismatches. This reduces the binary footprint for these exceptional code-paths. (Approx. 75kB smaller content_shell binary on Linux, x86-64, gcc-4.8.2) Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=170666

Patch Set 1 #

Total comments: 4

Patch Set 2 : Fix style nits. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+157 lines, -184 lines) Patch
M Source/bindings/templates/methods.cpp View 1 5 chunks +16 lines, -12 lines 0 comments Download
M Source/bindings/tests/results/V8TestInterface.cpp View 4 chunks +4 lines, -6 lines 0 comments Download
M Source/bindings/tests/results/V8TestInterface2.cpp View 6 chunks +6 lines, -12 lines 0 comments Download
M Source/bindings/tests/results/V8TestInterfaceConstructor3.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/tests/results/V8TestInterfaceNamedConstructor.cpp View 1 chunk +1 line, -2 lines 0 comments Download
M Source/bindings/tests/results/V8TestInterfaceNamedConstructor2.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/tests/results/V8TestInterfaceWillBeGarbageCollected.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/bindings/tests/results/V8TestObject.cpp View 98 chunks +98 lines, -141 lines 0 comments Download
M Source/bindings/tests/results/V8TestSpecialOperations.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/tests/results/V8TestTypedefs.cpp View 6 chunks +6 lines, -6 lines 0 comments Download
M Source/bindings/v8/V8Binding.h View 1 chunk +5 lines, -0 lines 0 comments Download
M Source/bindings/v8/V8Binding.cpp View 1 chunk +16 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (0 generated)
Mike West
LGTM, this looks like a pretty reasonable way of moving repeated work out of the ...
6 years, 8 months ago (2014-04-02 06:33:05 UTC) #1
Nils Barth (inactive)
Style tip, otherwise LGTM. https://codereview.chromium.org/221073003/diff/1/Source/bindings/templates/methods.cpp File Source/bindings/templates/methods.cpp (right): https://codereview.chromium.org/221073003/diff/1/Source/bindings/templates/methods.cpp#newcode12 Source/bindings/templates/methods.cpp:12: {{throw_arity_type_error(method, method.number_of_required_arguments) | indent(8)}} The ...
6 years, 8 months ago (2014-04-02 06:47:37 UTC) #2
haraken
LGTM with Nils' comments addressed.
6 years, 8 months ago (2014-04-02 07:01:19 UTC) #3
fs
Thanks for reviews! (It was a [pleasant] surprise at this time of day =)) https://codereview.chromium.org/221073003/diff/1/Source/bindings/templates/methods.cpp ...
6 years, 8 months ago (2014-04-02 07:13:45 UTC) #4
Nils Barth (inactive)
(Thanks for style fixes!)
6 years, 8 months ago (2014-04-02 07:26:41 UTC) #5
fs
The CQ bit was checked by fs@opera.com
6 years, 8 months ago (2014-04-02 08:22:59 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fs@opera.com/221073003/20001
6 years, 8 months ago (2014-04-02 08:23:09 UTC) #7
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-02 09:34:37 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.blink on linux_blink_dbg
6 years, 8 months ago (2014-04-02 09:34:37 UTC) #9
fs
The CQ bit was checked by fs@opera.com
6 years, 8 months ago (2014-04-02 10:28:14 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fs@opera.com/221073003/20001
6 years, 8 months ago (2014-04-02 10:28:17 UTC) #11
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-02 11:42:20 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.blink on linux_blink_dbg
6 years, 8 months ago (2014-04-02 11:42:20 UTC) #13
fs
The CQ bit was checked by fs@opera.com
6 years, 8 months ago (2014-04-02 12:08:44 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fs@opera.com/221073003/20001
6 years, 8 months ago (2014-04-02 12:08:50 UTC) #15
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-02 13:20:48 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.blink on linux_blink_dbg
6 years, 8 months ago (2014-04-02 13:20:48 UTC) #17
fs
The CQ bit was checked by fs@opera.com
6 years, 8 months ago (2014-04-02 13:30:32 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fs@opera.com/221073003/20001
6 years, 8 months ago (2014-04-02 13:30:35 UTC) #19
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-02 14:42:07 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.blink on linux_blink_dbg
6 years, 8 months ago (2014-04-02 14:42:08 UTC) #21
fs
The CQ bit was checked by fs@opera.com
6 years, 8 months ago (2014-04-02 14:56:42 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fs@opera.com/221073003/20001
6 years, 8 months ago (2014-04-02 14:56:48 UTC) #23
commit-bot: I haz the power
6 years, 8 months ago (2014-04-02 16:05:58 UTC) #24
Message was sent while issue was closed.
Change committed as 170666

Powered by Google App Engine
This is Rietveld 408576698