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