Chromium Code Reviews| 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 1719 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1730 return RoundedAllocationSize(sizeof(RawLibrary)); | 1730 return RoundedAllocationSize(sizeof(RawLibrary)); |
| 1731 } | 1731 } |
| 1732 | 1732 |
| 1733 static RawLibrary* New(const String& url); | 1733 static RawLibrary* New(const String& url); |
| 1734 | 1734 |
| 1735 // Library scope name dictionary. | 1735 // Library scope name dictionary. |
| 1736 void AddClass(const Class& cls) const; | 1736 void AddClass(const Class& cls) const; |
| 1737 void AddObject(const Object& obj, const String& name) const; | 1737 void AddObject(const Object& obj, const String& name) const; |
| 1738 RawObject* LookupObject(const String& name) const; | 1738 RawObject* LookupObject(const String& name) const; |
| 1739 RawClass* LookupClass(const String& name) const; | 1739 RawClass* LookupClass(const String& name) const; |
| 1740 RawClass* LookupClassAllowPrivate(const String& name) const; | |
|
siva
2012/05/23 20:59:06
I am wondering if we should just have
RawClass* Lo
turnidge
2012/05/23 21:44:50
Discussed offline. I am adding a TODO(turnidge) t
| |
| 1740 RawObject* LookupLocalObject(const String& name) const; | 1741 RawObject* LookupLocalObject(const String& name) const; |
| 1741 RawClass* LookupLocalClass(const String& name) const; | 1742 RawClass* LookupLocalClass(const String& name) const; |
| 1742 RawField* LookupFieldAllowPrivate(const String& name) const; | 1743 RawField* LookupFieldAllowPrivate(const String& name) const; |
| 1743 RawField* LookupLocalField(const String& name) const; | 1744 RawField* LookupLocalField(const String& name) const; |
| 1744 RawFunction* LookupFunctionAllowPrivate(const String& name) const; | 1745 RawFunction* LookupFunctionAllowPrivate(const String& name) const; |
| 1745 RawFunction* LookupLocalFunction(const String& name) const; | 1746 RawFunction* LookupLocalFunction(const String& name) const; |
| 1746 RawLibraryPrefix* LookupLocalLibraryPrefix(const String& name) const; | 1747 RawLibraryPrefix* LookupLocalLibraryPrefix(const String& name) const; |
| 1747 RawScript* LookupScript(const String& url) const; | 1748 RawScript* LookupScript(const String& url) const; |
| 1748 RawArray* LoadedScripts() const; | 1749 RawArray* LoadedScripts() const; |
| 1749 | 1750 |
| (...skipping 3195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 4945 } | 4946 } |
| 4946 | 4947 |
| 4947 | 4948 |
| 4948 intptr_t Stackmap::SizeInBits() const { | 4949 intptr_t Stackmap::SizeInBits() const { |
| 4949 return (Smi::Value(raw_ptr()->bitmap_size_in_bytes_) * kBitsPerByte); | 4950 return (Smi::Value(raw_ptr()->bitmap_size_in_bytes_) * kBitsPerByte); |
| 4950 } | 4951 } |
| 4951 | 4952 |
| 4952 } // namespace dart | 4953 } // namespace dart |
| 4953 | 4954 |
| 4954 #endif // VM_OBJECT_H_ | 4955 #endif // VM_OBJECT_H_ |
| OLD | NEW |