Showing the changes to src/include/runtime.h (1 of 16 files). Show all
Unified · Split
| @@ -65,7 +65,7 @@ namespace disvm · 64 unmodified lines | ||
| 65 | 65 | vm_alloc_instance_finalizer_t finalizer = type_descriptor_t::no_finalizer); |
| 66 | 66 | |
| 67 | 67 | public: |
| 68 | − type_descriptor_t(word_t size_in_bytes, word_t map_in_bytes, const byte_t * pointer_map, vm_alloc_instance_finalizer_t finalizer); | |
| 68 | + type_descriptor_t(word_t size_in_bytes, word_t map_in_bytes, const byte_t * pointer_map, vm_alloc_instance_finalizer_t finalizer, const char *debug_name); | |
| 69 | 69 | type_descriptor_t(const type_descriptor_t&) = delete; |
| 70 | 70 | type_descriptor_t& operator=(const type_descriptor_t&) = delete; |
| 71 | 71 | |
| @@ -73,6 +73,9 @@ namespace disvm · 1 unmodified line | ||
| 73 | 73 | const word_t map_in_bytes; |
| 74 | 74 | const byte_t * const pointer_map; |
| 75 | 75 | const vm_alloc_instance_finalizer_t finalizer; |
| 76 | +#ifndef NDEBUG | |
| 77 | + const char *debug_type_name; | |
| 78 | +#endif | |
| 76 | 79 | }; |
| 77 | 80 | |
| 78 | 81 | // Access to type descriptors for VM intrinsic types |