| 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 1721 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1732 RawString* GetLine(intptr_t line_number) const; | 1732 RawString* GetLine(intptr_t line_number) const; |
| 1733 | 1733 |
| 1734 RawString* GetSnippet(intptr_t from_line, | 1734 RawString* GetSnippet(intptr_t from_line, |
| 1735 intptr_t from_column, | 1735 intptr_t from_column, |
| 1736 intptr_t to_line, | 1736 intptr_t to_line, |
| 1737 intptr_t to_column) const; | 1737 intptr_t to_column) const; |
| 1738 | 1738 |
| 1739 void GetTokenLocation(intptr_t token_pos, | 1739 void GetTokenLocation(intptr_t token_pos, |
| 1740 intptr_t* line, intptr_t* column) const; | 1740 intptr_t* line, intptr_t* column) const; |
| 1741 | 1741 |
| 1742 intptr_t TokenIndexAtLine(intptr_t line_number) const; | 1742 void TokenRangeAtLine(intptr_t line_number, |
| 1743 intptr_t* first_token_index, |
| 1744 intptr_t* last_token_index) const; |
| 1743 | 1745 |
| 1744 static intptr_t InstanceSize() { | 1746 static intptr_t InstanceSize() { |
| 1745 return RoundedAllocationSize(sizeof(RawScript)); | 1747 return RoundedAllocationSize(sizeof(RawScript)); |
| 1746 } | 1748 } |
| 1747 | 1749 |
| 1748 static RawScript* New(const String& url, | 1750 static RawScript* New(const String& url, |
| 1749 const String& source, | 1751 const String& source, |
| 1750 RawScript::Kind kind); | 1752 RawScript::Kind kind); |
| 1751 | 1753 |
| 1752 private: | 1754 private: |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1795 | 1797 |
| 1796 DISALLOW_COPY_AND_ASSIGN(ClassDictionaryIterator); | 1798 DISALLOW_COPY_AND_ASSIGN(ClassDictionaryIterator); |
| 1797 }; | 1799 }; |
| 1798 | 1800 |
| 1799 | 1801 |
| 1800 class LibraryPrefixIterator : public DictionaryIterator { | 1802 class LibraryPrefixIterator : public DictionaryIterator { |
| 1801 public: | 1803 public: |
| 1802 explicit LibraryPrefixIterator(const Library& library); | 1804 explicit LibraryPrefixIterator(const Library& library); |
| 1803 RawLibraryPrefix* GetNext(); | 1805 RawLibraryPrefix* GetNext(); |
| 1804 private: | 1806 private: |
| 1805 void MoveToNext(); | 1807 void Advance(); |
| 1806 DISALLOW_COPY_AND_ASSIGN(LibraryPrefixIterator); | 1808 DISALLOW_COPY_AND_ASSIGN(LibraryPrefixIterator); |
| 1807 }; | 1809 }; |
| 1808 | 1810 |
| 1809 | 1811 |
| 1810 class Library : public Object { | 1812 class Library : public Object { |
| 1811 public: | 1813 public: |
| 1812 RawString* name() const { return raw_ptr()->name_; } | 1814 RawString* name() const { return raw_ptr()->name_; } |
| 1813 void SetName(const String& name) const; | 1815 void SetName(const String& name) const; |
| 1814 | 1816 |
| 1815 RawString* url() const { return raw_ptr()->url_; } | 1817 RawString* url() const { return raw_ptr()->url_; } |
| (...skipping 3268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5084 } | 5086 } |
| 5085 | 5087 |
| 5086 | 5088 |
| 5087 intptr_t Stackmap::SizeInBits() const { | 5089 intptr_t Stackmap::SizeInBits() const { |
| 5088 return (Smi::Value(raw_ptr()->bitmap_size_in_bytes_) * kBitsPerByte); | 5090 return (Smi::Value(raw_ptr()->bitmap_size_in_bytes_) * kBitsPerByte); |
| 5089 } | 5091 } |
| 5090 | 5092 |
| 5091 } // namespace dart | 5093 } // namespace dart |
| 5092 | 5094 |
| 5093 #endif // VM_OBJECT_H_ | 5095 #endif // VM_OBJECT_H_ |
| OLD | NEW |