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

Issue 390223004: initialize result variables in v8 bindings (Closed)

Created:
6 years, 5 months ago by Mostyn Bramley-Moore
Modified:
6 years, 5 months ago
Reviewers:
haraken, Jens Widell
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

initialize result variables in v8 bindings https://codereview.chromium.org/360703003 and https://codereview.chromium.org/362993004 can falsely trigger use of uninitialized variable warnings in some toolchains, for integer "return" variables. Let's explicitly initialize these variables. BUG=341031 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=178263

Patch Set 1 #

Total comments: 1

Patch Set 2 : v2 based on comments #

Total comments: 9

Patch Set 3 : more refinements #

Total comments: 4

Patch Set 4 : fixups for jens #

Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -6 lines) Patch
M Source/bindings/scripts/idl_types.py View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M Source/bindings/scripts/v8_attributes.py View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M Source/bindings/scripts/v8_methods.py View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M Source/bindings/scripts/v8_types.py View 1 2 3 1 chunk +20 lines, -0 lines 0 comments Download
M Source/bindings/templates/attributes.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/templates/methods.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/tests/results/V8TestObject.cpp View 1 2 4 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 24 (0 generated)
Mostyn Bramley-Moore
@haraken: PTAL at this small change.
6 years, 5 months ago (2014-07-14 23:40:40 UTC) #1
haraken
Does this apply to only int variables? What about unsigned, double etc?
6 years, 5 months ago (2014-07-15 00:58:02 UTC) #2
Mostyn Bramley-Moore
On 2014/07/15 00:58:02, haraken wrote: > Does this apply to only int variables? What about ...
6 years, 5 months ago (2014-07-15 06:02:50 UTC) #3
Jens Widell
On 2014/07/15 06:02:50, Mostyn Bramley-Moore wrote: > On 2014/07/15 00:58:02, haraken wrote: > > Does ...
6 years, 5 months ago (2014-07-15 14:31:56 UTC) #4
haraken
I'm sorry for the late reply... missed the email. https://codereview.chromium.org/390223004/diff/1/Source/bindings/templates/methods.cpp File Source/bindings/templates/methods.cpp (right): https://codereview.chromium.org/390223004/diff/1/Source/bindings/templates/methods.cpp#newcode250 Source/bindings/templates/methods.cpp:250: ...
6 years, 5 months ago (2014-07-15 15:13:25 UTC) #5
Jens Widell
On 2014/07/15 15:13:25, haraken wrote: > I'm sorry for the late reply... missed the email. ...
6 years, 5 months ago (2014-07-15 15:50:29 UTC) #6
haraken
On 2014/07/15 15:50:29, Jens Lindström wrote: > On 2014/07/15 15:13:25, haraken wrote: > > I'm ...
6 years, 5 months ago (2014-07-15 15:52:44 UTC) #7
Jens Widell
On 2014/07/15 15:52:44, haraken wrote: > On 2014/07/15 15:50:29, Jens Lindström wrote: > > On ...
6 years, 5 months ago (2014-07-15 15:57:16 UTC) #8
haraken
> > > > Can we add method.cpp_type_default_value and use it here? I think you ...
6 years, 5 months ago (2014-07-15 15:59:09 UTC) #9
Mostyn Bramley-Moore
OK, I will give these suggestions a try a bit later this evening.
6 years, 5 months ago (2014-07-15 16:08:09 UTC) #10
Mostyn Bramley-Moore
Patchset 2 should be a bit more understandable.
6 years, 5 months ago (2014-07-15 22:47:40 UTC) #11
haraken
https://codereview.chromium.org/390223004/diff/20001/Source/bindings/scripts/v8_types.py File Source/bindings/scripts/v8_types.py (right): https://codereview.chromium.org/390223004/diff/20001/Source/bindings/scripts/v8_types.py#newcode133 Source/bindings/scripts/v8_types.py:133: cpp_type in ('float', 'double') or Can't we use idl_type.is_numeric_type() ...
6 years, 5 months ago (2014-07-16 00:54:02 UTC) #12
Jens Widell
https://codereview.chromium.org/390223004/diff/20001/Source/bindings/scripts/v8_types.py File Source/bindings/scripts/v8_types.py (right): https://codereview.chromium.org/390223004/diff/20001/Source/bindings/scripts/v8_types.py#newcode134 Source/bindings/scripts/v8_types.py:134: cpp_type.endswith('*')): On 2014/07/16 00:54:02, haraken wrote: > > Can ...
6 years, 5 months ago (2014-07-16 07:00:54 UTC) #13
Mostyn Bramley-Moore
Patchset 3 has the suggested refinements. https://codereview.chromium.org/390223004/diff/20001/Source/bindings/scripts/v8_types.py File Source/bindings/scripts/v8_types.py (right): https://codereview.chromium.org/390223004/diff/20001/Source/bindings/scripts/v8_types.py#newcode133 Source/bindings/scripts/v8_types.py:133: cpp_type in ('float', ...
6 years, 5 months ago (2014-07-16 07:15:20 UTC) #14
Jens Widell
https://codereview.chromium.org/390223004/diff/40001/Source/bindings/scripts/v8_types.py File Source/bindings/scripts/v8_types.py (right): https://codereview.chromium.org/390223004/diff/40001/Source/bindings/scripts/v8_types.py#newcode134 Source/bindings/scripts/v8_types.py:134: return '' Return None by default? https://codereview.chromium.org/390223004/diff/40001/Source/bindings/scripts/v8_types.py#newcode135 Source/bindings/scripts/v8_types.py:135: Two ...
6 years, 5 months ago (2014-07-16 07:25:10 UTC) #15
Mostyn Bramley-Moore
https://codereview.chromium.org/390223004/diff/40001/Source/bindings/scripts/v8_types.py File Source/bindings/scripts/v8_types.py (right): https://codereview.chromium.org/390223004/diff/40001/Source/bindings/scripts/v8_types.py#newcode134 Source/bindings/scripts/v8_types.py:134: return '' On 2014/07/16 07:25:10, Jens Lindström wrote: > ...
6 years, 5 months ago (2014-07-16 07:46:56 UTC) #16
Jens Widell
LGTM. (Non-owner.)
6 years, 5 months ago (2014-07-16 07:52:34 UTC) #17
Mostyn Bramley-Moore
The CQ bit was checked by mostynb@opera.com
6 years, 5 months ago (2014-07-16 08:04:01 UTC) #18
Mostyn Bramley-Moore
The CQ bit was unchecked by mostynb@opera.com
6 years, 5 months ago (2014-07-16 08:04:03 UTC) #19
haraken
LGTM
6 years, 5 months ago (2014-07-16 08:15:02 UTC) #20
Mostyn Bramley-Moore
The CQ bit was checked by mostynb@opera.com
6 years, 5 months ago (2014-07-16 08:16:25 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mostynb@opera.com/390223004/60001
6 years, 5 months ago (2014-07-16 08:17:56 UTC) #22
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_blink_dbg on tryserver.blink ...
6 years, 5 months ago (2014-07-16 09:49:18 UTC) #23
commit-bot: I haz the power
6 years, 5 months ago (2014-07-16 10:48:54 UTC) #24
Message was sent while issue was closed.
Change committed as 178263

Powered by Google App Engine
This is Rietveld 408576698