| 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 | 1763 |
| 1764 static RawLibrary* New(const String& url); | 1764 static RawLibrary* New(const String& url); |
| 1765 | 1765 |
| 1766 // Library scope name dictionary. | 1766 // Library scope name dictionary. |
| 1767 void AddClass(const Class& cls) const; | 1767 void AddClass(const Class& cls) const; |
| 1768 void AddObject(const Object& obj, const String& name) const; | 1768 void AddObject(const Object& obj, const String& name) const; |
| 1769 RawObject* LookupObject(const String& name) const; | 1769 RawObject* LookupObject(const String& name) const; |
| 1770 RawClass* LookupClass(const String& name) const; | 1770 RawClass* LookupClass(const String& name) const; |
| 1771 RawObject* LookupLocalObject(const String& name) const; | 1771 RawObject* LookupLocalObject(const String& name) const; |
| 1772 RawClass* LookupLocalClass(const String& name) const; | 1772 RawClass* LookupLocalClass(const String& name) const; |
| 1773 RawField* LookupFieldAllowPrivate(const String& name) const; |
| 1773 RawField* LookupLocalField(const String& name) const; | 1774 RawField* LookupLocalField(const String& name) const; |
| 1775 RawFunction* LookupFunctionAllowPrivate(const String& name) const; |
| 1774 RawFunction* LookupLocalFunction(const String& name) const; | 1776 RawFunction* LookupLocalFunction(const String& name) const; |
| 1775 RawLibraryPrefix* LookupLocalLibraryPrefix(const String& name) const; | 1777 RawLibraryPrefix* LookupLocalLibraryPrefix(const String& name) const; |
| 1776 RawScript* LookupScript(const String& url) const; | 1778 RawScript* LookupScript(const String& url) const; |
| 1777 RawArray* LoadedScripts() const; | 1779 RawArray* LoadedScripts() const; |
| 1778 | 1780 |
| 1779 void AddAnonymousClass(const Class& cls) const; | 1781 void AddAnonymousClass(const Class& cls) const; |
| 1780 | 1782 |
| 1781 // Library imports. | 1783 // Library imports. |
| 1782 RawString* LookupImportMap(const String& name) const; | 1784 RawString* LookupImportMap(const String& name) const; |
| 1783 void AddImport(const Library& library) const; | 1785 void AddImport(const Library& library) const; |
| (...skipping 2210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3994 } | 3996 } |
| 3995 | 3997 |
| 3996 | 3998 |
| 3997 intptr_t Stackmap::SizeInBits() const { | 3999 intptr_t Stackmap::SizeInBits() const { |
| 3998 return (Smi::Value(raw_ptr()->bitmap_size_in_bytes_) * kBitsPerByte); | 4000 return (Smi::Value(raw_ptr()->bitmap_size_in_bytes_) * kBitsPerByte); |
| 3999 } | 4001 } |
| 4000 | 4002 |
| 4001 } // namespace dart | 4003 } // namespace dart |
| 4002 | 4004 |
| 4003 #endif // VM_OBJECT_H_ | 4005 #endif // VM_OBJECT_H_ |
| OLD | NEW |