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

Issue 12218082: - Remove redundant type parameters for internal data. (Closed)

Created:
7 years, 10 months ago by Ivan Posva
Modified:
7 years, 10 months ago
Reviewers:
siva
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

- Remove redundant type parameters for internal data. Committed: https://code.google.com/p/dart/source/detail?r=18287

Patch Set 1 #

Total comments: 9
Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -13 lines) Patch
M lib/growable_array.dart View 4 chunks +5 lines, -5 lines 4 comments Download
M vm/intrinsifier.h View 1 chunk +2 lines, -2 lines 0 comments Download
M vm/object.h View 1 chunk +0 lines, -3 lines 3 comments Download
M vm/object.cc View 1 chunk +0 lines, -3 lines 2 comments Download

Messages

Total messages: 4 (0 generated)
Ivan Posva
7 years, 10 months ago (2013-02-08 22:55:55 UTC) #1
siva
lgtm https://chromiumcodereview.appspot.com/12218082/diff/1/lib/growable_array.dart File lib/growable_array.dart (right): https://chromiumcodereview.appspot.com/12218082/diff/1/lib/growable_array.dart#newcode13 lib/growable_array.dart:13: T result = this[index]; can this just be: ...
7 years, 10 months ago (2013-02-08 23:13:34 UTC) #2
Ivan Posva
https://chromiumcodereview.appspot.com/12218082/diff/1/lib/growable_array.dart File lib/growable_array.dart (right): https://chromiumcodereview.appspot.com/12218082/diff/1/lib/growable_array.dart#newcode13 lib/growable_array.dart:13: T result = this[index]; On 2013/02/08 23:13:34, siva wrote: ...
7 years, 10 months ago (2013-02-08 23:27:32 UTC) #3
siva
7 years, 10 months ago (2013-02-08 23:32:28 UTC) #4
Message was sent while issue was closed.
https://chromiumcodereview.appspot.com/12218082/diff/1/vm/object.h
File vm/object.h (right):

https://chromiumcodereview.appspot.com/12218082/diff/1/vm/object.h#newcode4670
vm/object.h:4670: virtual RawAbstractTypeArguments* GetTypeArguments() const {
I disagree, if the data is irrelevant then that field should not be there (have
a different representation for the backing store which is more tedious) or if we
have it then make it a sane value so that we know what to expect when we are
debugging heap trashes or some similar nasty bug.


On 2013/02/08 23:27:32, Ivan Posva wrote:
> On 2013/02/08 23:13:34, siva wrote:
> > Should we assert here that
> > Array::Handle(data()).GetTypeArguments()
> > is null now.
> > (we don't want some random type being set here).
> 
> Actually we don't and shouldn't care about the type being set on the backing
> store.

Powered by Google App Engine
This is Rietveld 408576698