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

Issue 275763002: Compute distinguishing argument index (Closed)

Created:
6 years, 7 months ago by Nils Barth (inactive)
Modified:
6 years, 7 months ago
Reviewers:
haraken, Jens Widell, jsbell
CC:
blink-reviews, blink-reviews-bindings_chromium.org, arv+blink, abarth-chromium, jsbell, Jens Widell
Visibility:
Public.

Description

Compute distinguishing argument index The "distinguishing argument index" is the next part of the overload resolution algorithm. In overload resolution, you first distinguish by number of arguments, then distinguish by checking the type of a single argument at some index; this CL adds the index computation. In practice it's just the first index where types differ, but there are additional conditions to check. http://heycam.github.io/webidl/#dfn-distinguishing-argument-index Next CL will add the very lengthy "distinguishability classes". After that we'll finally be ready to start changing the code generation, based first on number of arguments, secondly on type! Also: * Some refactoring * Fixes some tests that were invalid overloads, and were caught by the new checks! (No invalid overloads in actual IDLs, but test cases were too simple.) R=haraken BUG=293561 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=173741

Patch Set 1 #

Patch Set 2 : Tweak #

Patch Set 3 : Comments #

Patch Set 4 : Alpha #

Total comments: 2

Patch Set 5 : Fix exception catching #

Total comments: 2

Patch Set 6 : Simplify index computation #

Unified diffs Side-by-side diffs Delta from patch set Stats (+109 lines, -23 lines) Patch
M Source/bindings/scripts/v8_interface.py View 1 2 3 4 5 6 chunks +101 lines, -15 lines 0 comments Download
M Source/bindings/tests/idls/TestObject.idl View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/bindings/tests/results/V8TestObject.cpp View 2 chunks +6 lines, -6 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Nils Barth (inactive)
Next step! (Most of code is lots of grouping and slicing of lists.)
6 years, 7 months ago (2014-05-09 05:43:00 UTC) #1
Jens Widell
https://codereview.chromium.org/275763002/diff/60001/Source/bindings/scripts/v8_interface.py File Source/bindings/scripts/v8_interface.py (right): https://codereview.chromium.org/275763002/diff/60001/Source/bindings/scripts/v8_interface.py#newcode501 Source/bindings/scripts/v8_interface.py:501: except: Maybe "except StopIteration:" instead, to avoid catching unrelated ...
6 years, 7 months ago (2014-05-09 06:08:04 UTC) #2
Nils Barth (inactive)
https://codereview.chromium.org/275763002/diff/60001/Source/bindings/scripts/v8_interface.py File Source/bindings/scripts/v8_interface.py (right): https://codereview.chromium.org/275763002/diff/60001/Source/bindings/scripts/v8_interface.py#newcode501 Source/bindings/scripts/v8_interface.py:501: except: On 2014/05/09 06:08:05, Jens Lindström wrote: > Maybe ...
6 years, 7 months ago (2014-05-09 06:17:09 UTC) #3
haraken
+jsbell LGTM https://codereview.chromium.org/275763002/diff/80001/Source/bindings/scripts/v8_interface.py File Source/bindings/scripts/v8_interface.py (right): https://codereview.chromium.org/275763002/diff/80001/Source/bindings/scripts/v8_interface.py#newcode500 Source/bindings/scripts/v8_interface.py:500: if len(set(types)) > 1) This looks very ...
6 years, 7 months ago (2014-05-09 07:52:50 UTC) #4
Nils Barth (inactive)
https://codereview.chromium.org/275763002/diff/80001/Source/bindings/scripts/v8_interface.py File Source/bindings/scripts/v8_interface.py (right): https://codereview.chromium.org/275763002/diff/80001/Source/bindings/scripts/v8_interface.py#newcode500 Source/bindings/scripts/v8_interface.py:500: if len(set(types)) > 1) On 2014/05/09 07:52:51, haraken wrote: ...
6 years, 7 months ago (2014-05-09 08:04:47 UTC) #5
Nils Barth (inactive)
The CQ bit was checked by nbarth@chromium.org
6 years, 7 months ago (2014-05-09 08:04:53 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nbarth@chromium.org/275763002/100001
6 years, 7 months ago (2014-05-09 08:06:44 UTC) #7
commit-bot: I haz the power
6 years, 7 months ago (2014-05-09 09:22:39 UTC) #8
Message was sent while issue was closed.
Change committed as 173741

Powered by Google App Engine
This is Rietveld 408576698