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

Issue 474063002: Mojo: add support for {double,float}.{INFINITY,NEGATIVE_INFINITY,NAN} (Closed)

Created:
6 years, 4 months ago by darin (slow to review)
Modified:
6 years, 3 months ago
Reviewers:
viettrungluu
CC:
chromium-reviews, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review), ben+mojo_chromium.org
Project:
chromium
Visibility:
Public.

Description

Mojo: add support for {double,float}.{INFINITY,NEGATIVE_INFINITY,NAN} With this change, it is possible to assign INFINITY, NEGATIVE_INFINITY or NAN as a default value for any double or float field. BUG=402216 Committed: https://crrev.com/d9f2bcd21b589f5b60f474cf0fbcf54420105266 Cr-Commit-Position: refs/heads/master@{#291864}

Patch Set 1 #

Total comments: 2

Patch Set 2 : update #

Patch Set 3 : fix test #

Total comments: 1

Patch Set 4 : revised #

Patch Set 5 : user defined types may shadow builtins #

Patch Set 6 : drop negative infinity since it appears to make visual studio unhappy #

Patch Set 7 : drop NaN since it also makes visual studio unhappy #

Patch Set 8 : workaround msvc silliness #

Patch Set 9 : bring back -inf and nan #

Patch Set 10 : further warning suppressions on windows #

Patch Set 11 : another windows fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+77 lines, -1 line) Patch
M mojo/public/interfaces/bindings/tests/sample_service.mojom View 1 2 3 4 5 6 7 8 2 chunks +15 lines, -0 lines 0 comments Download
M mojo/public/tools/bindings/generators/cpp_templates/module.cc.tmpl View 1 2 3 4 5 6 7 8 9 10 2 chunks +8 lines, -0 lines 0 comments Download
M mojo/public/tools/bindings/generators/mojom_cpp_generator.py View 1 2 3 6 7 8 1 chunk +10 lines, -0 lines 0 comments Download
M mojo/public/tools/bindings/generators/mojom_java_generator.py View 1 2 3 6 7 8 1 chunk +13 lines, -0 lines 0 comments Download
M mojo/public/tools/bindings/generators/mojom_js_generator.py View 1 2 3 6 7 8 1 chunk +10 lines, -0 lines 0 comments Download
M mojo/public/tools/bindings/pylib/mojom/generate/data.py View 1 2 3 4 5 6 7 8 2 chunks +16 lines, -1 line 0 comments Download
M mojo/public/tools/bindings/pylib/mojom/generate/module.py View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
darin (slow to review)
6 years, 4 months ago (2014-08-14 21:18:39 UTC) #1
viettrungluu
The way you're doing it also adds some possibility for confusion and/or ambiguity. E.g., there's ...
6 years, 4 months ago (2014-08-14 22:32:25 UTC) #2
viettrungluu
On 2014/08/14 22:32:25, viettrungluu wrote: > The way you're doing it also adds some possibility ...
6 years, 4 months ago (2014-08-14 22:36:01 UTC) #3
darin (slow to review)
On Thu, Aug 14, 2014 at 3:36 PM, <viettrungluu@chromium.org> wrote: > On 2014/08/14 22:32:25, viettrungluu ...
6 years, 4 months ago (2014-08-14 23:28:22 UTC) #4
viettrungluu
On 2014/08/14 23:28:22, darin wrote: > On Thu, Aug 14, 2014 at 3:36 PM, <mailto:viettrungluu@chromium.org> ...
6 years, 4 months ago (2014-08-15 00:42:26 UTC) #5
darin (slow to review)
double.POSITIVE_INFINITY, etc? On Aug 14, 2014 5:42 PM, <viettrungluu@chromium.org> wrote: > On 2014/08/14 23:28:22, darin ...
6 years, 4 months ago (2014-08-15 01:13:48 UTC) #6
viettrungluu
On 2014/08/15 01:13:48, darin wrote: > double.POSITIVE_INFINITY, etc? At first, I thought this was a ...
6 years, 4 months ago (2014-08-18 17:53:12 UTC) #7
darin (slow to review)
Now with double.INFINITY, etc. PTAL
6 years, 4 months ago (2014-08-20 22:25:16 UTC) #8
viettrungluu
https://codereview.chromium.org/474063002/diff/40001/mojo/public/tools/bindings/pylib/mojom/parse/parser.py File mojo/public/tools/bindings/pylib/mojom/parse/parser.py (right): https://codereview.chromium.org/474063002/diff/40001/mojo/public/tools/bindings/pylib/mojom/parse/parser.py#newcode322 mojo/public/tools/bindings/pylib/mojom/parse/parser.py:322: | identifier_wrapped""" If you didn't add a lexer token ...
6 years, 4 months ago (2014-08-21 16:42:19 UTC) #9
darin (slow to review)
Hmm, yes... I could do that! On Aug 21, 2014 9:42 AM, <viettrungluu@chromium.org> wrote: > ...
6 years, 4 months ago (2014-08-21 17:08:50 UTC) #10
darin (slow to review)
PTAL
6 years, 4 months ago (2014-08-22 21:45:49 UTC) #11
viettrungluu
lgtm
6 years, 4 months ago (2014-08-25 20:43:49 UTC) #12
darin (slow to review)
I gave up on negative infinity and NaN since they both cause visual studio fits. ...
6 years, 4 months ago (2014-08-25 23:57:56 UTC) #13
darin (slow to review)
The CQ bit was checked by darin@chromium.org
6 years, 4 months ago (2014-08-25 23:58:07 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/darin@chromium.org/474063002/120001
6 years, 4 months ago (2014-08-25 23:59:31 UTC) #15
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win8_chromium_rel on tryserver.chromium.win ...
6 years, 4 months ago (2014-08-26 01:54:42 UTC) #16
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-26 02:01:09 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: win8_chromium_rel on tryserver.chromium.win (http://build.chromium.org/p/tryserver.chromium.win/builders/win8_chromium_rel/builds/6282)
6 years, 4 months ago (2014-08-26 02:01:10 UTC) #18
darin (slow to review)
The CQ bit was checked by darin@chromium.org
6 years, 4 months ago (2014-08-26 06:21:18 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/darin@chromium.org/474063002/200001
6 years, 4 months ago (2014-08-26 06:22:50 UTC) #20
commit-bot: I haz the power
Committed patchset #11 (200001) as 718cbac44d133415cf3586ff536f61c985205fca
6 years, 4 months ago (2014-08-26 07:57:54 UTC) #21
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 02:41:19 UTC) #22
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/d9f2bcd21b589f5b60f474cf0fbcf54420105266
Cr-Commit-Position: refs/heads/master@{#291864}

Powered by Google App Engine
This is Rietveld 408576698