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

Issue 22638011: Move Null class out of the VM isolate. (Closed)

Created:
7 years, 4 months ago by rmacnak
Modified:
7 years, 4 months ago
Reviewers:
siva, Ivan Posva
CC:
reviews_dartlang.org, ahe, Michael Lippautz (Google)
Visibility:
Public.

Description

Move Null class out of the VM isolate. BUG=http://dartbug.com/12071 BUG=http://dartbug.com/12128 BUG=http://dartbug.com/12319 BUG=http://dartbug.com/12337 R=iposva@google.com Committed: https://code.google.com/p/dart/source/detail?r=25982

Patch Set 1 : #

Total comments: 5

Patch Set 2 : #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+52 lines, -24 lines) Patch
M runtime/vm/class_table.cc View 1 chunk +0 lines, -1 line 0 comments Download
M runtime/vm/dart_api_impl_test.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/object.h View 1 3 chunks +1 line, -5 lines 0 comments Download
M runtime/vm/object.cc View 1 7 chunks +35 lines, -11 lines 4 comments Download
M runtime/vm/object_store.h View 2 chunks +7 lines, -0 lines 0 comments Download
M runtime/vm/object_store.cc View 1 chunk +1 line, -0 lines 0 comments Download
M runtime/vm/raw_object.cc View 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/snapshot.cc View 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/snapshot_test.cc View 2 chunks +0 lines, -2 lines 0 comments Download
M tests/lib/lib.status View 1 1 chunk +0 lines, -1 line 0 comments Download
M tests/lib/mirrors/null_test.dart View 2 chunks +5 lines, -1 line 0 comments Download

Messages

Total messages: 5 (0 generated)
rmacnak
https://chromiumcodereview.appspot.com/22638011/diff/12001/runtime/vm/object.cc File runtime/vm/object.cc (right): https://chromiumcodereview.appspot.com/22638011/diff/12001/runtime/vm/object.cc#newcode422 runtime/vm/object.cc:422: // Allocate and initialize the sentinel values of Null ...
7 years, 4 months ago (2013-08-09 17:45:43 UTC) #1
Ivan Posva
LGTM -ip https://chromiumcodereview.appspot.com/22638011/diff/12001/runtime/vm/object.cc File runtime/vm/object.cc (right): https://chromiumcodereview.appspot.com/22638011/diff/12001/runtime/vm/object.cc#newcode1108 runtime/vm/object.cc:1108: // allocated, because the classes reside in ...
7 years, 4 months ago (2013-08-09 21:15:12 UTC) #2
rmacnak
Committed patchset #2 manually as r25982 (presubmit successful).
7 years, 4 months ago (2013-08-09 21:54:38 UTC) #3
siva
https://chromiumcodereview.appspot.com/22638011/diff/18001/runtime/vm/object.cc File runtime/vm/object.cc (right): https://chromiumcodereview.appspot.com/22638011/diff/18001/runtime/vm/object.cc#newcode1115 runtime/vm/object.cc:1115: // The class 'Null' is not register in the ...
7 years, 4 months ago (2013-08-10 00:43:34 UTC) #4
rmacnak
7 years, 4 months ago (2013-08-12 19:53:26 UTC) #5
Message was sent while issue was closed.
On 2013/08/10 00:43:34, siva wrote:
>
https://chromiumcodereview.appspot.com/22638011/diff/18001/runtime/vm/object.cc
> File runtime/vm/object.cc (right):
> 
>
https://chromiumcodereview.appspot.com/22638011/diff/18001/runtime/vm/object....
> runtime/vm/object.cc:1115: // The class 'Null' is not register in the class
> dictionary because it is not
> registered, the comment also doesn't seem correct.
> 
>
https://chromiumcodereview.appspot.com/22638011/diff/18001/runtime/vm/object....
> runtime/vm/object.cc:1120: // is a built-in identifier (this is wrong).
> Maybe you should add an issue to track this and add a TODO here.
> 
>
https://chromiumcodereview.appspot.com/22638011/diff/18001/runtime/vm/object....
> runtime/vm/object.cc:1126: // Consider removing when/if Null becomes an
ordinary
> class.
> I think this should also have an issue and a TODO (probably in sync with
comment
> above about Null class being added to the pending_classes list.
> 
>
https://chromiumcodereview.appspot.com/22638011/diff/18001/runtime/vm/object....
> runtime/vm/object.cc:10466: (type_class() ==
> Type::Handle(Type::NullType()).type_class());
> This has become an expensive operation now with the need to create
> a Handle inside of the function.
> 
> Wouldn't the NullType be always canonicalized and we could just compare the
type
> objects?

Addressed in https://codereview.chromium.org/22902002/.

Powered by Google App Engine
This is Rietveld 408576698