| 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 1008 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1019 private: | 1019 private: |
| 1020 RAW_HEAP_OBJECT_IMPLEMENTATION(Script); | 1020 RAW_HEAP_OBJECT_IMPLEMENTATION(Script); |
| 1021 | 1021 |
| 1022 RawObject** from() { return reinterpret_cast<RawObject**>(&ptr()->url_); } | 1022 RawObject** from() { return reinterpret_cast<RawObject**>(&ptr()->url_); } |
| 1023 RawString* url_; | 1023 RawString* url_; |
| 1024 RawString* resolved_url_; | 1024 RawString* resolved_url_; |
| 1025 RawArray* compile_time_constants_; | 1025 RawArray* compile_time_constants_; |
| 1026 RawArray* line_starts_; | 1026 RawArray* line_starts_; |
| 1027 RawArray* debug_positions_; | 1027 RawArray* debug_positions_; |
| 1028 RawArray* yield_positions_; | 1028 RawArray* yield_positions_; |
| 1029 RawTypedData* kernel_strings_; |
| 1029 RawTokenStream* tokens_; | 1030 RawTokenStream* tokens_; |
| 1030 RawString* source_; | 1031 RawString* source_; |
| 1031 RawObject** to() { return reinterpret_cast<RawObject**>(&ptr()->source_); } | 1032 RawObject** to() { return reinterpret_cast<RawObject**>(&ptr()->source_); } |
| 1032 RawObject** to_snapshot(Snapshot::Kind kind) { | 1033 RawObject** to_snapshot(Snapshot::Kind kind) { |
| 1033 switch (kind) { | 1034 switch (kind) { |
| 1034 case Snapshot::kAppAOT: | 1035 case Snapshot::kAppAOT: |
| 1035 return reinterpret_cast<RawObject**>(&ptr()->url_); | 1036 return reinterpret_cast<RawObject**>(&ptr()->url_); |
| 1036 case Snapshot::kCore: | 1037 case Snapshot::kCore: |
| 1037 case Snapshot::kAppJIT: | 1038 case Snapshot::kAppJIT: |
| 1038 case Snapshot::kScript: | 1039 case Snapshot::kScript: |
| (...skipping 1397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2436 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == | 2437 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == |
| 2437 kTypedDataInt8ArrayViewCid + 15); | 2438 kTypedDataInt8ArrayViewCid + 15); |
| 2438 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); | 2439 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); |
| 2439 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); | 2440 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); |
| 2440 return (kNullCid - kTypedDataInt8ArrayCid); | 2441 return (kNullCid - kTypedDataInt8ArrayCid); |
| 2441 } | 2442 } |
| 2442 | 2443 |
| 2443 } // namespace dart | 2444 } // namespace dart |
| 2444 | 2445 |
| 2445 #endif // RUNTIME_VM_RAW_OBJECT_H_ | 2446 #endif // RUNTIME_VM_RAW_OBJECT_H_ |
| OLD | NEW |