| 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 RUNTIME_VM_RAW_OBJECT_H_ | 5 #ifndef RUNTIME_VM_RAW_OBJECT_H_ |
| 6 #define RUNTIME_VM_RAW_OBJECT_H_ | 6 #define RUNTIME_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/exceptions.h" | 10 #include "vm/exceptions.h" |
| (...skipping 1043 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1054 kKernelTag, | 1054 kKernelTag, |
| 1055 }; | 1055 }; |
| 1056 | 1056 |
| 1057 private: | 1057 private: |
| 1058 RAW_HEAP_OBJECT_IMPLEMENTATION(Script); | 1058 RAW_HEAP_OBJECT_IMPLEMENTATION(Script); |
| 1059 | 1059 |
| 1060 RawObject** from() { return reinterpret_cast<RawObject**>(&ptr()->url_); } | 1060 RawObject** from() { return reinterpret_cast<RawObject**>(&ptr()->url_); } |
| 1061 RawString* url_; | 1061 RawString* url_; |
| 1062 RawString* resolved_url_; | 1062 RawString* resolved_url_; |
| 1063 RawArray* compile_time_constants_; | 1063 RawArray* compile_time_constants_; |
| 1064 RawArray* line_starts_; | 1064 RawTypedData* line_starts_; |
| 1065 RawArray* debug_positions_; | 1065 RawArray* debug_positions_; |
| 1066 RawArray* yield_positions_; | 1066 RawArray* yield_positions_; |
| 1067 RawTypedData* kernel_string_offsets_; | 1067 RawTypedData* kernel_string_offsets_; |
| 1068 RawTypedData* kernel_string_data_; | 1068 RawTypedData* kernel_string_data_; |
| 1069 RawTypedData* kernel_canonical_names_; | 1069 RawTypedData* kernel_canonical_names_; |
| 1070 RawTokenStream* tokens_; | 1070 RawTokenStream* tokens_; |
| 1071 RawString* source_; | 1071 RawString* source_; |
| 1072 RawObject** to() { return reinterpret_cast<RawObject**>(&ptr()->source_); } | 1072 RawObject** to() { return reinterpret_cast<RawObject**>(&ptr()->source_); } |
| 1073 RawObject** to_snapshot(Snapshot::Kind kind) { | 1073 RawObject** to_snapshot(Snapshot::Kind kind) { |
| 1074 switch (kind) { | 1074 switch (kind) { |
| (...skipping 1364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2439 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == | 2439 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == |
| 2440 kTypedDataInt8ArrayViewCid + 15); | 2440 kTypedDataInt8ArrayViewCid + 15); |
| 2441 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); | 2441 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); |
| 2442 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); | 2442 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); |
| 2443 return (kNullCid - kTypedDataInt8ArrayCid); | 2443 return (kNullCid - kTypedDataInt8ArrayCid); |
| 2444 } | 2444 } |
| 2445 | 2445 |
| 2446 } // namespace dart | 2446 } // namespace dart |
| 2447 | 2447 |
| 2448 #endif // RUNTIME_VM_RAW_OBJECT_H_ | 2448 #endif // RUNTIME_VM_RAW_OBJECT_H_ |
| OLD | NEW |