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/globals.h" | 9 #include "vm/globals.h" |
10 #include "vm/token.h" | 10 #include "vm/token.h" |
(...skipping 822 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
833 } | 833 } |
834 | 834 |
835 // Compilation timestamp. | 835 // Compilation timestamp. |
836 int64_t compile_timestamp_; | 836 int64_t compile_timestamp_; |
837 intptr_t pointer_offsets_length_; | 837 intptr_t pointer_offsets_length_; |
838 // Alive: If true, the embedded object pointers will be visited during GC. | 838 // Alive: If true, the embedded object pointers will be visited during GC. |
839 // This field cannot be shorter because of alignment issues on x64 | 839 // This field cannot be shorter because of alignment issues on x64 |
840 // architectures. | 840 // architectures. |
841 intptr_t state_bits_; // state, is_optimized, is_alive. | 841 intptr_t state_bits_; // state, is_optimized, is_alive. |
842 | 842 |
843 // PC offsets for code patching. | |
844 intptr_t entry_patch_pc_; | |
srdjan
2014/06/03 15:45:45
Please add offset_ to the name.
| |
845 intptr_t patch_code_pc_; | |
846 intptr_t lazy_deopt_pc_; | |
847 | |
843 // Variable length data follows here. | 848 // Variable length data follows here. |
844 int32_t data_[0]; | 849 int32_t data_[0]; |
845 | 850 |
846 friend class StackFrame; | 851 friend class StackFrame; |
847 }; | 852 }; |
848 | 853 |
849 | 854 |
850 class RawInstructions : public RawObject { | 855 class RawInstructions : public RawObject { |
851 RAW_HEAP_OBJECT_IMPLEMENTATION(Instructions); | 856 RAW_HEAP_OBJECT_IMPLEMENTATION(Instructions); |
852 | 857 |
(...skipping 992 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1845 COMPILE_ASSERT(kTypedDataInt8ArrayViewCid == kTypedDataInt8ArrayCid + 14); | 1850 COMPILE_ASSERT(kTypedDataInt8ArrayViewCid == kTypedDataInt8ArrayCid + 14); |
1846 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == | 1851 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == |
1847 kTypedDataInt8ArrayViewCid + 15); | 1852 kTypedDataInt8ArrayViewCid + 15); |
1848 COMPILE_ASSERT(kNullCid == kExternalTypedDataInt8ArrayCid + 14); | 1853 COMPILE_ASSERT(kNullCid == kExternalTypedDataInt8ArrayCid + 14); |
1849 return (kNullCid - kTypedDataInt8ArrayCid); | 1854 return (kNullCid - kTypedDataInt8ArrayCid); |
1850 } | 1855 } |
1851 | 1856 |
1852 } // namespace dart | 1857 } // namespace dart |
1853 | 1858 |
1854 #endif // VM_RAW_OBJECT_H_ | 1859 #endif // VM_RAW_OBJECT_H_ |
OLD | NEW |