| 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 1031 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1042 } | 1042 } |
| 1043 RawInstructions* active_instructions_; | 1043 RawInstructions* active_instructions_; |
| 1044 RawInstructions* instructions_; | 1044 RawInstructions* instructions_; |
| 1045 RawObjectPool* object_pool_; | 1045 RawObjectPool* object_pool_; |
| 1046 // If owner_ is Function::null() the owner is a regular stub. | 1046 // If owner_ is Function::null() the owner is a regular stub. |
| 1047 // If owner_ is a Class the owner is the allocation stub for that class. | 1047 // If owner_ is a Class the owner is the allocation stub for that class. |
| 1048 // Else, owner_ is a regular Dart Function. | 1048 // Else, owner_ is a regular Dart Function. |
| 1049 RawObject* owner_; // Function, Null, or a Class. | 1049 RawObject* owner_; // Function, Null, or a Class. |
| 1050 RawExceptionHandlers* exception_handlers_; | 1050 RawExceptionHandlers* exception_handlers_; |
| 1051 RawPcDescriptors* pc_descriptors_; | 1051 RawPcDescriptors* pc_descriptors_; |
| 1052 RawArray* stackmaps_; |
| 1053 RawObject** to_snapshot() { |
| 1054 return reinterpret_cast<RawObject**>(&ptr()->stackmaps_); |
| 1055 } |
| 1052 RawArray* deopt_info_array_; | 1056 RawArray* deopt_info_array_; |
| 1053 RawArray* static_calls_target_table_; // (code-offset, function, code). | 1057 RawArray* static_calls_target_table_; // (code-offset, function, code). |
| 1054 RawArray* stackmaps_; | |
| 1055 RawLocalVarDescriptors* var_descriptors_; | 1058 RawLocalVarDescriptors* var_descriptors_; |
| 1056 RawArray* inlined_metadata_; | 1059 RawArray* inlined_metadata_; |
| 1057 RawArray* comments_; | 1060 RawArray* comments_; |
| 1058 // If return_address_metadata_ is a Smi, it is the offset to the prologue. | 1061 // If return_address_metadata_ is a Smi, it is the offset to the prologue. |
| 1059 // Else, return_address_metadata_ is null. | 1062 // Else, return_address_metadata_ is null. |
| 1060 RawObject* return_address_metadata_; | 1063 RawObject* return_address_metadata_; |
| 1061 RawObject** to() { | 1064 RawObject** to() { |
| 1062 return reinterpret_cast<RawObject**>(&ptr()->return_address_metadata_); | 1065 return reinterpret_cast<RawObject**>(&ptr()->return_address_metadata_); |
| 1063 } | 1066 } |
| 1064 | 1067 |
| (...skipping 1198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2263 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == | 2266 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == |
| 2264 kTypedDataInt8ArrayViewCid + 15); | 2267 kTypedDataInt8ArrayViewCid + 15); |
| 2265 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); | 2268 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); |
| 2266 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); | 2269 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); |
| 2267 return (kNullCid - kTypedDataInt8ArrayCid); | 2270 return (kNullCid - kTypedDataInt8ArrayCid); |
| 2268 } | 2271 } |
| 2269 | 2272 |
| 2270 } // namespace dart | 2273 } // namespace dart |
| 2271 | 2274 |
| 2272 #endif // VM_RAW_OBJECT_H_ | 2275 #endif // VM_RAW_OBJECT_H_ |
| OLD | NEW |