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

Issue 112303003: IDL compiler: [Constructor] overloading (Closed)

Created:
7 years ago by Nils Barth (inactive)
Modified:
7 years ago
Reviewers:
haraken
CC:
blink-reviews, Nils Barth (inactive), kojih, arv+blink, jsbell+bindings_chromium.org, abarth-chromium, marja+watch_chromium.org, adamk+blink_chromium.org, haraken, Nate Chapin, watchdog-blink-watchlist_google.com, Inactive, kouhei (in TOK)
Visibility:
Public.

Description

IDL compiler: [Constructor] overloading This completes [Constructor]. Relatively long, b/c need to support list of constructors, but most of logic already handled in method overloading. A few notes: * Also simplify Perl logic * Some stub values (e.g., argument['is_nullable'] = False) b/c needed by overload resolution algorithm. * moved constructor macro into methods.cpp b/c otherwise cyclic import between interface_base.cpp and interface.cpp. * interface.cpp diff looks weird b/c it replaces the actual constructor method with the overload callback. BUG=239771 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=163939

Patch Set 1 #

Patch Set 2 : Better test case #

Total comments: 12

Patch Set 3 : Revised and rebased #

Patch Set 4 : Formatting #

Unified diffs Side-by-side diffs Delta from patch set Stats (+389 lines, -307 lines) Patch
M Source/bindings/scripts/code_generator_v8.pm View 1 2 3 chunks +8 lines, -16 lines 0 comments Download
M Source/bindings/scripts/unstable/v8_interface.py View 1 2 5 chunks +39 lines, -28 lines 0 comments Download
M Source/bindings/templates/interface.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/templates/interface.cpp View 1 3 chunks +17 lines, -29 lines 0 comments Download
M Source/bindings/templates/interface_base.cpp View 2 chunks +6 lines, -2 lines 0 comments Download
M Source/bindings/templates/methods.cpp View 1 2 3 7 chunks +103 lines, -55 lines 0 comments Download
M Source/bindings/tests/idls/TestInterfaceConstructor.idl View 1 2 2 chunks +3 lines, -4 lines 0 comments Download
A + Source/bindings/tests/idls/TestInterfaceConstructor2.idl View 1 2 1 chunk +10 lines, -10 lines 0 comments Download
A + Source/bindings/tests/idls/TestInterfaceConstructor3.idl View 1 2 1 chunk +3 lines, -4 lines 0 comments Download
M Source/bindings/tests/results/V8TestInterfaceConstructor.cpp View 1 2 4 chunks +30 lines, -14 lines 0 comments Download
A + Source/bindings/tests/results/V8TestInterfaceConstructor2.h View 1 2 chunks +29 lines, -29 lines 0 comments Download
A + Source/bindings/tests/results/V8TestInterfaceConstructor2.cpp View 1 2 7 chunks +59 lines, -54 lines 0 comments Download
A + Source/bindings/tests/results/V8TestInterfaceConstructor3.h View 1 2 2 chunks +29 lines, -29 lines 0 comments Download
A + Source/bindings/tests/results/V8TestInterfaceConstructor3.cpp View 1 2 5 chunks +51 lines, -31 lines 0 comments Download
M Source/bindings/tests/results/V8TestOverloadedConstructors.cpp View 1 2 2 chunks +1 line, -1 line 0 comments Download

Messages

Total messages: 5 (0 generated)
Nils Barth (inactive)
Last [Constructor] CL! https://codereview.chromium.org/112303003/diff/10001/Source/bindings/scripts/unstable/v8_interface.py File Source/bindings/scripts/unstable/v8_interface.py (right): https://codereview.chromium.org/112303003/diff/10001/Source/bindings/scripts/unstable/v8_interface.py#newcode350 Source/bindings/scripts/unstable/v8_interface.py:350: 'is_nullable': False, Stubs for overload resolution. ...
7 years ago (2013-12-13 07:04:16 UTC) #1
haraken
LGTM > Last [Constructor] CL! Each CL was small enough and very easy to review! ...
7 years ago (2013-12-13 10:23:31 UTC) #2
Nils Barth (inactive)
Thanks for quick reviews (hence rapid cycle); revised and landing! https://codereview.chromium.org/112303003/diff/10001/Source/bindings/scripts/unstable/v8_interface.py File Source/bindings/scripts/unstable/v8_interface.py (right): https://codereview.chromium.org/112303003/diff/10001/Source/bindings/scripts/unstable/v8_interface.py#newcode321 ...
7 years ago (2013-12-16 03:15:56 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nbarth@chromium.org/112303003/50001
7 years ago (2013-12-16 03:25:10 UTC) #4
commit-bot: I haz the power
7 years ago (2013-12-16 04:26:51 UTC) #5
Message was sent while issue was closed.
Change committed as 163939

Powered by Google App Engine
This is Rietveld 408576698