| 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 1439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1450 field_name = Symbols::New("cid"#clazz); \ | 1450 field_name = Symbols::New("cid"#clazz); \ |
| 1451 field = Field::New(field_name, true, false, true, false, cls, 0); \ | 1451 field = Field::New(field_name, true, false, true, false, cls, 0); \ |
| 1452 value = Smi::New(k##clazz##Cid); \ | 1452 value = Smi::New(k##clazz##Cid); \ |
| 1453 field.set_value(value); \ | 1453 field.set_value(value); \ |
| 1454 field.set_type(Type::Handle(Type::IntType())); \ | 1454 field.set_type(Type::Handle(Type::IntType())); \ |
| 1455 cls.AddField(field); \ | 1455 cls.AddField(field); \ |
| 1456 | 1456 |
| 1457 CLASS_LIST_WITH_NULL(ADD_SET_FIELD) | 1457 CLASS_LIST_WITH_NULL(ADD_SET_FIELD) |
| 1458 #undef ADD_SET_FIELD | 1458 #undef ADD_SET_FIELD |
| 1459 | 1459 |
| 1460 object_store->InitAsyncObjects(); |
| 1461 |
| 1460 return Error::null(); | 1462 return Error::null(); |
| 1461 } | 1463 } |
| 1462 | 1464 |
| 1463 | 1465 |
| 1464 void Object::InitFromSnapshot(Isolate* isolate) { | 1466 void Object::InitFromSnapshot(Isolate* isolate) { |
| 1465 TIMERSCOPE(isolate, time_bootstrap); | 1467 TIMERSCOPE(isolate, time_bootstrap); |
| 1466 ObjectStore* object_store = isolate->object_store(); | 1468 ObjectStore* object_store = isolate->object_store(); |
| 1467 | 1469 |
| 1468 Class& cls = Class::Handle(); | 1470 Class& cls = Class::Handle(); |
| 1469 | 1471 |
| (...skipping 18795 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 20265 return tag_label.ToCString(); | 20267 return tag_label.ToCString(); |
| 20266 } | 20268 } |
| 20267 | 20269 |
| 20268 | 20270 |
| 20269 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { | 20271 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { |
| 20270 Instance::PrintJSONImpl(stream, ref); | 20272 Instance::PrintJSONImpl(stream, ref); |
| 20271 } | 20273 } |
| 20272 | 20274 |
| 20273 | 20275 |
| 20274 } // namespace dart | 20276 } // namespace dart |
| OLD | NEW |