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/globals.h" | 10 #include "vm/globals.h" |
(...skipping 1134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1145 NOT_IN_PRECOMPILED(RawArray* deopt_info_array_); | 1145 NOT_IN_PRECOMPILED(RawArray* deopt_info_array_); |
1146 // (code-offset, function, code) triples. | 1146 // (code-offset, function, code) triples. |
1147 NOT_IN_PRECOMPILED(RawArray* static_calls_target_table_); | 1147 NOT_IN_PRECOMPILED(RawArray* static_calls_target_table_); |
1148 // If return_address_metadata_ is a Smi, it is the offset to the prologue. | 1148 // If return_address_metadata_ is a Smi, it is the offset to the prologue. |
1149 // Else, return_address_metadata_ is null. | 1149 // Else, return_address_metadata_ is null. |
1150 NOT_IN_PRECOMPILED(RawObject* return_address_metadata_); | 1150 NOT_IN_PRECOMPILED(RawObject* return_address_metadata_); |
1151 NOT_IN_PRECOMPILED(RawLocalVarDescriptors* var_descriptors_); | 1151 NOT_IN_PRECOMPILED(RawLocalVarDescriptors* var_descriptors_); |
1152 NOT_IN_PRECOMPILED(RawArray* comments_); | 1152 NOT_IN_PRECOMPILED(RawArray* comments_); |
1153 RawObject** to() { | 1153 RawObject** to() { |
1154 #if defined(DART_PRECOMPILED_RUNTIME) | 1154 #if defined(DART_PRECOMPILED_RUNTIME) |
1155 return reinterpret_cast<RawObject**>(&ptr()->stackmaps_); | 1155 return reinterpret_cast<RawObject**>(&ptr()->code_source_map_); |
1156 #else | 1156 #else |
1157 return reinterpret_cast<RawObject**>(&ptr()->comments_); | 1157 return reinterpret_cast<RawObject**>(&ptr()->comments_); |
1158 #endif | 1158 #endif |
1159 } | 1159 } |
1160 | 1160 |
1161 // Compilation timestamp. | 1161 // Compilation timestamp. |
1162 NOT_IN_PRECOMPILED(int64_t compile_timestamp_); | 1162 NOT_IN_PRECOMPILED(int64_t compile_timestamp_); |
1163 | 1163 |
1164 // state_bits_ is a bitfield with three fields: | 1164 // state_bits_ is a bitfield with three fields: |
1165 // The optimized bit, the alive bit, and a count of the number of pointer | 1165 // The optimized bit, the alive bit, and a count of the number of pointer |
(...skipping 1267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2433 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == | 2433 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == |
2434 kTypedDataInt8ArrayViewCid + 15); | 2434 kTypedDataInt8ArrayViewCid + 15); |
2435 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); | 2435 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); |
2436 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); | 2436 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); |
2437 return (kNullCid - kTypedDataInt8ArrayCid); | 2437 return (kNullCid - kTypedDataInt8ArrayCid); |
2438 } | 2438 } |
2439 | 2439 |
2440 } // namespace dart | 2440 } // namespace dart |
2441 | 2441 |
2442 #endif // RUNTIME_VM_RAW_OBJECT_H_ | 2442 #endif // RUNTIME_VM_RAW_OBJECT_H_ |
OLD | NEW |