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

Issue 8664015: Update function type checking in VM after spec change (issue 444): (Closed)

Created:
9 years ago by regis
Modified:
9 years ago
Reviewers:
srdjan
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Update function type checking in VM after spec change (issue 444): - the return types must be covariant or contravariant (an earlier version of the guide specified contravariance only). - the names of optional parameters must match in the same order (an earlier version of the spec specified that any subset was allowed, no order required). Committed: https://code.google.com/p/dart/source/detail?r=1898

Patch Set 1 #

Total comments: 8

Patch Set 2 : '' #

Patch Set 3 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+79 lines, -135 lines) Patch
M runtime/vm/object.h View 1 2 1 chunk +8 lines, -0 lines 0 comments Download
M runtime/vm/object.cc View 1 2 3 chunks +66 lines, -119 lines 0 comments Download
M tests/co19/co19-runtime.status View 1 2 2 chunks +5 lines, -16 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
regis
9 years ago (2011-11-29 00:29:11 UTC) #1
srdjan
LGTM with comments http://codereview.chromium.org/8664015/diff/1/runtime/vm/object.cc File runtime/vm/object.cc (right): http://codereview.chromium.org/8664015/diff/1/runtime/vm/object.cc#newcode2933 runtime/vm/object.cc:2933: if (ParameterNameAt(i) != other.ParameterNameAt(i)) { This ...
9 years ago (2011-11-29 01:01:59 UTC) #2
regis
Thanks! http://codereview.chromium.org/8664015/diff/1/runtime/vm/object.cc File runtime/vm/object.cc (right): http://codereview.chromium.org/8664015/diff/1/runtime/vm/object.cc#newcode2933 runtime/vm/object.cc:2933: if (ParameterNameAt(i) != other.ParameterNameAt(i)) { On 2011/11/29 01:01:59, ...
9 years ago (2011-11-29 01:48:21 UTC) #3
ahe
DBC: just a minor nit in the description. The guide said that the return type ...
9 years ago (2011-11-29 17:38:48 UTC) #4
regis
9 years ago (2011-11-29 17:44:28 UTC) #5
On 2011/11/29 17:38:48, ahe wrote:
> DBC: just a minor nit in the description. The guide said that the return type
is
> covariant, not contravariant.

Indeed. I stand corrected.
Thanks.

Powered by Google App Engine
This is Rietveld 408576698