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

Issue 2731593003: bindings: Use fixed-size integer types in the generated code. (Closed)

Created:
3 years, 9 months ago by Raphael Kubo da Costa (rakuco)
Modified:
3 years, 9 months ago
Reviewers:
haraken, bashi, jsbell, Yuki
CC:
chromium-reviews, tzik, iclelland+watch_chromuim.org, chasej+watch_chromium.org, nhiroki, haraken, blink-reviews-bindings_chromium.org, blink-reviews, kinuko+fileapi
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

bindings: Use fixed-size integer types in the generated code. Not only does this make the generated code more aligned with the style guide, but it also helps the ongoing work to add more NativeValueTraits specializations for IDL types in order to support the record<K,V> type. BUG=432749, 685754 R=bashi@chromium.org,haraken@chromium.org,yukishiino@chromium.org Review-Url: https://codereview.chromium.org/2731593003 Cr-Commit-Position: refs/heads/master@{#454841} Committed: https://chromium.googlesource.com/chromium/src/+/1f9c453ba2dfb9dbf175486f64ceb55da41717f8

Patch Set 1 #

Patch Set 2 : Explain why 64-bit integers are sometimes not listed #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+231 lines, -224 lines) Patch
M third_party/WebKit/Source/bindings/scripts/v8_types.py View 1 6 chunks +33 lines, -26 lines 2 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/LongCallbackFunction.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/LongCallbackFunction.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/LongOrTestDictionary.h View 2 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/LongOrTestDictionary.cpp View 3 chunks +5 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/StringSequenceCallbackFunctionLongSequenceArg.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/StringSequenceCallbackFunctionLongSequenceArg.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/TestDictionary.h View 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/TestDictionary.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/TestDictionaryDerivedImplementedAs.h View 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/TestDictionaryDerivedImplementedAs.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/TestInterfaceOrLong.h View 2 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/TestInterfaceOrLong.cpp View 3 chunks +5 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestDictionary.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestDictionaryDerived.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestException.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestIntegerIndexed.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestIntegerIndexedGlobal.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestIntegerIndexedPrimaryGlobal.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestInterface.cpp View 12 chunks +12 lines, -12 lines 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestInterface2.cpp View 4 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceCheckSecurity.cpp View 3 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceConstructor2.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceNamedConstructor.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceOriginTrialEnabled.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestObject.cpp View 114 chunks +126 lines, -126 lines 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestTypedefs.cpp View 3 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/modules/V8TestInterface5.cpp View 3 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/modules/V8TestInterfacePartial.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/quota/StorageQuotaCallback.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/quota/StorageUsageCallback.h View 1 chunk +2 lines, -2 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 13 (4 generated)
Raphael Kubo da Costa (rakuco)
PTAL. This is necessary for the NativeValueTraits work discussed in https://codereview.chromium.org/2709983004/, otherwise we end up ...
3 years, 9 months ago (2017-03-03 13:38:04 UTC) #1
jsbell
Drive-by comment: in v8_types.py the 64-bit integer (long long) types are listed in some places ...
3 years, 9 months ago (2017-03-03 18:13:22 UTC) #3
Raphael Kubo da Costa (rakuco)
I've uploaded patch v2 with an explanation of why the 64-bit types aren't always listed.
3 years, 9 months ago (2017-03-04 18:48:38 UTC) #4
haraken
LGTM https://codereview.chromium.org/2731593003/diff/20001/third_party/WebKit/Source/bindings/scripts/v8_types.py File third_party/WebKit/Source/bindings/scripts/v8_types.py (left): https://codereview.chromium.org/2731593003/diff/20001/third_party/WebKit/Source/bindings/scripts/v8_types.py#oldcode109 third_party/WebKit/Source/bindings/scripts/v8_types.py:109: 'unsigned int', Just to confirm: It's okay to ...
3 years, 9 months ago (2017-03-05 07:07:20 UTC) #5
bashi
lgtm
3 years, 9 months ago (2017-03-05 23:35:16 UTC) #6
Yuki
LGTM.
3 years, 9 months ago (2017-03-06 04:44:20 UTC) #7
Raphael Kubo da Costa (rakuco)
https://codereview.chromium.org/2731593003/diff/20001/third_party/WebKit/Source/bindings/scripts/v8_types.py File third_party/WebKit/Source/bindings/scripts/v8_types.py (left): https://codereview.chromium.org/2731593003/diff/20001/third_party/WebKit/Source/bindings/scripts/v8_types.py#oldcode109 third_party/WebKit/Source/bindings/scripts/v8_types.py:109: 'unsigned int', On 2017/03/05 07:07:20, haraken wrote: > > ...
3 years, 9 months ago (2017-03-06 07:53:00 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2731593003/20001
3 years, 9 months ago (2017-03-06 07:53:18 UTC) #10
commit-bot: I haz the power
3 years, 9 months ago (2017-03-06 09:31:11 UTC) #13
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/1f9c453ba2dfb9dbf175486f64ce...

Powered by Google App Engine
This is Rietveld 408576698