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

Issue 1011093002: [bindings] Pass NormalConversion to to[U]Int{8/16/32/64}(...) in v8_types.py and reduce conversion … (Closed)

Created:
5 years, 9 months ago by vivekg_samsung
Modified:
5 years, 9 months ago
Reviewers:
haraken, vivekg, Jens Widell
CC:
arv+blink, blink-reviews, blink-reviews-bindings_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

[bindings] Pass NormalConversion to to[U]Int{8/16/32/64}(...) in v8_types.py and reduce conversion routines. There exist multiple routines toXXX(...) for integers of various sizes i.e. 8, 16, 32 and 64. These also include both signed and unsigned versions. These are mostly redirecting to each other for the final conversion. Instead of this redirection, if we could pass the 'NormalConversion' as parameter to these methods, most of the redundant redirections can be avoided. R=haraken@chromium.org, jl@opera.com Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=192063

Patch Set 1 #

Total comments: 1

Patch Set 2 : Review comments #

Total comments: 2

Patch Set 3 : Patch for landing. #

Total comments: 2

Patch Set 4 : Patch for landing. #

Total comments: 2

Patch Set 5 : Patch for landing after review comments! :) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+163 lines, -269 lines) Patch
M Source/bindings/core/v8/PrivateScriptRunner.cpp View 1 2 3 4 1 chunk +3 lines, -1 line 0 comments Download
M Source/bindings/core/v8/V8Binding.h View 7 chunks +5 lines, -70 lines 0 comments Download
M Source/bindings/core/v8/V8Binding.cpp View 5 chunks +0 lines, -48 lines 0 comments Download
M Source/bindings/core/v8/V8BindingTest.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/bindings/core/v8/custom/V8BlobCustomHelpers.cpp View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M Source/bindings/scripts/v8_types.py View 1 1 chunk +7 lines, -4 lines 0 comments Download
M Source/bindings/tests/results/core/UnionTypesCore.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/bindings/tests/results/core/V8TestDictionary.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/tests/results/core/V8TestInterface.cpp View 12 chunks +12 lines, -12 lines 0 comments Download
M Source/bindings/tests/results/core/V8TestInterface2.cpp View 3 chunks +3 lines, -3 lines 0 comments Download
M Source/bindings/tests/results/core/V8TestInterfaceCheckSecurity.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/bindings/tests/results/core/V8TestInterfaceConstructor2.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/tests/results/core/V8TestInterfaceNamedConstructor.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/tests/results/core/V8TestObject.cpp View 108 chunks +116 lines, -116 lines 0 comments Download
M Source/bindings/tests/results/core/V8TestTypedefs.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/tests/results/modules/V8TestInterface5.cpp View 3 chunks +3 lines, -3 lines 0 comments Download
M Source/bindings/tests/results/modules/V8TestInterfacePartial.cpp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 31 (5 generated)
vivekg
PTAL, thanks.
5 years, 9 months ago (2015-03-17 11:19:20 UTC) #2
Jens Widell
https://codereview.chromium.org/1011093002/diff/1/Source/bindings/scripts/v8_types.py File Source/bindings/scripts/v8_types.py (right): https://codereview.chromium.org/1011093002/diff/1/Source/bindings/scripts/v8_types.py#newcode549 Source/bindings/scripts/v8_types.py:549: if idl_type.is_integer_type: The preceding two cases, EnforceRange and Clamp, ...
5 years, 9 months ago (2015-03-17 11:28:22 UTC) #3
vivekg
On 2015/03/17 at 11:28:22, jl wrote: > https://codereview.chromium.org/1011093002/diff/1/Source/bindings/scripts/v8_types.py > File Source/bindings/scripts/v8_types.py (right): > > https://codereview.chromium.org/1011093002/diff/1/Source/bindings/scripts/v8_types.py#newcode549 ...
5 years, 9 months ago (2015-03-17 11:36:22 UTC) #4
Jens Widell
On 2015/03/17 11:36:22, vivekg_ wrote: > On 2015/03/17 at 11:28:22, jl wrote: > > > ...
5 years, 9 months ago (2015-03-17 11:37:35 UTC) #5
vivekg
On 2015/03/17 at 11:37:35, jl wrote: > On 2015/03/17 11:36:22, vivekg_ wrote: > > On ...
5 years, 9 months ago (2015-03-17 11:40:09 UTC) #6
Jens Widell
LGTM
5 years, 9 months ago (2015-03-17 11:42:50 UTC) #7
vivekg
On 2015/03/17 at 11:42:50, jl wrote: > LGTM Thank you. The gn bots are red ...
5 years, 9 months ago (2015-03-17 11:50:33 UTC) #8
Jens Widell
On 2015/03/17 11:50:33, vivekg_ wrote: > On 2015/03/17 at 11:42:50, jl wrote: > > LGTM ...
5 years, 9 months ago (2015-03-17 12:00:07 UTC) #9
vivekg
On 2015/03/17 at 12:00:07, jl wrote: > On 2015/03/17 11:50:33, vivekg_ wrote: > > On ...
5 years, 9 months ago (2015-03-17 12:12:53 UTC) #10
Jens Widell
On 2015/03/17 12:12:53, vivekg_ wrote: > On 2015/03/17 at 12:00:07, jl wrote: > > On ...
5 years, 9 months ago (2015-03-17 12:13:39 UTC) #11
vivekg
On 2015/03/17 at 12:13:39, jl wrote: > On 2015/03/17 12:12:53, vivekg_ wrote: > > On ...
5 years, 9 months ago (2015-03-17 12:15:44 UTC) #12
haraken
https://codereview.chromium.org/1011093002/diff/20001/Source/bindings/core/v8/PrivateScriptRunner.cpp File Source/bindings/core/v8/PrivateScriptRunner.cpp (right): https://codereview.chromium.org/1011093002/diff/20001/Source/bindings/core/v8/PrivateScriptRunner.cpp#newcode246 Source/bindings/core/v8/PrivateScriptRunner.cpp:246: exceptionState.throwDOMException(toInt32(isolate, code, NormalConversion, nonThrowableExceptionState), messageString); Why can't we use ...
5 years, 9 months ago (2015-03-17 15:08:12 UTC) #13
vivekg
On 2015/03/17 at 15:08:12, haraken wrote: > https://codereview.chromium.org/1011093002/diff/20001/Source/bindings/core/v8/PrivateScriptRunner.cpp > File Source/bindings/core/v8/PrivateScriptRunner.cpp (right): > > https://codereview.chromium.org/1011093002/diff/20001/Source/bindings/core/v8/PrivateScriptRunner.cpp#newcode246 ...
5 years, 9 months ago (2015-03-17 16:47:18 UTC) #16
haraken
https://codereview.chromium.org/1011093002/diff/70001/Source/bindings/core/v8/custom/V8BlobCustomHelpers.cpp File Source/bindings/core/v8/custom/V8BlobCustomHelpers.cpp (right): https://codereview.chromium.org/1011093002/diff/70001/Source/bindings/core/v8/custom/V8BlobCustomHelpers.cpp#newcode101 Source/bindings/core/v8/custom/V8BlobCustomHelpers.cpp:101: TONATIVE_DEFAULT(long long, lastModifiedInt, toInt64(isolate, lastModified, NormalConversion, exceptionState), false); If ...
5 years, 9 months ago (2015-03-17 17:19:03 UTC) #17
Jens Widell
https://codereview.chromium.org/1011093002/diff/70001/Source/bindings/core/v8/custom/V8BlobCustomHelpers.cpp File Source/bindings/core/v8/custom/V8BlobCustomHelpers.cpp (right): https://codereview.chromium.org/1011093002/diff/70001/Source/bindings/core/v8/custom/V8BlobCustomHelpers.cpp#newcode101 Source/bindings/core/v8/custom/V8BlobCustomHelpers.cpp:101: TONATIVE_DEFAULT(long long, lastModifiedInt, toInt64(isolate, lastModified, NormalConversion, exceptionState), false); On ...
5 years, 9 months ago (2015-03-17 17:25:00 UTC) #18
vivekg
On 2015/03/17 at 17:25:00, jl wrote: > https://codereview.chromium.org/1011093002/diff/70001/Source/bindings/core/v8/custom/V8BlobCustomHelpers.cpp > File Source/bindings/core/v8/custom/V8BlobCustomHelpers.cpp (right): > > https://codereview.chromium.org/1011093002/diff/70001/Source/bindings/core/v8/custom/V8BlobCustomHelpers.cpp#newcode101 ...
5 years, 9 months ago (2015-03-17 17:54:43 UTC) #19
Jens Widell
LGTM
5 years, 9 months ago (2015-03-17 17:56:33 UTC) #20
Jens Widell
https://codereview.chromium.org/1011093002/diff/90001/Source/bindings/core/v8/PrivateScriptRunner.cpp File Source/bindings/core/v8/PrivateScriptRunner.cpp (right): https://codereview.chromium.org/1011093002/diff/90001/Source/bindings/core/v8/PrivateScriptRunner.cpp#newcode245 Source/bindings/core/v8/PrivateScriptRunner.cpp:245: exceptionState.throwDOMException(toInt32(isolate, code, NormalConversion, exceptionState), messageString); Actually, technically it's wrong ...
5 years, 9 months ago (2015-03-17 18:03:14 UTC) #21
vivekg_samsung
On 2015/03/17 18:03:14, Jens Widell wrote: > https://codereview.chromium.org/1011093002/diff/90001/Source/bindings/core/v8/PrivateScriptRunner.cpp > File Source/bindings/core/v8/PrivateScriptRunner.cpp (right): > > https://codereview.chromium.org/1011093002/diff/90001/Source/bindings/core/v8/PrivateScriptRunner.cpp#newcode245 ...
5 years, 9 months ago (2015-03-17 18:10:04 UTC) #22
vivekg_samsung
On 2015/03/17 18:03:14, Jens Widell wrote: > https://codereview.chromium.org/1011093002/diff/90001/Source/bindings/core/v8/PrivateScriptRunner.cpp > File Source/bindings/core/v8/PrivateScriptRunner.cpp (right): > > https://codereview.chromium.org/1011093002/diff/90001/Source/bindings/core/v8/PrivateScriptRunner.cpp#newcode245 ...
5 years, 9 months ago (2015-03-17 18:10:04 UTC) #23
Jens Widell
On 2015/03/17 18:10:04, vivekg wrote: > On 2015/03/17 18:03:14, Jens Widell wrote: > > > ...
5 years, 9 months ago (2015-03-17 18:11:30 UTC) #24
haraken
LGTM https://codereview.chromium.org/1011093002/diff/90001/Source/bindings/core/v8/PrivateScriptRunner.cpp File Source/bindings/core/v8/PrivateScriptRunner.cpp (right): https://codereview.chromium.org/1011093002/diff/90001/Source/bindings/core/v8/PrivateScriptRunner.cpp#newcode245 Source/bindings/core/v8/PrivateScriptRunner.cpp:245: exceptionState.throwDOMException(toInt32(isolate, code, NormalConversion, exceptionState), messageString); On 2015/03/17 18:03:13, ...
5 years, 9 months ago (2015-03-18 01:23:13 UTC) #25
vivekg_samsung
On 2015/03/18 01:23:13, haraken wrote: > LGTM > > https://codereview.chromium.org/1011093002/diff/90001/Source/bindings/core/v8/PrivateScriptRunner.cpp > File Source/bindings/core/v8/PrivateScriptRunner.cpp (right): > ...
5 years, 9 months ago (2015-03-18 02:34:17 UTC) #26
haraken
LGTM
5 years, 9 months ago (2015-03-18 02:37:40 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1011093002/110001
5 years, 9 months ago (2015-03-18 02:41:49 UTC) #30
commit-bot: I haz the power
5 years, 9 months ago (2015-03-18 05:52:09 UTC) #31
Message was sent while issue was closed.
Committed patchset #5 (id:110001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=192063

Powered by Google App Engine
This is Rietveld 408576698