| 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 1061 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1072 kInlinedCallerIdMapIndex = 2, | 1072 kInlinedCallerIdMapIndex = 2, |
| 1073 kInlinedIdToTokenPosIndex = 3, | 1073 kInlinedIdToTokenPosIndex = 3, |
| 1074 kInlinedMetadataSize = 4, | 1074 kInlinedMetadataSize = 4, |
| 1075 }; | 1075 }; |
| 1076 | 1076 |
| 1077 RAW_HEAP_OBJECT_IMPLEMENTATION(Code); | 1077 RAW_HEAP_OBJECT_IMPLEMENTATION(Code); |
| 1078 | 1078 |
| 1079 uword entry_point_; | 1079 uword entry_point_; |
| 1080 | 1080 |
| 1081 RawObject** from() { | 1081 RawObject** from() { |
| 1082 return reinterpret_cast<RawObject**>(&ptr()->active_instructions_); | 1082 return reinterpret_cast<RawObject**>(&ptr()->instructions_); |
| 1083 } | 1083 } |
| 1084 RawInstructions* active_instructions_; | |
| 1085 RawInstructions* instructions_; | 1084 RawInstructions* instructions_; |
| 1086 RawObjectPool* object_pool_; | 1085 RawObjectPool* object_pool_; |
| 1087 // If owner_ is Function::null() the owner is a regular stub. | 1086 // If owner_ is Function::null() the owner is a regular stub. |
| 1088 // If owner_ is a Class the owner is the allocation stub for that class. | 1087 // If owner_ is a Class the owner is the allocation stub for that class. |
| 1089 // Else, owner_ is a regular Dart Function. | 1088 // Else, owner_ is a regular Dart Function. |
| 1090 RawObject* owner_; // Function, Null, or a Class. | 1089 RawObject* owner_; // Function, Null, or a Class. |
| 1091 RawExceptionHandlers* exception_handlers_; | 1090 RawExceptionHandlers* exception_handlers_; |
| 1092 RawPcDescriptors* pc_descriptors_; | 1091 RawPcDescriptors* pc_descriptors_; |
| 1093 RawCodeSourceMap* code_source_map_; | 1092 RawCodeSourceMap* code_source_map_; |
| 1094 RawArray* stackmaps_; | 1093 RawArray* stackmaps_; |
| (...skipping 1265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2360 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == | 2359 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == |
| 2361 kTypedDataInt8ArrayViewCid + 15); | 2360 kTypedDataInt8ArrayViewCid + 15); |
| 2362 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); | 2361 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); |
| 2363 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); | 2362 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); |
| 2364 return (kNullCid - kTypedDataInt8ArrayCid); | 2363 return (kNullCid - kTypedDataInt8ArrayCid); |
| 2365 } | 2364 } |
| 2366 | 2365 |
| 2367 } // namespace dart | 2366 } // namespace dart |
| 2368 | 2367 |
| 2369 #endif // VM_RAW_OBJECT_H_ | 2368 #endif // VM_RAW_OBJECT_H_ |
| OLD | NEW |