| 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 1713 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1724 } | 1724 } |
| 1725 | 1725 |
| 1726 HEAP_OBJECT_IMPLEMENTATION(TokenStream, Object); | 1726 HEAP_OBJECT_IMPLEMENTATION(TokenStream, Object); |
| 1727 friend class Class; | 1727 friend class Class; |
| 1728 }; | 1728 }; |
| 1729 | 1729 |
| 1730 | 1730 |
| 1731 class Script : public Object { | 1731 class Script : public Object { |
| 1732 public: | 1732 public: |
| 1733 RawString* url() const { return raw_ptr()->url_; } | 1733 RawString* url() const { return raw_ptr()->url_; } |
| 1734 RawString* source() const; | 1734 bool HasSource() const; |
| 1735 RawString* Source() const; |
| 1735 RawScript::Kind kind() const { return raw_ptr()->kind_; } | 1736 RawScript::Kind kind() const { return raw_ptr()->kind_; } |
| 1736 | 1737 |
| 1737 RawTokenStream* tokens() const { return raw_ptr()->tokens_; } | 1738 RawTokenStream* tokens() const { return raw_ptr()->tokens_; } |
| 1738 | 1739 |
| 1739 void Tokenize(const String& private_key) const; | 1740 void Tokenize(const String& private_key) const; |
| 1740 | 1741 |
| 1741 RawString* GetLine(intptr_t line_number) const; | 1742 RawString* GetLine(intptr_t line_number) const; |
| 1742 | 1743 |
| 1743 RawString* GetSnippet(intptr_t from_line, | 1744 RawString* GetSnippet(intptr_t from_line, |
| 1744 intptr_t from_column, | 1745 intptr_t from_column, |
| (...skipping 3347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5092 } | 5093 } |
| 5093 | 5094 |
| 5094 | 5095 |
| 5095 intptr_t Stackmap::SizeInBits() const { | 5096 intptr_t Stackmap::SizeInBits() const { |
| 5096 return (Smi::Value(raw_ptr()->bitmap_size_in_bytes_) * kBitsPerByte); | 5097 return (Smi::Value(raw_ptr()->bitmap_size_in_bytes_) * kBitsPerByte); |
| 5097 } | 5098 } |
| 5098 | 5099 |
| 5099 } // namespace dart | 5100 } // namespace dart |
| 5100 | 5101 |
| 5101 #endif // VM_OBJECT_H_ | 5102 #endif // VM_OBJECT_H_ |
| OLD | NEW |