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 #ifndef VM_OBJECT_H_ | 5 #ifndef VM_OBJECT_H_ |
6 #define VM_OBJECT_H_ | 6 #define VM_OBJECT_H_ |
7 | 7 |
8 #include "include/dart_api.h" | 8 #include "include/dart_api.h" |
9 #include "platform/assert.h" | 9 #include "platform/assert.h" |
10 #include "platform/utils.h" | 10 #include "platform/utils.h" |
(...skipping 1752 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1763 return raw_ptr()->native_entry_resolver_; | 1763 return raw_ptr()->native_entry_resolver_; |
1764 } | 1764 } |
1765 void set_native_entry_resolver(Dart_NativeEntryResolver value) const { | 1765 void set_native_entry_resolver(Dart_NativeEntryResolver value) const { |
1766 raw_ptr()->native_entry_resolver_ = value; | 1766 raw_ptr()->native_entry_resolver_ = value; |
1767 } | 1767 } |
1768 | 1768 |
1769 RawString* PrivateName(const String& name) const; | 1769 RawString* PrivateName(const String& name) const; |
1770 | 1770 |
1771 void Register() const; | 1771 void Register() const; |
1772 | 1772 |
1773 RawLibrary* next_registered() const { return raw_ptr()->next_registered_; } | |
1774 | |
1775 RawString* DuplicateDefineErrorString(const String& entry_name, | 1773 RawString* DuplicateDefineErrorString(const String& entry_name, |
1776 const Library& conflicting_lib) const; | 1774 const Library& conflicting_lib) const; |
1777 static RawLibrary* LookupLibrary(const String& url); | 1775 static RawLibrary* LookupLibrary(const String& url); |
| 1776 static RawLibrary* GetLibrary(intptr_t index); |
1778 static RawString* CheckForDuplicateDefinition(); | 1777 static RawString* CheckForDuplicateDefinition(); |
1779 static bool IsKeyUsed(intptr_t key); | 1778 static bool IsKeyUsed(intptr_t key); |
1780 | 1779 |
1781 static void InitCoreLibrary(Isolate* isolate); | 1780 static void InitCoreLibrary(Isolate* isolate); |
1782 static void InitMathLibrary(Isolate* isolate); | 1781 static void InitMathLibrary(Isolate* isolate); |
1783 static void InitIsolateLibrary(Isolate* isolate); | 1782 static void InitIsolateLibrary(Isolate* isolate); |
1784 static void InitMirrorsLibrary(Isolate* isolate); | 1783 static void InitMirrorsLibrary(Isolate* isolate); |
1785 static RawLibrary* CoreLibrary(); | 1784 static RawLibrary* CoreLibrary(); |
1786 static RawLibrary* CoreImplLibrary(); | 1785 static RawLibrary* CoreImplLibrary(); |
1787 static RawLibrary* MathLibrary(); | 1786 static RawLibrary* MathLibrary(); |
(...skipping 3157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4945 } | 4944 } |
4946 | 4945 |
4947 | 4946 |
4948 intptr_t Stackmap::SizeInBits() const { | 4947 intptr_t Stackmap::SizeInBits() const { |
4949 return (Smi::Value(raw_ptr()->bitmap_size_in_bytes_) * kBitsPerByte); | 4948 return (Smi::Value(raw_ptr()->bitmap_size_in_bytes_) * kBitsPerByte); |
4950 } | 4949 } |
4951 | 4950 |
4952 } // namespace dart | 4951 } // namespace dart |
4953 | 4952 |
4954 #endif // VM_OBJECT_H_ | 4953 #endif // VM_OBJECT_H_ |
OLD | NEW |