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

Issue 13933014: Gen index getter by unified way instead of using several helper function in some special cases. (Closed)

Created:
7 years, 8 months ago by kojih
Modified:
7 years, 8 months ago
Reviewers:
haraken
CC:
blink-reviews, Nate Chapin, abarth-chromium
Base URL:
https://chromium.googlesource.com/chromium/blink@master
Visibility:
Public.

Description

Gen index getter by unified way instead of using several helper function in some special cases. Currently there's 3 kind of helper below: setCollectionStringOrUndefinedIndexedGetter setCollectionStringIndexedGetter setCollectionIndexedGetter Those register 3 fixed indexed property getter(template function). In this situation, it is difficult to customize or debug some specified IDL. With this update, those are all auto-generated by CodeGeneratorV8 so flexibility is improved. R=haraken@chromium.org BUG=229740 TEST=V8TestEventTarget.cpp (generated by run-bindings-tests) Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=148617

Patch Set 1 #

Patch Set 2 : revert 148030 and replace setCollectionXXX to auto-generated #

Patch Set 3 : revised #

Total comments: 30

Patch Set 4 : updated #

Patch Set 5 : updated #

Patch Set 6 : updated #

Patch Set 7 : removed debug printf #

Total comments: 2

Patch Set 8 : updated #

Patch Set 9 : rebased to latest #

Patch Set 10 : rebased to latest #

Patch Set 11 : refined #

Unified diffs Side-by-side diffs Delta from patch set Stats (+86 lines, -63 lines) Patch
M LayoutTests/fast/dom/CSSStyleDeclaration/css-computed-style-item-expected.txt View 1 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/dom/CSSStyleDeclaration/css-style-item-expected.txt View 1 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/dom/CSSStyleDeclaration/script-tests/css-computed-style-item.js View 1 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/dom/CSSStyleDeclaration/script-tests/css-style-item.js View 1 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/gamepad/gamepad-polling-access.html View 1 1 chunk +5 lines, -5 lines 0 comments Download
M LayoutTests/gamepad/gamepad-polling-access-expected.txt View 1 1 chunk +5 lines, -5 lines 0 comments Download
M Source/bindings/scripts/CodeGeneratorV8.pm View 1 2 3 4 5 6 7 8 9 10 7 chunks +62 lines, -45 lines 0 comments Download
M Source/bindings/tests/results/V8TestEventTarget.cpp View 1 2 3 4 5 6 7 8 2 chunks +10 lines, -1 line 0 comments Download
M Source/core/dom/NamedNodeMap.idl View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/html/HTMLFormElement.idl View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/html/HTMLSelectElement.idl View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 17 (0 generated)
kojih
haraken: This is just for discsussion for now. This patch replace setCollectionXXX to auto-generate code ...
7 years, 8 months ago (2013-04-17 03:50:54 UTC) #1
haraken
Although I don't yet understand what your patch is doing, I have two suggestions: - ...
7 years, 8 months ago (2013-04-17 04:05:18 UTC) #2
kojih
As discussed offline, I'd like to implement isValidIndex() but I don't know how to do ...
7 years, 8 months ago (2013-04-17 06:09:00 UTC) #3
kojih
My previous patch is for (1), which causes performance regression in case of HTMLCollection, HTMLAllCollection, ...
7 years, 8 months ago (2013-04-17 06:10:25 UTC) #4
kojih
r?
7 years, 8 months ago (2013-04-17 08:11:09 UTC) #5
kojih
added comments. https://codereview.chromium.org/13933014/diff/6001/LayoutTests/fast/dom/CSSStyleDeclaration/css-computed-style-item-expected.txt File LayoutTests/fast/dom/CSSStyleDeclaration/css-computed-style-item-expected.txt (right): https://codereview.chromium.org/13933014/diff/6001/LayoutTests/fast/dom/CSSStyleDeclaration/css-computed-style-item-expected.txt#newcode7 LayoutTests/fast/dom/CSSStyleDeclaration/css-computed-style-item-expected.txt:7: PASS computedStyle[computedStyle.length] is "" Contains revert of ...
7 years, 8 months ago (2013-04-17 08:20:32 UTC) #6
kojih
https://codereview.chromium.org/13933014/diff/6001/Source/bindings/tests/results/V8TestCallback.cpp File Source/bindings/tests/results/V8TestCallback.cpp (right): https://codereview.chromium.org/13933014/diff/6001/Source/bindings/tests/results/V8TestCallback.cpp#newcode42 Source/bindings/tests/results/V8TestCallback.cpp:42: { It was due to the change below. (may ...
7 years, 8 months ago (2013-04-17 08:35:27 UTC) #7
kojih
https://codereview.chromium.org/13933014/diff/6001/Source/bindings/tests/results/V8TestObj.cpp File Source/bindings/tests/results/V8TestObj.cpp (right): https://codereview.chromium.org/13933014/diff/6001/Source/bindings/tests/results/V8TestObj.cpp#newcode37 Source/bindings/tests/results/V8TestObj.cpp:37: #include "UseCounter.h" (may be forgot to --reset-results)
7 years, 8 months ago (2013-04-17 08:41:19 UTC) #8
haraken
https://codereview.chromium.org/13933014/diff/6001/Source/bindings/scripts/CodeGeneratorV8.pm File Source/bindings/scripts/CodeGeneratorV8.pm (right): https://codereview.chromium.org/13933014/diff/6001/Source/bindings/scripts/CodeGeneratorV8.pm#newcode2613 Source/bindings/scripts/CodeGeneratorV8.pm:2613: sub GenerateImplementationIndexer GenerateImplementationIndexer => GenerateImplementationIndexedProperty ? https://codereview.chromium.org/13933014/diff/6001/Source/bindings/scripts/CodeGeneratorV8.pm#newcode2621 Source/bindings/scripts/CodeGeneratorV8.pm:2621: my ...
7 years, 8 months ago (2013-04-17 08:41:56 UTC) #9
kojih
fixed. r?
7 years, 8 months ago (2013-04-17 09:13:38 UTC) #10
kojih
Patch set 7 is latest. r?
7 years, 8 months ago (2013-04-17 09:15:15 UTC) #11
haraken
https://codereview.chromium.org/13933014/diff/11003/Source/bindings/scripts/CodeGeneratorV8.pm File Source/bindings/scripts/CodeGeneratorV8.pm (right): https://codereview.chromium.org/13933014/diff/11003/Source/bindings/scripts/CodeGeneratorV8.pm#newcode2690 Source/bindings/scripts/CodeGeneratorV8.pm:2690: my $elementType = GetNativeType($indexerType); $elementType => $nativeType https://codereview.chromium.org/13933014/diff/11003/Source/bindings/scripts/CodeGeneratorV8.pm#newcode2693 Source/bindings/scripts/CodeGeneratorV8.pm:2693: ...
7 years, 8 months ago (2013-04-17 10:29:52 UTC) #12
kojih
r? anyway, I'll upload this after https://codereview.chromium.org/14261002/ is landed.
7 years, 8 months ago (2013-04-17 11:07:38 UTC) #13
kojih
rebased to latest and ready. r?
7 years, 8 months ago (2013-04-18 04:27:51 UTC) #14
haraken
LGTM
7 years, 8 months ago (2013-04-18 04:33:34 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kojih@chromium.org/13933014/23001
7 years, 8 months ago (2013-04-18 04:36:56 UTC) #16
commit-bot: I haz the power
7 years, 8 months ago (2013-04-18 05:18:47 UTC) #17
Message was sent while issue was closed.
Change committed as 148617

Powered by Google App Engine
This is Rietveld 408576698