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

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

Issue 11085003: Convert String to a class. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Remove left-over List change in comment. Created 8 years, 2 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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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/isolate.h" 8 #include "vm/isolate.h"
9 #include "vm/object.h" 9 #include "vm/object.h"
10 #include "vm/raw_object.h" 10 #include "vm/raw_object.h"
11 #include "vm/visitor.h" 11 #include "vm/visitor.h"
12 12
13 namespace dart { 13 namespace dart {
14 14
15 ObjectStore::ObjectStore() 15 ObjectStore::ObjectStore()
16 : object_class_(Class::null()), 16 : object_class_(Class::null()),
17 object_type_(Type::null()), 17 object_type_(Type::null()),
18 null_type_(Type::null()), 18 null_type_(Type::null()),
19 dynamic_type_(Type::null()), 19 dynamic_type_(Type::null()),
20 void_type_(Type::null()), 20 void_type_(Type::null()),
21 function_type_(Type::null()), 21 function_type_(Type::null()),
22 type_class_(Class::null()), 22 type_class_(Class::null()),
23 number_type_(Type::null()), 23 number_type_(Type::null()),
24 int_type_(Type::null()), 24 int_type_(Type::null()),
25 integer_implementation_class_(Class::null()), 25 integer_implementation_class_(Class::null()),
26 smi_class_(Class::null()), 26 smi_class_(Class::null()),
27 mint_class_(Class::null()), 27 mint_class_(Class::null()),
28 bigint_class_(Class::null()), 28 bigint_class_(Class::null()),
29 double_class_(Class::null()), 29 double_class_(Class::null()),
30 string_interface_(Type::null()), 30 string_type_(Type::null()),
31 one_byte_string_class_(Class::null()), 31 one_byte_string_class_(Class::null()),
32 two_byte_string_class_(Class::null()), 32 two_byte_string_class_(Class::null()),
33 four_byte_string_class_(Class::null()), 33 four_byte_string_class_(Class::null()),
34 external_one_byte_string_class_(Class::null()), 34 external_one_byte_string_class_(Class::null()),
35 external_two_byte_string_class_(Class::null()), 35 external_two_byte_string_class_(Class::null()),
36 external_four_byte_string_class_(Class::null()), 36 external_four_byte_string_class_(Class::null()),
37 bool_type_(Type::null()), 37 bool_type_(Type::null()),
38 bool_class_(Class::null()), 38 bool_class_(Class::null()),
39 list_interface_(Type::null()), 39 list_interface_(Type::null()),
40 array_class_(Class::null()), 40 array_class_(Class::null()),
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 void ObjectStore::InitKeywordTable() { 133 void ObjectStore::InitKeywordTable() {
134 // Set up the keywords symbol array so that we can access it while scanning. 134 // Set up the keywords symbol array so that we can access it while scanning.
135 Array& keywords = Array::Handle(keyword_symbols()); 135 Array& keywords = Array::Handle(keyword_symbols());
136 ASSERT(keywords.IsNull()); 136 ASSERT(keywords.IsNull());
137 keywords = Array::New(Token::numKeywords, Heap::kOld); 137 keywords = Array::New(Token::numKeywords, Heap::kOld);
138 ASSERT(!keywords.IsError() && !keywords.IsNull()); 138 ASSERT(!keywords.IsError() && !keywords.IsNull());
139 set_keyword_symbols(keywords); 139 set_keyword_symbols(keywords);
140 } 140 }
141 141
142 } // namespace dart 142 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698