| 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 1436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1447 field_name = Symbols::New("cid"#clazz); \ | 1447 field_name = Symbols::New("cid"#clazz); \ |
| 1448 field = Field::New(field_name, true, false, true, false, cls, 0); \ | 1448 field = Field::New(field_name, true, false, true, false, cls, 0); \ |
| 1449 value = Smi::New(k##clazz##Cid); \ | 1449 value = Smi::New(k##clazz##Cid); \ |
| 1450 field.set_value(value); \ | 1450 field.set_value(value); \ |
| 1451 field.set_type(Type::Handle(Type::IntType())); \ | 1451 field.set_type(Type::Handle(Type::IntType())); \ |
| 1452 cls.AddField(field); \ | 1452 cls.AddField(field); \ |
| 1453 | 1453 |
| 1454 CLASS_LIST_WITH_NULL(ADD_SET_FIELD) | 1454 CLASS_LIST_WITH_NULL(ADD_SET_FIELD) |
| 1455 #undef ADD_SET_FIELD | 1455 #undef ADD_SET_FIELD |
| 1456 | 1456 |
| 1457 object_store->InitAsyncObjects(); |
| 1458 |
| 1457 return Error::null(); | 1459 return Error::null(); |
| 1458 } | 1460 } |
| 1459 | 1461 |
| 1460 | 1462 |
| 1461 void Object::InitFromSnapshot(Isolate* isolate) { | 1463 void Object::InitFromSnapshot(Isolate* isolate) { |
| 1462 TIMERSCOPE(isolate, time_bootstrap); | 1464 TIMERSCOPE(isolate, time_bootstrap); |
| 1463 ObjectStore* object_store = isolate->object_store(); | 1465 ObjectStore* object_store = isolate->object_store(); |
| 1464 | 1466 |
| 1465 Class& cls = Class::Handle(); | 1467 Class& cls = Class::Handle(); |
| 1466 | 1468 |
| (...skipping 18848 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 20315 return tag_label.ToCString(); | 20317 return tag_label.ToCString(); |
| 20316 } | 20318 } |
| 20317 | 20319 |
| 20318 | 20320 |
| 20319 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { | 20321 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { |
| 20320 Instance::PrintJSONImpl(stream, ref); | 20322 Instance::PrintJSONImpl(stream, ref); |
| 20321 } | 20323 } |
| 20322 | 20324 |
| 20323 | 20325 |
| 20324 } // namespace dart | 20326 } // namespace dart |
| OLD | NEW |