| 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/become.h" | 10 #include "vm/become.h" |
| (...skipping 10687 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10698 return LibraryPrefix::Cast(obj).raw(); | 10698 return LibraryPrefix::Cast(obj).raw(); |
| 10699 } | 10699 } |
| 10700 return LibraryPrefix::null(); | 10700 return LibraryPrefix::null(); |
| 10701 } | 10701 } |
| 10702 | 10702 |
| 10703 void Library::set_toplevel_class(const Class& value) const { | 10703 void Library::set_toplevel_class(const Class& value) const { |
| 10704 ASSERT(raw_ptr()->toplevel_class_ == Class::null()); | 10704 ASSERT(raw_ptr()->toplevel_class_ == Class::null()); |
| 10705 StorePointer(&raw_ptr()->toplevel_class_, value.raw()); | 10705 StorePointer(&raw_ptr()->toplevel_class_, value.raw()); |
| 10706 } | 10706 } |
| 10707 | 10707 |
| 10708 void Library::set_metadata(const GrowableObjectArray& value) const { |
| 10709 StorePointer(&raw_ptr()->metadata_, value.raw()); |
| 10710 } |
| 10711 |
| 10708 RawLibrary* Library::ImportLibraryAt(intptr_t index) const { | 10712 RawLibrary* Library::ImportLibraryAt(intptr_t index) const { |
| 10709 Namespace& import = Namespace::Handle(ImportAt(index)); | 10713 Namespace& import = Namespace::Handle(ImportAt(index)); |
| 10710 if (import.IsNull()) { | 10714 if (import.IsNull()) { |
| 10711 return Library::null(); | 10715 return Library::null(); |
| 10712 } | 10716 } |
| 10713 return import.library(); | 10717 return import.library(); |
| 10714 } | 10718 } |
| 10715 | 10719 |
| 10716 RawNamespace* Library::ImportAt(intptr_t index) const { | 10720 RawNamespace* Library::ImportAt(intptr_t index) const { |
| 10717 if ((index < 0) || index >= num_imports()) { | 10721 if ((index < 0) || index >= num_imports()) { |
| (...skipping 11721 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 22439 } | 22443 } |
| 22440 return UserTag::null(); | 22444 return UserTag::null(); |
| 22441 } | 22445 } |
| 22442 | 22446 |
| 22443 const char* UserTag::ToCString() const { | 22447 const char* UserTag::ToCString() const { |
| 22444 const String& tag_label = String::Handle(label()); | 22448 const String& tag_label = String::Handle(label()); |
| 22445 return tag_label.ToCString(); | 22449 return tag_label.ToCString(); |
| 22446 } | 22450 } |
| 22447 | 22451 |
| 22448 } // namespace dart | 22452 } // namespace dart |
| OLD | NEW |