| 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 1044 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1055 String& str = String::Handle(); | 1055 String& str = String::Handle(); |
| 1056 str = lib.PrivateName(public_class_name); | 1056 str = lib.PrivateName(public_class_name); |
| 1057 cls.set_name(str); | 1057 cls.set_name(str); |
| 1058 lib.AddClass(cls); | 1058 lib.AddClass(cls); |
| 1059 } | 1059 } |
| 1060 | 1060 |
| 1061 | 1061 |
| 1062 RawError* Object::Init(Isolate* isolate) { | 1062 RawError* Object::Init(Isolate* isolate) { |
| 1063 Thread* thread = Thread::Current(); | 1063 Thread* thread = Thread::Current(); |
| 1064 ASSERT(isolate == thread->isolate()); | 1064 ASSERT(isolate == thread->isolate()); |
| 1065 TimelineDurationScope tds(isolate, | 1065 TimelineDurationScope tds(thread, |
| 1066 isolate->GetIsolateStream(), | 1066 isolate->GetIsolateStream(), |
| 1067 "Object::Init"); | 1067 "Object::Init"); |
| 1068 | 1068 |
| 1069 #if defined(DART_NO_SNAPSHOT) | 1069 #if defined(DART_NO_SNAPSHOT) |
| 1070 // Object::Init version when we are running in a version of dart that does | 1070 // Object::Init version when we are running in a version of dart that does |
| 1071 // not have a full snapshot linked in. | 1071 // not have a full snapshot linked in. |
| 1072 ObjectStore* object_store = isolate->object_store(); | 1072 ObjectStore* object_store = isolate->object_store(); |
| 1073 | 1073 |
| 1074 Class& cls = Class::Handle(isolate); | 1074 Class& cls = Class::Handle(isolate); |
| 1075 Type& type = Type::Handle(isolate); | 1075 Type& type = Type::Handle(isolate); |
| (...skipping 20458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 21534 return tag_label.ToCString(); | 21534 return tag_label.ToCString(); |
| 21535 } | 21535 } |
| 21536 | 21536 |
| 21537 | 21537 |
| 21538 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { | 21538 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { |
| 21539 Instance::PrintJSONImpl(stream, ref); | 21539 Instance::PrintJSONImpl(stream, ref); |
| 21540 } | 21540 } |
| 21541 | 21541 |
| 21542 | 21542 |
| 21543 } // namespace dart | 21543 } // namespace dart |
| OLD | NEW |