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

Issue 2863493002: Support BottomType in the VM Kernel reader (Closed)

Created:
3 years, 7 months ago by Kevin Millikin (Google)
Modified:
3 years, 7 months ago
Reviewers:
Leaf, Paul Berry, regis
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Support BottomType in the VM Kernel reader Implement the boilerplate necessary to support BottomType. In the VM we use the type Null. BUG= R=paulberry@google.com Committed: https://github.com/dart-lang/sdk/commit/f13bcbcab6a9ae1120eaed176c9be2854e7664a4

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+48 lines, -0 lines) Patch
M runtime/vm/kernel.h View 3 chunks +20 lines, -0 lines 0 comments Download
M runtime/vm/kernel.cc View 1 chunk +11 lines, -0 lines 0 comments Download
M runtime/vm/kernel_binary.h View 1 chunk +1 line, -0 lines 0 comments Download
M runtime/vm/kernel_binary.cc View 2 chunks +8 lines, -0 lines 0 comments Download
M runtime/vm/kernel_to_il.h View 1 chunk +2 lines, -0 lines 0 comments Download
M runtime/vm/kernel_to_il.cc View 1 chunk +6 lines, -0 lines 2 comments Download

Messages

Total messages: 8 (2 generated)
Kevin Millikin (Google)
https://codereview.chromium.org/2863493002/diff/1/runtime/vm/kernel_to_il.cc File runtime/vm/kernel_to_il.cc (right): https://codereview.chromium.org/2863493002/diff/1/runtime/vm/kernel_to_il.cc#newcode4848 runtime/vm/kernel_to_il.cc:4848: dart::Class::Handle(Z, I->object_store()->null_class()).CanonicalType(); This is the only interesting code. Is ...
3 years, 7 months ago (2017-05-03 21:01:06 UTC) #2
Paul Berry
lgtm I'm not sure if equating Bottom == Null in the VM is the behavior ...
3 years, 7 months ago (2017-05-03 21:12:48 UTC) #3
Kevin Millikin (Google)
Committed patchset #1 (id:1) manually as f13bcbcab6a9ae1120eaed176c9be2854e7664a4 (presubmit successful).
3 years, 7 months ago (2017-05-03 21:17:41 UTC) #5
regis
The VM already handles Null as the bottom type, but not when it is the ...
3 years, 7 months ago (2017-05-04 09:35:10 UTC) #6
Paul Berry
On 2017/05/04 09:35:10, regis wrote: > The VM already handles Null as the bottom type, ...
3 years, 7 months ago (2017-05-04 15:49:45 UTC) #7
regis
3 years, 7 months ago (2017-05-04 16:38:43 UTC) #8
Message was sent while issue was closed.
On 2017/05/04 15:49:45, Paul Berry wrote:
> On 2017/05/04 09:35:10, regis wrote:
> > The VM already handles Null as the bottom type, but not when it is the type
of
> > an instance in an instanceof test. In other words, the null instance is
still
> > only an instance of Null, Object, and dynamic.
> > 
> > For details, see the cl moving Null to the bottom in the VM:
> > https://mail.google.com/mail/u/0/#search/regis+bottom/15966723b66a866f
> 
> That link just takes me to my own gmail.  Could you give us a link to
> http://codereview.chromium.org, or the SHA of a git commit?
> 
> Thanks,
> Paul

Sorry for pasting the wrong link. Here is the cl:
https://codereview.chromium.org/2608373002/

Powered by Google App Engine
This is Rietveld 408576698