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

Issue 333583003: VM: Remove explicit field initialization with null from library classes. (Closed)

Created:
6 years, 6 months ago by Florian Schneider
Modified:
6 years, 6 months ago
Reviewers:
Anders Johnsen, hausner
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

VM: Remove explicit field initialization with null from library classes. It is redundant since fields are implicitly null-initialized. R=ajohnsen@google.com Committed: https://code.google.com/p/dart/source/detail?r=37261

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -5 lines) Patch
M runtime/lib/collection_patch.dart View 2 chunks +2 lines, -3 lines 0 comments Download
M runtime/lib/string_buffer_patch.dart View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Florian Schneider
6 years, 6 months ago (2014-06-12 09:42:57 UTC) #1
Anders Johnsen
lgtm
6 years, 6 months ago (2014-06-12 10:47:52 UTC) #2
Florian Schneider
Committed patchset #1 manually as r37261 (presubmit successful).
6 years, 6 months ago (2014-06-12 10:59:25 UTC) #3
hausner
DBC: we would make the compiler drop these explicit initializations with null.
6 years, 6 months ago (2014-06-12 16:00:00 UTC) #4
hausner
s/would/could/
6 years, 6 months ago (2014-06-12 16:16:31 UTC) #5
Florian Schneider
6 years, 6 months ago (2014-06-13 07:34:20 UTC) #6
Message was sent while issue was closed.
On 2014/06/12 16:16:31, hausner wrote:
> s/would/could/

Yes, I agree. The allocation stub initializes all fields with null already, so
the explicit initializer is redundant.

Still, the library code should be as small as possible.

Powered by Google App Engine
This is Rietveld 408576698