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 1071 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1082 UNREACHABLE(); | 1082 UNREACHABLE(); |
1083 return NULL; | 1083 return NULL; |
1084 } | 1084 } |
1085 | 1085 |
1086 int32_t line_offset_; | 1086 int32_t line_offset_; |
1087 int32_t col_offset_; | 1087 int32_t col_offset_; |
1088 int8_t kind_; // Of type Kind. | 1088 int8_t kind_; // Of type Kind. |
1089 int64_t load_timestamp_; | 1089 int64_t load_timestamp_; |
1090 const uint8_t* kernel_data_; | 1090 const uint8_t* kernel_data_; |
1091 intptr_t kernel_data_size_; | 1091 intptr_t kernel_data_size_; |
| 1092 intptr_t kernel_script_index_; |
1092 }; | 1093 }; |
1093 | 1094 |
1094 | 1095 |
1095 class RawLibrary : public RawObject { | 1096 class RawLibrary : public RawObject { |
1096 enum LibraryState { | 1097 enum LibraryState { |
1097 kAllocated, // Initial state. | 1098 kAllocated, // Initial state. |
1098 kLoadRequested, // Compiler or script requested load of library. | 1099 kLoadRequested, // Compiler or script requested load of library. |
1099 kLoadInProgress, // Library is in the process of being loaded. | 1100 kLoadInProgress, // Library is in the process of being loaded. |
1100 kLoaded, // Library is loaded. | 1101 kLoaded, // Library is loaded. |
1101 kLoadError, // Error occurred during load of the Library. | 1102 kLoadError, // Error occurred during load of the Library. |
(...skipping 1394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2496 kTypedDataInt8ArrayViewCid + 15); | 2497 kTypedDataInt8ArrayViewCid + 15); |
2497 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); | 2498 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); |
2498 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); | 2499 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); |
2499 return (kNullCid - kTypedDataInt8ArrayCid); | 2500 return (kNullCid - kTypedDataInt8ArrayCid); |
2500 } | 2501 } |
2501 | 2502 |
2502 | 2503 |
2503 } // namespace dart | 2504 } // namespace dart |
2504 | 2505 |
2505 #endif // RUNTIME_VM_RAW_OBJECT_H_ | 2506 #endif // RUNTIME_VM_RAW_OBJECT_H_ |
OLD | NEW |