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

Issue 99333017: IDL compiler: simplify type conversion in Event Constructor (Closed)

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

Description

IDL compiler: simplify type conversion in Event Constructor The current Dictionary::ConversionContext.withAttributes method is code-generator unfriendly (no need for overloading, since we're generating the code), and confusingly named. This removes the unnecessary complexity of overloading, and renames it to the clearer ConversionContext.conversionType. Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=163704

Patch Set 1 #

Total comments: 3

Patch Set 2 : Revised (remove integer conversion) #

Patch Set 3 : Simpler #

Patch Set 4 : Fix layout test result (error text) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -87 lines) Patch
M LayoutTests/fast/events/constructors/track-event-constructor-expected.txt View 1 2 3 1 chunk +7 lines, -7 lines 0 comments Download
M Source/bindings/scripts/code_generator_v8.pm View 1 2 1 chunk +2 lines, -23 lines 0 comments Download
M Source/bindings/tests/results/V8TestExtendedEvent.cpp View 1 1 chunk +2 lines, -2 lines 0 comments Download
M Source/bindings/tests/results/V8TestInterfaceEventConstructor.cpp View 1 1 chunk +4 lines, -4 lines 0 comments Download
M Source/bindings/v8/Dictionary.h View 1 2 3 4 chunks +19 lines, -28 lines 0 comments Download
M Source/bindings/v8/Dictionary.cpp View 1 1 chunk +1 line, -23 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
Nils Barth (inactive)
Here's the simplifying CL (*much* simpler). * How's the naming? * We could remove the ...
7 years ago (2013-12-11 08:14:19 UTC) #1
haraken
LGTM https://codereview.chromium.org/99333017/diff/1/Source/bindings/v8/Dictionary.h File Source/bindings/v8/Dictionary.h (right): https://codereview.chromium.org/99333017/diff/1/Source/bindings/v8/Dictionary.h#newcode122 Source/bindings/v8/Dictionary.h:122: ConversionContext& conversionType(bool, IntegerConversionConfiguration, const String&); I would rename ...
7 years ago (2013-12-11 08:26:23 UTC) #2
Nils Barth (inactive)
https://codereview.chromium.org/99333017/diff/1/Source/bindings/v8/Dictionary.h File Source/bindings/v8/Dictionary.h (right): https://codereview.chromium.org/99333017/diff/1/Source/bindings/v8/Dictionary.h#newcode122 Source/bindings/v8/Dictionary.h:122: ConversionContext& conversionType(bool, IntegerConversionConfiguration, const String&); On 2013/12/11 08:26:23, haraken ...
7 years ago (2013-12-11 08:51:31 UTC) #3
Nils Barth (inactive)
Hi haraken, could you PTAL? I've removed the integer conversion code, and accordingly simplified Dictionary.h ...
7 years ago (2013-12-11 08:52:12 UTC) #4
haraken
LGTM.
7 years ago (2013-12-11 08:54:01 UTC) #5
Nils Barth (inactive)
On 2013/12/11 08:54:01, haraken wrote: > LGTM. Thanks!
7 years ago (2013-12-11 08:56:58 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/99333017/40001
7 years ago (2013-12-11 08:57:02 UTC) #7
commit-bot: I haz the power
Retried try job too often on linux_blink_rel for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_blink_rel&number=15199
7 years ago (2013-12-11 10:37:55 UTC) #8
Nils Barth (inactive)
On 2013/12/11 10:37:55, I haz the power (commit-bot) wrote: > Retried try job too often ...
7 years ago (2013-12-11 11:12:32 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nbarth@chromium.org/99333017/60001
7 years ago (2013-12-11 11:12:47 UTC) #10
commit-bot: I haz the power
7 years ago (2013-12-11 13:00:51 UTC) #11
Message was sent while issue was closed.
Change committed as 163704

Powered by Google App Engine
This is Rietveld 408576698