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

Issue 751223003: IDL: Support runtime enabled overloads affecting Function.length (Closed)

Created:
6 years ago by Jens Widell
Modified:
6 years ago
Reviewers:
haraken, ajuma, bashi
CC:
blink-reviews, blink-reviews-bindings_chromium.org, arv+blink
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

IDL: Support runtime enabled overloads affecting Function.length Before this CL, a runtime enabled overload with fewer required arguments than any non-runtime enabled overload resulted in an error from the IDL compiler, since such an overload would change the correct Function.length value (runtime) in a way that wasn't supported. Since such overloads are now becoming a reality, add support for them by generating a simple function that returns the correct Function.length value depending on whether features are enabled. BUG=437885 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=186393

Patch Set 1 #

Total comments: 2

Patch Set 2 : rebased #

Patch Set 3 : eliminate "info.Length() < 0" branches #

Unified diffs Side-by-side diffs Delta from patch set Stats (+167 lines, -104 lines) Patch
M Source/bindings/scripts/v8_interface.py View 4 chunks +27 lines, -8 lines 0 comments Download
M Source/bindings/templates/interface_base.cpp View 2 chunks +4 lines, -1 line 0 comments Download
M Source/bindings/templates/methods.cpp View 1 2 3 chunks +27 lines, -6 lines 0 comments Download
M Source/bindings/tests/idls/core/TestObject.idl View 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/tests/results/core/V8TestException.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/tests/results/core/V8TestInterface.cpp View 1 7 chunks +17 lines, -14 lines 0 comments Download
M Source/bindings/tests/results/core/V8TestObject.cpp View 1 2 28 chunks +82 lines, -53 lines 0 comments Download
M Source/bindings/tests/results/modules/V8TestInterface5.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/bindings/tests/results/modules/V8TestInterfacePartial.cpp View 1 2 6 chunks +6 lines, -18 lines 0 comments Download

Messages

Total messages: 9 (2 generated)
Jens Widell
haraken, bashi: PTAL ajuma: FYI This is obviously quite a lot of change to solve ...
6 years ago (2014-12-02 11:29:48 UTC) #2
haraken
On 2014/12/02 11:29:48, Jens Widell wrote: > haraken, bashi: PTAL > ajuma: FYI > > ...
6 years ago (2014-12-02 13:23:55 UTC) #3
bashi
Thank you for working on this! I think this is worth doing, given that one ...
6 years ago (2014-12-02 23:56:17 UTC) #4
Jens Widell
https://codereview.chromium.org/751223003/diff/1/Source/bindings/tests/results/core/V8TestObject.cpp File Source/bindings/tests/results/core/V8TestObject.cpp (right): https://codereview.chromium.org/751223003/diff/1/Source/bindings/tests/results/core/V8TestObject.cpp#newcode8057 Source/bindings/tests/results/core/V8TestObject.cpp:8057: if (info.Length() < 0) { On 2014/12/02 23:56:17, bashi1 ...
6 years ago (2014-12-03 07:19:31 UTC) #5
bashi
still LGTM.
6 years ago (2014-12-03 07:29:39 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/751223003/40001
6 years ago (2014-12-03 08:11:23 UTC) #8
commit-bot: I haz the power
6 years ago (2014-12-03 08:48:08 UTC) #9
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=186393

Powered by Google App Engine
This is Rietveld 408576698