| Index: vm/object_store.cc
|
| ===================================================================
|
| --- vm/object_store.cc (revision 4719)
|
| +++ vm/object_store.cc (working copy)
|
| @@ -54,6 +54,7 @@
|
| empty_context_(Context::null()),
|
| stack_overflow_(Instance::null()),
|
| out_of_memory_(Instance::null()),
|
| + keyword_symbols_(Array::null()),
|
| preallocate_objects_called_(false) {
|
| }
|
|
|
| @@ -104,6 +105,16 @@
|
| }
|
|
|
|
|
| +void ObjectStore::InitKeywordTable() {
|
| + // Set up the keywords symbol array so that we can access it while scanning.
|
| + Array& keywords = Array::Handle(keyword_symbols());
|
| + ASSERT(keywords.IsNull());
|
| + keywords = Array::New(Token::numKeywords, Heap::kOld);
|
| + ASSERT(!keywords.IsError() && !keywords.IsNull());
|
| + set_keyword_symbols(keywords);
|
| +}
|
| +
|
| +
|
| RawClass* ObjectStore::GetClass(int index) {
|
| switch (index) {
|
| case kObjectClass: return object_class_;
|
|
|