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

Issue 563793002: Use conversion helpers in V8Binding.cpp for [Clamp] method arguments (Closed)

Created:
6 years, 3 months ago by Jens Widell
Modified:
6 years, 3 months ago
Reviewers:
haraken, sof
CC:
blink-reviews, blink-reviews-bindings_chromium.org, arv+blink, abarth-chromium
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Use conversion helpers in V8Binding.cpp for [Clamp] method arguments There was custom generated code specifically for handling arguments with [Clamp], which is quite unnecessary since the toUInt*() have an integer conversion configuration parameter that among other things can be used to request clamping. Related: Fix the somewhat broken handling the |Clamp| integer conversion configuration in the toUInt*() helpers. An optimization code path for the case that the V8 value is an int32 forgot to do clamping, there was no clamping at all in toUInt64(), and +/- Infinity was converted to zero instead of being clamped. Clamping support is not added to toInt64(), since the clampTo<> helper in Source/wtf/MathExtras.h explicitly doesn't support |long long int|, which is int64_t on some platforms. BUG=413257 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=181882

Patch Set 1 #

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+57 lines, -53 lines) Patch
M Source/bindings/core/v8/V8Binding.cpp View 1 11 chunks +50 lines, -20 lines 0 comments Download
M Source/bindings/scripts/v8_methods.py View 3 chunks +1 line, -4 lines 0 comments Download
M Source/bindings/scripts/v8_types.py View 1 chunk +2 lines, -0 lines 0 comments Download
M Source/bindings/templates/methods.cpp View 2 chunks +0 lines, -15 lines 0 comments Download
M Source/bindings/tests/results/core/V8TestObject.cpp View 2 chunks +4 lines, -14 lines 0 comments Download

Messages

Total messages: 13 (4 generated)
Jens Widell
PTAL I thought this would be a trivial clean-up, then ended up making more changes ...
6 years, 3 months ago (2014-09-11 14:34:30 UTC) #2
haraken
LGTM If it will take a bunch of more patches to remove v8::TryCatch from the ...
6 years, 3 months ago (2014-09-11 15:01:37 UTC) #3
Jens Widell
On 2014/09/11 15:01:37, haraken wrote: > If it will take a bunch of more patches ...
6 years, 3 months ago (2014-09-11 15:06:45 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/563793002/1
6 years, 3 months ago (2014-09-11 15:17:08 UTC) #6
commit-bot: I haz the power
Try jobs failed on following builders: mac_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/mac_gpu/builds/54678)
6 years, 3 months ago (2014-09-11 15:29:20 UTC) #8
Jens Widell
On 2014/09/11 15:29:20, I haz the power (commit-bot) wrote: > Try jobs failed on following ...
6 years, 3 months ago (2014-09-12 05:45:39 UTC) #9
haraken
Still LGTM
6 years, 3 months ago (2014-09-12 06:30:45 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/563793002/20001
6 years, 3 months ago (2014-09-12 06:49:59 UTC) #12
commit-bot: I haz the power
6 years, 3 months ago (2014-09-12 06:56:25 UTC) #13
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as 181882

Powered by Google App Engine
This is Rietveld 408576698