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 1085 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1096 kInlinedIntervalsIndex = 0, | 1096 kInlinedIntervalsIndex = 0, |
1097 kInlinedIdToFunctionIndex = 1, | 1097 kInlinedIdToFunctionIndex = 1, |
1098 kInlinedCallerIdMapIndex = 2, | 1098 kInlinedCallerIdMapIndex = 2, |
1099 kInlinedIdToTokenPosIndex = 3, | 1099 kInlinedIdToTokenPosIndex = 3, |
1100 kInlinedMetadataSize = 4, | 1100 kInlinedMetadataSize = 4, |
1101 }; | 1101 }; |
1102 | 1102 |
1103 RAW_HEAP_OBJECT_IMPLEMENTATION(Code); | 1103 RAW_HEAP_OBJECT_IMPLEMENTATION(Code); |
1104 | 1104 |
1105 uword entry_point_; | 1105 uword entry_point_; |
| 1106 uword checked_entry_point_; |
1106 | 1107 |
1107 RawObject** from() { | 1108 RawObject** from() { |
1108 return reinterpret_cast<RawObject**>(&ptr()->active_instructions_); | 1109 return reinterpret_cast<RawObject**>(&ptr()->active_instructions_); |
1109 } | 1110 } |
1110 RawInstructions* active_instructions_; | 1111 RawInstructions* active_instructions_; |
1111 RawInstructions* instructions_; | 1112 RawInstructions* instructions_; |
1112 RawObjectPool* object_pool_; | 1113 RawObjectPool* object_pool_; |
1113 // If owner_ is Function::null() the owner is a regular stub. | 1114 // If owner_ is Function::null() the owner is a regular stub. |
1114 // If owner_ is a Class the owner is the allocation stub for that class. | 1115 // If owner_ is a Class the owner is the allocation stub for that class. |
1115 // Else, owner_ is a regular Dart Function. | 1116 // Else, owner_ is a regular Dart Function. |
(...skipping 1307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2423 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == | 2424 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == |
2424 kTypedDataInt8ArrayViewCid + 15); | 2425 kTypedDataInt8ArrayViewCid + 15); |
2425 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); | 2426 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); |
2426 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); | 2427 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); |
2427 return (kNullCid - kTypedDataInt8ArrayCid); | 2428 return (kNullCid - kTypedDataInt8ArrayCid); |
2428 } | 2429 } |
2429 | 2430 |
2430 } // namespace dart | 2431 } // namespace dart |
2431 | 2432 |
2432 #endif // VM_RAW_OBJECT_H_ | 2433 #endif // VM_RAW_OBJECT_H_ |
OLD | NEW |