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

Issue 8592004: null is an instance of Dynamic (fix issue 443). (Closed)

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

Description

null is an instance of Dynamic (fix issue 443). Committed: https://code.google.com/p/dart/source/detail?r=1715

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -18 lines) Patch
M runtime/vm/code_generator.cc View 1 chunk +0 lines, -1 line 0 comments Download
M runtime/vm/code_generator_ia32.cc View 1 chunk +14 lines, -9 lines 2 comments Download
M runtime/vm/object.cc View 1 chunk +12 lines, -7 lines 0 comments Download
M tests/co19/co19-runtime.status View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 4 (0 generated)
regis
9 years, 1 month ago (2011-11-21 19:25:37 UTC) #1
hausner
lgtm
9 years, 1 month ago (2011-11-21 19:33:36 UTC) #2
srdjan
DBC http://codereview.chromium.org/8592004/diff/1/runtime/vm/code_generator_ia32.cc File runtime/vm/code_generator_ia32.cc (right): http://codereview.chromium.org/8592004/diff/1/runtime/vm/code_generator_ia32.cc#newcode1409 runtime/vm/code_generator_ia32.cc:1409: // and Null type. It may be simpler ...
9 years, 1 month ago (2011-11-21 19:37:08 UTC) #3
regis
9 years, 1 month ago (2011-11-21 19:53:31 UTC) #4
Thanks for the feedback.

http://codereview.chromium.org/8592004/diff/1/runtime/vm/code_generator_ia32.cc
File runtime/vm/code_generator_ia32.cc (right):

http://codereview.chromium.org/8592004/diff/1/runtime/vm/code_generator_ia32....
runtime/vm/code_generator_ia32.cc:1409: // and Null type.
On 2011/11/21 19:37:08, srdjan wrote:
> It may be simpler to explain this in positive formulation:
> "A null type is only an instance of Object, Dynamic or Null type."
> Can we ever see a Null type here?
> 
> The case for "null is Object" is handled above, isn't it? Maybe add a comment.

I'll remove the mention of Null type, since it is only a VM internal type that
cannot be seen by the user.

The cases for "null is Object" and for "null is Dynamic" are only handled above
if the other type (Object or Dynamic) is instantiated.

I'll add a comment in my next cl.

Powered by Google App Engine
This is Rietveld 408576698