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 798 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
809 }; | 809 }; |
810 | 810 |
811 | 811 |
812 class RawCode : public RawObject { | 812 class RawCode : public RawObject { |
813 RAW_HEAP_OBJECT_IMPLEMENTATION(Code); | 813 RAW_HEAP_OBJECT_IMPLEMENTATION(Code); |
814 | 814 |
815 RawObject** from() { | 815 RawObject** from() { |
816 return reinterpret_cast<RawObject**>(&ptr()->instructions_); | 816 return reinterpret_cast<RawObject**>(&ptr()->instructions_); |
817 } | 817 } |
818 RawInstructions* instructions_; | 818 RawInstructions* instructions_; |
819 RawFunction* function_; | 819 RawObject* owner_; // Function, Null, or a smi (class id). |
turnidge
2014/02/28 19:23:37
I think we need a comment which explains the three
Cutch
2014/02/28 19:37:08
Done.
| |
820 RawExceptionHandlers* exception_handlers_; | 820 RawExceptionHandlers* exception_handlers_; |
821 RawPcDescriptors* pc_descriptors_; | 821 RawPcDescriptors* pc_descriptors_; |
822 RawArray* deopt_info_array_; | 822 RawArray* deopt_info_array_; |
823 RawArray* object_table_; | 823 RawArray* object_table_; |
824 RawArray* static_calls_target_table_; // (code-offset, function, code). | 824 RawArray* static_calls_target_table_; // (code-offset, function, code). |
825 RawArray* stackmaps_; | 825 RawArray* stackmaps_; |
826 RawLocalVarDescriptors* var_descriptors_; | 826 RawLocalVarDescriptors* var_descriptors_; |
827 RawArray* comments_; | 827 RawArray* comments_; |
828 RawObject** to() { | 828 RawObject** to() { |
829 return reinterpret_cast<RawObject**>(&ptr()->comments_); | 829 return reinterpret_cast<RawObject**>(&ptr()->comments_); |
(...skipping 938 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1768 // Make sure this is updated when new TypedData types are added. | 1768 // Make sure this is updated when new TypedData types are added. |
1769 ASSERT(kTypedDataInt8ArrayViewCid == kTypedDataInt8ArrayCid + 14); | 1769 ASSERT(kTypedDataInt8ArrayViewCid == kTypedDataInt8ArrayCid + 14); |
1770 ASSERT(kExternalTypedDataInt8ArrayCid == kTypedDataInt8ArrayViewCid + 15); | 1770 ASSERT(kExternalTypedDataInt8ArrayCid == kTypedDataInt8ArrayViewCid + 15); |
1771 ASSERT(kNullCid == kExternalTypedDataInt8ArrayCid + 14); | 1771 ASSERT(kNullCid == kExternalTypedDataInt8ArrayCid + 14); |
1772 return (kNullCid - kTypedDataInt8ArrayCid); | 1772 return (kNullCid - kTypedDataInt8ArrayCid); |
1773 } | 1773 } |
1774 | 1774 |
1775 } // namespace dart | 1775 } // namespace dart |
1776 | 1776 |
1777 #endif // VM_RAW_OBJECT_H_ | 1777 #endif // VM_RAW_OBJECT_H_ |
OLD | NEW |