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

Side by Side Diff: runtime/vm/object_store.cc

Issue 22638011: Move Null class out of the VM isolate. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "vm/object_store.h" 5 #include "vm/object_store.h"
6 6
7 #include "vm/exceptions.h" 7 #include "vm/exceptions.h"
8 #include "vm/dart_entry.h" 8 #include "vm/dart_entry.h"
9 #include "vm/isolate.h" 9 #include "vm/isolate.h"
10 #include "vm/object.h" 10 #include "vm/object.h"
11 #include "vm/raw_object.h" 11 #include "vm/raw_object.h"
12 #include "vm/symbols.h" 12 #include "vm/symbols.h"
13 #include "vm/visitor.h" 13 #include "vm/visitor.h"
14 14
15 namespace dart { 15 namespace dart {
16 16
17 ObjectStore::ObjectStore() 17 ObjectStore::ObjectStore()
18 : object_class_(Class::null()), 18 : object_class_(Class::null()),
19 object_type_(Type::null()), 19 object_type_(Type::null()),
20 null_class_(Class::null()),
20 null_type_(Type::null()), 21 null_type_(Type::null()),
21 dynamic_type_(Type::null()), 22 dynamic_type_(Type::null()),
22 void_type_(Type::null()), 23 void_type_(Type::null()),
23 function_type_(Type::null()), 24 function_type_(Type::null()),
24 type_class_(Class::null()), 25 type_class_(Class::null()),
25 number_type_(Type::null()), 26 number_type_(Type::null()),
26 int_type_(Type::null()), 27 int_type_(Type::null()),
27 integer_implementation_class_(Class::null()), 28 integer_implementation_class_(Class::null()),
28 smi_class_(Class::null()), 29 smi_class_(Class::null()),
29 mint_class_(Class::null()), 30 mint_class_(Class::null()),
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 void ObjectStore::InitKeywordTable() { 145 void ObjectStore::InitKeywordTable() {
145 // Set up the keywords symbol array so that we can access it while scanning. 146 // Set up the keywords symbol array so that we can access it while scanning.
146 Array& keywords = Array::Handle(keyword_symbols()); 147 Array& keywords = Array::Handle(keyword_symbols());
147 ASSERT(keywords.IsNull()); 148 ASSERT(keywords.IsNull());
148 keywords = Array::New(Token::numKeywords, Heap::kOld); 149 keywords = Array::New(Token::numKeywords, Heap::kOld);
149 ASSERT(!keywords.IsError() && !keywords.IsNull()); 150 ASSERT(!keywords.IsError() && !keywords.IsNull());
150 set_keyword_symbols(keywords); 151 set_keyword_symbols(keywords);
151 } 152 }
152 153
153 } // namespace dart 154 } // namespace dart
OLDNEW
« runtime/vm/object.cc ('K') | « runtime/vm/object_store.h ('k') | runtime/vm/raw_object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698