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

Side by Side Diff: runtime/vm/object.h

Issue 9117015: Add functions to list library and script urls in an isolate. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 8 years, 11 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
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 1674 matching lines...) Expand 10 before | Expand all | Expand 10 after
1685 static RawLibrary* New(const String& url); 1685 static RawLibrary* New(const String& url);
1686 1686
1687 // Library scope name dictionary. 1687 // Library scope name dictionary.
1688 void AddClass(const Class& cls) const; 1688 void AddClass(const Class& cls) const;
1689 void AddObject(const Object& obj, const String& name) const; 1689 void AddObject(const Object& obj, const String& name) const;
1690 RawObject* LookupObject(const String& name) const; 1690 RawObject* LookupObject(const String& name) const;
1691 RawClass* LookupClass(const String& name) const; 1691 RawClass* LookupClass(const String& name) const;
1692 RawObject* LookupLocalObject(const String& name) const; 1692 RawObject* LookupLocalObject(const String& name) const;
1693 RawClass* LookupLocalClass(const String& name) const; 1693 RawClass* LookupLocalClass(const String& name) const;
1694 RawScript* LookupScript(const String& url) const; 1694 RawScript* LookupScript(const String& url) const;
1695 RawArray* LoadedScripts() const;
1695 1696
1696 void AddAnonymousClass(const Class& cls) const; 1697 void AddAnonymousClass(const Class& cls) const;
1697 1698
1698 // Library imports. 1699 // Library imports.
1699 void AddImport(const Library& library) const; 1700 void AddImport(const Library& library) const;
1700 RawLibrary* LookupImport(const String& url) const; 1701 RawLibrary* LookupImport(const String& url) const;
1701 1702
1702 RawFunction* LookupFunctionInSource(const String& script_url, 1703 RawFunction* LookupFunctionInSource(const String& script_url,
1703 intptr_t line_number) const; 1704 intptr_t line_number) const;
1704 RawFunction* LookupFunctionInScript(const Script& script, 1705 RawFunction* LookupFunctionInScript(const Script& script,
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
1739 intptr_t num_imports() const { return raw_ptr()->num_imports_; } 1740 intptr_t num_imports() const { return raw_ptr()->num_imports_; }
1740 void set_num_imports(intptr_t value) const { 1741 void set_num_imports(intptr_t value) const {
1741 raw_ptr()->num_imports_ = value; 1742 raw_ptr()->num_imports_ = value;
1742 } 1743 }
1743 intptr_t num_imported_into() const { return raw_ptr()->num_imported_into_; } 1744 intptr_t num_imported_into() const { return raw_ptr()->num_imported_into_; }
1744 void set_num_imported_into(intptr_t value) const { 1745 void set_num_imported_into(intptr_t value) const {
1745 raw_ptr()->num_imported_into_ = value; 1746 raw_ptr()->num_imported_into_ = value;
1746 } 1747 }
1747 RawArray* imports() const { return raw_ptr()->imports_; } 1748 RawArray* imports() const { return raw_ptr()->imports_; }
1748 RawArray* imported_into() const { return raw_ptr()->imported_into_; } 1749 RawArray* imported_into() const { return raw_ptr()->imported_into_; }
1750 RawArray* loaded_scripts() const { return raw_ptr()->loaded_scripts_; }
1749 RawArray* dictionary() const { return raw_ptr()->dictionary_; } 1751 RawArray* dictionary() const { return raw_ptr()->dictionary_; }
1750 void InitClassDictionary() const; 1752 void InitClassDictionary() const;
1751 void InitImportList() const; 1753 void InitImportList() const;
1752 void InitImportedIntoList() const; 1754 void InitImportedIntoList() const;
1753 void GrowDictionary(const Array& dict, intptr_t dict_size) const; 1755 void GrowDictionary(const Array& dict, intptr_t dict_size) const;
1754 static RawLibrary* NewLibraryHelper(const String& url, 1756 static RawLibrary* NewLibraryHelper(const String& url,
1755 bool import_core_lib); 1757 bool import_core_lib);
1756 void AddImportedInto(const Library& library) const; 1758 void AddImportedInto(const Library& library) const;
1757 RawObject* LookupObjectFiltered(const String& name, 1759 RawObject* LookupObjectFiltered(const String& name,
1758 const Library& filter_lib) const; 1760 const Library& filter_lib) const;
(...skipping 1753 matching lines...) Expand 10 before | Expand all | Expand 10 after
3512 } 3514 }
3513 3515
3514 3516
3515 void Context::SetAt(intptr_t index, const Instance& value) const { 3517 void Context::SetAt(intptr_t index, const Instance& value) const {
3516 StorePointer(InstanceAddr(index), value.raw()); 3518 StorePointer(InstanceAddr(index), value.raw());
3517 } 3519 }
3518 3520
3519 } // namespace dart 3521 } // namespace dart
3520 3522
3521 #endif // VM_OBJECT_H_ 3523 #endif // VM_OBJECT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698