| 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/atomic.h" | 9 #include "vm/atomic.h" |
| 10 #include "vm/globals.h" | 10 #include "vm/globals.h" |
| (...skipping 850 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 861 }; | 861 }; |
| 862 | 862 |
| 863 | 863 |
| 864 class RawScript : public RawObject { | 864 class RawScript : public RawObject { |
| 865 public: | 865 public: |
| 866 enum Kind { | 866 enum Kind { |
| 867 kScriptTag = 0, | 867 kScriptTag = 0, |
| 868 kLibraryTag, | 868 kLibraryTag, |
| 869 kSourceTag, | 869 kSourceTag, |
| 870 kPatchTag, | 870 kPatchTag, |
| 871 kEvaluateTag, |
| 871 }; | 872 }; |
| 872 | 873 |
| 873 private: | 874 private: |
| 874 RAW_HEAP_OBJECT_IMPLEMENTATION(Script); | 875 RAW_HEAP_OBJECT_IMPLEMENTATION(Script); |
| 875 | 876 |
| 876 RawObject** from() { return reinterpret_cast<RawObject**>(&ptr()->url_); } | 877 RawObject** from() { return reinterpret_cast<RawObject**>(&ptr()->url_); } |
| 877 RawString* url_; | 878 RawString* url_; |
| 878 RawTokenStream* tokens_; | 879 RawTokenStream* tokens_; |
| 879 RawObject** to_snapshot() { | 880 RawObject** to_snapshot() { |
| 880 return reinterpret_cast<RawObject**>(&ptr()->tokens_); | 881 return reinterpret_cast<RawObject**>(&ptr()->tokens_); |
| (...skipping 1281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2162 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == | 2163 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == |
| 2163 kTypedDataInt8ArrayViewCid + 15); | 2164 kTypedDataInt8ArrayViewCid + 15); |
| 2164 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); | 2165 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); |
| 2165 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); | 2166 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); |
| 2166 return (kNullCid - kTypedDataInt8ArrayCid); | 2167 return (kNullCid - kTypedDataInt8ArrayCid); |
| 2167 } | 2168 } |
| 2168 | 2169 |
| 2169 } // namespace dart | 2170 } // namespace dart |
| 2170 | 2171 |
| 2171 #endif // VM_RAW_OBJECT_H_ | 2172 #endif // VM_RAW_OBJECT_H_ |
| OLD | NEW |