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

Side by Side Diff: vm/object.h

Issue 9616044: Adds new apis Dart_GetField/Dart_SetField. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 9 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_entry.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 1752 matching lines...) Expand 10 before | Expand all | Expand 10 after
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* LookupLocalField(const String& name) const;
1774 RawFunction* LookupLocalFunction(const String& name) const;
1773 RawLibraryPrefix* LookupLocalLibraryPrefix(const String& name) const; 1775 RawLibraryPrefix* LookupLocalLibraryPrefix(const String& name) const;
1774 RawScript* LookupScript(const String& url) const; 1776 RawScript* LookupScript(const String& url) const;
1775 RawArray* LoadedScripts() const; 1777 RawArray* LoadedScripts() const;
1776 1778
1777 void AddAnonymousClass(const Class& cls) const; 1779 void AddAnonymousClass(const Class& cls) const;
1778 1780
1779 // Library imports. 1781 // Library imports.
1780 RawString* LookupImportMap(const String& name) const; 1782 RawString* LookupImportMap(const String& name) const;
1781 void AddImport(const Library& library) const; 1783 void AddImport(const Library& library) const;
1782 RawLibrary* LookupImport(const String& url) const; 1784 RawLibrary* LookupImport(const String& url) const;
1783 1785
1784 RawFunction* LookupFunctionInSource(const String& script_url, 1786 RawFunction* LookupFunctionInSource(const String& script_url,
1785 intptr_t line_number) const; 1787 intptr_t line_number) const;
1786 RawFunction* LookupFunctionInScript(const Script& script, 1788 RawFunction* LookupFunctionInScript(const Script& script,
1787 intptr_t token_index) const; 1789 intptr_t token_index) const;
1788 1790
1789 // Resolving native methods for script loaded in the library. 1791 // Resolving native methods for script loaded in the library.
1790 Dart_NativeEntryResolver native_entry_resolver() const { 1792 Dart_NativeEntryResolver native_entry_resolver() const {
1791 return raw_ptr()->native_entry_resolver_; 1793 return raw_ptr()->native_entry_resolver_;
1792 } 1794 }
1793 void set_native_entry_resolver(Dart_NativeEntryResolver value) const { 1795 void set_native_entry_resolver(Dart_NativeEntryResolver value) const {
1794 raw_ptr()->native_entry_resolver_ = value; 1796 raw_ptr()->native_entry_resolver_ = value;
1795 } 1797 }
1796 1798
1797 RawString* PrivateName(const char* name); 1799 RawString* PrivateName(const String& name) const;
1798 1800
1799 void Register() const; 1801 void Register() const;
1800 1802
1801 RawLibrary* next_registered() const { return raw_ptr()->next_registered_; } 1803 RawLibrary* next_registered() const { return raw_ptr()->next_registered_; }
1802 1804
1803 RawString* DuplicateDefineErrorString(const String& entry_name, 1805 RawString* DuplicateDefineErrorString(const String& entry_name,
1804 const Library& conflicting_lib) const; 1806 const Library& conflicting_lib) const;
1805 static RawLibrary* LookupLibrary(const String& url); 1807 static RawLibrary* LookupLibrary(const String& url);
1806 static RawString* CheckForDuplicateDefinition(); 1808 static RawString* CheckForDuplicateDefinition();
1807 static bool IsKeyUsed(intptr_t key); 1809 static bool IsKeyUsed(intptr_t key);
(...skipping 2024 matching lines...) Expand 10 before | Expand all | Expand 10 after
3832 } 3834 }
3833 3835
3834 3836
3835 void Context::SetAt(intptr_t index, const Instance& value) const { 3837 void Context::SetAt(intptr_t index, const Instance& value) const {
3836 StorePointer(InstanceAddr(index), value.raw()); 3838 StorePointer(InstanceAddr(index), value.raw());
3837 } 3839 }
3838 3840
3839 } // namespace dart 3841 } // namespace dart
3840 3842
3841 #endif // VM_OBJECT_H_ 3843 #endif // VM_OBJECT_H_
OLDNEW
« no previous file with comments | « vm/dart_entry.cc ('k') | vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698