Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(154)

Side by Side Diff: vm/object.h

Issue 10433003: Make Dart_GetClass work for private classes. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « vm/dart_api_impl_test.cc ('k') | vm/object.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 1715 matching lines...) Expand 10 before | Expand all | Expand 10 after
1726 } 1726 }
1727 void SetLoadError() const; 1727 void SetLoadError() const;
1728 1728
1729 static intptr_t InstanceSize() { 1729 static intptr_t InstanceSize() {
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 //
1737 // TODO(turnidge): The Lookup functions are not consistent in how
1738 // they deal with private names. Go through and make them a bit
1739 // more regular.
1736 void AddClass(const Class& cls) const; 1740 void AddClass(const Class& cls) const;
1737 void AddObject(const Object& obj, const String& name) const; 1741 void AddObject(const Object& obj, const String& name) const;
1738 RawObject* LookupObject(const String& name) const; 1742 RawObject* LookupObject(const String& name) const;
1739 RawClass* LookupClass(const String& name) const; 1743 RawClass* LookupClass(const String& name) const;
1744 RawClass* LookupClassAllowPrivate(const String& name) const;
1740 RawObject* LookupLocalObject(const String& name) const; 1745 RawObject* LookupLocalObject(const String& name) const;
1741 RawClass* LookupLocalClass(const String& name) const; 1746 RawClass* LookupLocalClass(const String& name) const;
1742 RawField* LookupFieldAllowPrivate(const String& name) const; 1747 RawField* LookupFieldAllowPrivate(const String& name) const;
1743 RawField* LookupLocalField(const String& name) const; 1748 RawField* LookupLocalField(const String& name) const;
1744 RawFunction* LookupFunctionAllowPrivate(const String& name) const; 1749 RawFunction* LookupFunctionAllowPrivate(const String& name) const;
1745 RawFunction* LookupLocalFunction(const String& name) const; 1750 RawFunction* LookupLocalFunction(const String& name) const;
1746 RawLibraryPrefix* LookupLocalLibraryPrefix(const String& name) const; 1751 RawLibraryPrefix* LookupLocalLibraryPrefix(const String& name) const;
1747 RawScript* LookupScript(const String& url) const; 1752 RawScript* LookupScript(const String& url) const;
1748 RawArray* LoadedScripts() const; 1753 RawArray* LoadedScripts() const;
1749 1754
(...skipping 3194 matching lines...) Expand 10 before | Expand all | Expand 10 after
4944 } 4949 }
4945 4950
4946 4951
4947 intptr_t Stackmap::SizeInBits() const { 4952 intptr_t Stackmap::SizeInBits() const {
4948 return (Smi::Value(raw_ptr()->bitmap_size_in_bytes_) * kBitsPerByte); 4953 return (Smi::Value(raw_ptr()->bitmap_size_in_bytes_) * kBitsPerByte);
4949 } 4954 }
4950 4955
4951 } // namespace dart 4956 } // namespace dart
4952 4957
4953 #endif // VM_OBJECT_H_ 4958 #endif // VM_OBJECT_H_
OLDNEW
« no previous file with comments | « vm/dart_api_impl_test.cc ('k') | vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698