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 971 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
982 ASSERT(public_class_name.CharAt(0) == '_'); | 982 ASSERT(public_class_name.CharAt(0) == '_'); |
983 String& str = String::Handle(); | 983 String& str = String::Handle(); |
984 str = lib.PrivateName(public_class_name); | 984 str = lib.PrivateName(public_class_name); |
985 cls.set_name(str); | 985 cls.set_name(str); |
986 lib.AddClass(cls); | 986 lib.AddClass(cls); |
987 } | 987 } |
988 | 988 |
989 | 989 |
990 RawError* Object::Init(Isolate* isolate) { | 990 RawError* Object::Init(Isolate* isolate) { |
991 TIMERSCOPE(isolate, time_bootstrap); | 991 TIMERSCOPE(isolate, time_bootstrap); |
| 992 TimelineDurationScope tds(isolate, |
| 993 isolate->GetIsolateStream(), |
| 994 "Object::Init"); |
992 | 995 |
993 #if defined(DART_NO_SNAPSHOT) | 996 #if defined(DART_NO_SNAPSHOT) |
994 // Object::Init version when we are running in a version of dart that does | 997 // Object::Init version when we are running in a version of dart that does |
995 // not have a full snapshot linked in. | 998 // not have a full snapshot linked in. |
996 ObjectStore* object_store = isolate->object_store(); | 999 ObjectStore* object_store = isolate->object_store(); |
997 | 1000 |
998 Class& cls = Class::Handle(isolate); | 1001 Class& cls = Class::Handle(isolate); |
999 Type& type = Type::Handle(isolate); | 1002 Type& type = Type::Handle(isolate); |
1000 Array& array = Array::Handle(isolate); | 1003 Array& array = Array::Handle(isolate); |
1001 Library& lib = Library::Handle(isolate); | 1004 Library& lib = Library::Handle(isolate); |
(...skipping 20385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
21387 return tag_label.ToCString(); | 21390 return tag_label.ToCString(); |
21388 } | 21391 } |
21389 | 21392 |
21390 | 21393 |
21391 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { | 21394 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { |
21392 Instance::PrintJSONImpl(stream, ref); | 21395 Instance::PrintJSONImpl(stream, ref); |
21393 } | 21396 } |
21394 | 21397 |
21395 | 21398 |
21396 } // namespace dart | 21399 } // namespace dart |
OLD | NEW |