| OLD | NEW |
| 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.h" | 5 #include "vm/object.h" |
| 6 | 6 |
| 7 #include "include/dart_api.h" | 7 #include "include/dart_api.h" |
| 8 #include "platform/assert.h" | 8 #include "platform/assert.h" |
| 9 #include "vm/assembler.h" | 9 #include "vm/assembler.h" |
| 10 #include "vm/cpu.h" | 10 #include "vm/cpu.h" |
| (...skipping 1429 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1440 field_name = Symbols::New("cid"#clazz); \ | 1440 field_name = Symbols::New("cid"#clazz); \ |
| 1441 field = Field::New(field_name, true, false, true, false, cls, 0); \ | 1441 field = Field::New(field_name, true, false, true, false, cls, 0); \ |
| 1442 value = Smi::New(k##clazz##Cid); \ | 1442 value = Smi::New(k##clazz##Cid); \ |
| 1443 field.set_value(value); \ | 1443 field.set_value(value); \ |
| 1444 field.set_type(Type::Handle(Type::IntType())); \ | 1444 field.set_type(Type::Handle(Type::IntType())); \ |
| 1445 cls.AddField(field); \ | 1445 cls.AddField(field); \ |
| 1446 | 1446 |
| 1447 CLASS_LIST_WITH_NULL(ADD_SET_FIELD) | 1447 CLASS_LIST_WITH_NULL(ADD_SET_FIELD) |
| 1448 #undef ADD_SET_FIELD | 1448 #undef ADD_SET_FIELD |
| 1449 | 1449 |
| 1450 object_store->InitAsyncObjects(); |
| 1451 |
| 1450 return Error::null(); | 1452 return Error::null(); |
| 1451 } | 1453 } |
| 1452 | 1454 |
| 1453 | 1455 |
| 1454 void Object::InitFromSnapshot(Isolate* isolate) { | 1456 void Object::InitFromSnapshot(Isolate* isolate) { |
| 1455 TIMERSCOPE(isolate, time_bootstrap); | 1457 TIMERSCOPE(isolate, time_bootstrap); |
| 1456 ObjectStore* object_store = isolate->object_store(); | 1458 ObjectStore* object_store = isolate->object_store(); |
| 1457 | 1459 |
| 1458 Class& cls = Class::Handle(); | 1460 Class& cls = Class::Handle(); |
| 1459 | 1461 |
| (...skipping 18830 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 20290 return tag_label.ToCString(); | 20292 return tag_label.ToCString(); |
| 20291 } | 20293 } |
| 20292 | 20294 |
| 20293 | 20295 |
| 20294 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { | 20296 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { |
| 20295 Instance::PrintJSONImpl(stream, ref); | 20297 Instance::PrintJSONImpl(stream, ref); |
| 20296 } | 20298 } |
| 20297 | 20299 |
| 20298 | 20300 |
| 20299 } // namespace dart | 20301 } // namespace dart |
| OLD | NEW |