| 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 1117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1128 } | 1128 } |
| 1129 RawInstructions* active_instructions_; | 1129 RawInstructions* active_instructions_; |
| 1130 RawInstructions* instructions_; | 1130 RawInstructions* instructions_; |
| 1131 RawObjectPool* object_pool_; | 1131 RawObjectPool* object_pool_; |
| 1132 // If owner_ is Function::null() the owner is a regular stub. | 1132 // If owner_ is Function::null() the owner is a regular stub. |
| 1133 // If owner_ is a Class the owner is the allocation stub for that class. | 1133 // If owner_ is a Class the owner is the allocation stub for that class. |
| 1134 // Else, owner_ is a regular Dart Function. | 1134 // Else, owner_ is a regular Dart Function. |
| 1135 RawObject* owner_; // Function, Null, or a Class. | 1135 RawObject* owner_; // Function, Null, or a Class. |
| 1136 RawExceptionHandlers* exception_handlers_; | 1136 RawExceptionHandlers* exception_handlers_; |
| 1137 RawPcDescriptors* pc_descriptors_; | 1137 RawPcDescriptors* pc_descriptors_; |
| 1138 RawCodeSourceMap* code_source_map_; | |
| 1139 RawArray* stackmaps_; | 1138 RawArray* stackmaps_; |
| 1140 RawObject** to_snapshot() { | |
| 1141 return reinterpret_cast<RawObject**>(&ptr()->stackmaps_); | |
| 1142 } | |
| 1143 RawArray* deopt_info_array_; | 1139 RawArray* deopt_info_array_; |
| 1144 RawArray* static_calls_target_table_; // (code-offset, function, code). | 1140 RawArray* static_calls_target_table_; // (code-offset, function, code). |
| 1145 RawLocalVarDescriptors* var_descriptors_; | 1141 RawLocalVarDescriptors* var_descriptors_; |
| 1146 RawArray* inlined_metadata_; | 1142 RawArray* inlined_metadata_; |
| 1143 RawCodeSourceMap* code_source_map_; |
| 1147 RawArray* comments_; | 1144 RawArray* comments_; |
| 1148 // If return_address_metadata_ is a Smi, it is the offset to the prologue. | 1145 // If return_address_metadata_ is a Smi, it is the offset to the prologue. |
| 1149 // Else, return_address_metadata_ is null. | 1146 // Else, return_address_metadata_ is null. |
| 1150 RawObject* return_address_metadata_; | 1147 RawObject* return_address_metadata_; |
| 1151 RawObject** to() { | 1148 RawObject** to() { |
| 1152 return reinterpret_cast<RawObject**>(&ptr()->return_address_metadata_); | 1149 return reinterpret_cast<RawObject**>(&ptr()->return_address_metadata_); |
| 1153 } | 1150 } |
| 1154 | 1151 |
| 1155 // Compilation timestamp. | 1152 // Compilation timestamp. |
| 1156 int64_t compile_timestamp_; | 1153 int64_t compile_timestamp_; |
| (...skipping 1283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2440 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == | 2437 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == |
| 2441 kTypedDataInt8ArrayViewCid + 15); | 2438 kTypedDataInt8ArrayViewCid + 15); |
| 2442 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); | 2439 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); |
| 2443 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); | 2440 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); |
| 2444 return (kNullCid - kTypedDataInt8ArrayCid); | 2441 return (kNullCid - kTypedDataInt8ArrayCid); |
| 2445 } | 2442 } |
| 2446 | 2443 |
| 2447 } // namespace dart | 2444 } // namespace dart |
| 2448 | 2445 |
| 2449 #endif // VM_RAW_OBJECT_H_ | 2446 #endif // VM_RAW_OBJECT_H_ |
| OLD | NEW |