| 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 23 matching lines...) Expand all Loading... |
| 34 V(LibraryPrefix) \ | 34 V(LibraryPrefix) \ |
| 35 V(Code) \ | 35 V(Code) \ |
| 36 V(Instructions) \ | 36 V(Instructions) \ |
| 37 V(PcDescriptors) \ | 37 V(PcDescriptors) \ |
| 38 V(Stackmap) \ | 38 V(Stackmap) \ |
| 39 V(LocalVarDescriptors) \ | 39 V(LocalVarDescriptors) \ |
| 40 V(ExceptionHandlers) \ | 40 V(ExceptionHandlers) \ |
| 41 V(Context) \ | 41 V(Context) \ |
| 42 V(ContextScope) \ | 42 V(ContextScope) \ |
| 43 V(ICData) \ | 43 V(ICData) \ |
| 44 V(SubtypeTestCache) \ |
| 44 V(Error) \ | 45 V(Error) \ |
| 45 V(ApiError) \ | 46 V(ApiError) \ |
| 46 V(LanguageError) \ | 47 V(LanguageError) \ |
| 47 V(UnhandledException) \ | 48 V(UnhandledException) \ |
| 48 V(UnwindError) \ | 49 V(UnwindError) \ |
| 49 V(Instance) \ | 50 V(Instance) \ |
| 50 V(Number) \ | 51 V(Number) \ |
| 51 V(Integer) \ | 52 V(Integer) \ |
| 52 V(Smi) \ | 53 V(Smi) \ |
| 53 V(Mint) \ | 54 V(Mint) \ |
| (...skipping 776 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 830 RawString* target_name_; // Name of target function. | 831 RawString* target_name_; // Name of target function. |
| 831 RawArray* ic_data_; // Contains test classes and target function. | 832 RawArray* ic_data_; // Contains test classes and target function. |
| 832 RawObject** to() { | 833 RawObject** to() { |
| 833 return reinterpret_cast<RawObject**>(&ptr()->ic_data_); | 834 return reinterpret_cast<RawObject**>(&ptr()->ic_data_); |
| 834 } | 835 } |
| 835 intptr_t id_; // Parser node id corresponding to this IC. | 836 intptr_t id_; // Parser node id corresponding to this IC. |
| 836 intptr_t num_args_tested_; // Number of arguments tested in IC. | 837 intptr_t num_args_tested_; // Number of arguments tested in IC. |
| 837 }; | 838 }; |
| 838 | 839 |
| 839 | 840 |
| 841 class RawSubtypeTestCache : public RawObject { |
| 842 RAW_HEAP_OBJECT_IMPLEMENTATION(SubtypeTestCache); |
| 843 RawArray* cache_; |
| 844 }; |
| 845 |
| 846 |
| 847 |
| 840 class RawError : public RawObject { | 848 class RawError : public RawObject { |
| 841 RAW_HEAP_OBJECT_IMPLEMENTATION(Error); | 849 RAW_HEAP_OBJECT_IMPLEMENTATION(Error); |
| 842 }; | 850 }; |
| 843 | 851 |
| 844 | 852 |
| 845 class RawApiError : public RawError { | 853 class RawApiError : public RawError { |
| 846 RAW_HEAP_OBJECT_IMPLEMENTATION(ApiError); | 854 RAW_HEAP_OBJECT_IMPLEMENTATION(ApiError); |
| 847 | 855 |
| 848 RawObject** from() { | 856 RawObject** from() { |
| 849 return reinterpret_cast<RawObject**>(&ptr()->message_); | 857 return reinterpret_cast<RawObject**>(&ptr()->message_); |
| (...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1199 intptr_t type_; // Uninitialized, simple or complex. | 1207 intptr_t type_; // Uninitialized, simple or complex. |
| 1200 intptr_t flags_; // Represents global/local, case insensitive, multiline. | 1208 intptr_t flags_; // Represents global/local, case insensitive, multiline. |
| 1201 | 1209 |
| 1202 // Variable length data follows here. | 1210 // Variable length data follows here. |
| 1203 uint8_t data_[0]; | 1211 uint8_t data_[0]; |
| 1204 }; | 1212 }; |
| 1205 | 1213 |
| 1206 } // namespace dart | 1214 } // namespace dart |
| 1207 | 1215 |
| 1208 #endif // VM_RAW_OBJECT_H_ | 1216 #endif // VM_RAW_OBJECT_H_ |
| OLD | NEW |