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

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

Issue 10657048: Debugger support to display global variables (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 6 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 1760 matching lines...) Expand 10 before | Expand all | Expand 10 after
1771 RawObject* GetNext(); 1771 RawObject* GetNext();
1772 1772
1773 private: 1773 private:
1774 void MoveToNextObject(); 1774 void MoveToNextObject();
1775 1775
1776 const Array& array_; 1776 const Array& array_;
1777 const int size_; // Number of elements to iterate over. 1777 const int size_; // Number of elements to iterate over.
1778 int next_ix_; // Index of next element. 1778 int next_ix_; // Index of next element.
1779 1779
1780 friend class ClassDictionaryIterator; 1780 friend class ClassDictionaryIterator;
1781 friend class LibraryPrefixIterator;
1781 DISALLOW_COPY_AND_ASSIGN(DictionaryIterator); 1782 DISALLOW_COPY_AND_ASSIGN(DictionaryIterator);
1782 }; 1783 };
1783 1784
1784 1785
1785 class ClassDictionaryIterator : public DictionaryIterator { 1786 class ClassDictionaryIterator : public DictionaryIterator {
1786 public: 1787 public:
1787 explicit ClassDictionaryIterator(const Library& library); 1788 explicit ClassDictionaryIterator(const Library& library);
1788 1789
1789 // Returns a non-null raw class. 1790 // Returns a non-null raw class.
1790 RawClass* GetNextClass(); 1791 RawClass* GetNextClass();
1791 1792
1792 private: 1793 private:
1793 void MoveToNextClass(); 1794 void MoveToNextClass();
1794 1795
1795 DISALLOW_COPY_AND_ASSIGN(ClassDictionaryIterator); 1796 DISALLOW_COPY_AND_ASSIGN(ClassDictionaryIterator);
1796 }; 1797 };
1797 1798
1798 1799
1800 class LibraryPrefixIterator : public DictionaryIterator {
1801 public:
1802 explicit LibraryPrefixIterator(const Library& library);
1803 RawLibraryPrefix* GetNext();
1804 private:
1805 void MoveToNext();
1806 DISALLOW_COPY_AND_ASSIGN(LibraryPrefixIterator);
1807 };
1808
1809
1799 class Library : public Object { 1810 class Library : public Object {
1800 public: 1811 public:
1801 RawString* name() const { return raw_ptr()->name_; } 1812 RawString* name() const { return raw_ptr()->name_; }
1802 void SetName(const String& name) const; 1813 void SetName(const String& name) const;
1803 1814
1804 RawString* url() const { return raw_ptr()->url_; } 1815 RawString* url() const { return raw_ptr()->url_; }
1805 RawString* private_key() const { return raw_ptr()->private_key_; } 1816 RawString* private_key() const { return raw_ptr()->private_key_; }
1806 bool LoadNotStarted() const { 1817 bool LoadNotStarted() const {
1807 return raw_ptr()->load_state_ == RawLibrary::kAllocated; 1818 return raw_ptr()->load_state_ == RawLibrary::kAllocated;
1808 } 1819 }
(...skipping 3264 matching lines...) Expand 10 before | Expand all | Expand 10 after
5073 } 5084 }
5074 5085
5075 5086
5076 intptr_t Stackmap::SizeInBits() const { 5087 intptr_t Stackmap::SizeInBits() const {
5077 return (Smi::Value(raw_ptr()->bitmap_size_in_bytes_) * kBitsPerByte); 5088 return (Smi::Value(raw_ptr()->bitmap_size_in_bytes_) * kBitsPerByte);
5078 } 5089 }
5079 5090
5080 } // namespace dart 5091 } // namespace dart
5081 5092
5082 #endif // VM_OBJECT_H_ 5093 #endif // VM_OBJECT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698