| 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_RAW_OBJECT_H_ | 5 #ifndef VM_RAW_OBJECT_H_ |
| 6 #define VM_RAW_OBJECT_H_ | 6 #define VM_RAW_OBJECT_H_ |
| 7 | 7 |
| 8 #include "platform/assert.h" | 8 #include "platform/assert.h" |
| 9 #include "vm/globals.h" | 9 #include "vm/globals.h" |
| 10 #include "vm/token.h" | 10 #include "vm/token.h" |
| (...skipping 726 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 737 kPatchTag, | 737 kPatchTag, |
| 738 }; | 738 }; |
| 739 | 739 |
| 740 private: | 740 private: |
| 741 RAW_HEAP_OBJECT_IMPLEMENTATION(Script); | 741 RAW_HEAP_OBJECT_IMPLEMENTATION(Script); |
| 742 | 742 |
| 743 RawObject** from() { return reinterpret_cast<RawObject**>(&ptr()->url_); } | 743 RawObject** from() { return reinterpret_cast<RawObject**>(&ptr()->url_); } |
| 744 RawString* url_; | 744 RawString* url_; |
| 745 RawString* source_; | 745 RawString* source_; |
| 746 RawTokenStream* tokens_; | 746 RawTokenStream* tokens_; |
| 747 RawTypedData* token_pos_to_line_nr_; |
| 747 RawObject** to() { return reinterpret_cast<RawObject**>(&ptr()->tokens_); } | 748 RawObject** to() { return reinterpret_cast<RawObject**>(&ptr()->tokens_); } |
| 748 | 749 |
| 749 intptr_t line_offset_; | 750 intptr_t line_offset_; |
| 750 intptr_t col_offset_; | 751 intptr_t col_offset_; |
| 751 int8_t kind_; // Of type Kind. | 752 int8_t kind_; // Of type Kind. |
| 752 }; | 753 }; |
| 753 | 754 |
| 754 | 755 |
| 755 class RawLibrary : public RawObject { | 756 class RawLibrary : public RawObject { |
| 756 enum LibraryState { | 757 enum LibraryState { |
| (...skipping 1099 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1856 COMPILE_ASSERT(kTypedDataInt8ArrayViewCid == kTypedDataInt8ArrayCid + 14); | 1857 COMPILE_ASSERT(kTypedDataInt8ArrayViewCid == kTypedDataInt8ArrayCid + 14); |
| 1857 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == | 1858 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == |
| 1858 kTypedDataInt8ArrayViewCid + 15); | 1859 kTypedDataInt8ArrayViewCid + 15); |
| 1859 COMPILE_ASSERT(kNullCid == kExternalTypedDataInt8ArrayCid + 14); | 1860 COMPILE_ASSERT(kNullCid == kExternalTypedDataInt8ArrayCid + 14); |
| 1860 return (kNullCid - kTypedDataInt8ArrayCid); | 1861 return (kNullCid - kTypedDataInt8ArrayCid); |
| 1861 } | 1862 } |
| 1862 | 1863 |
| 1863 } // namespace dart | 1864 } // namespace dart |
| 1864 | 1865 |
| 1865 #endif // VM_RAW_OBJECT_H_ | 1866 #endif // VM_RAW_OBJECT_H_ |
| OLD | NEW |