intern path values in bytecode

This commit is contained in:
Matthew Flatt 2015-09-01 15:54:41 -06:00
parent 929db29b67
commit 53821a4997

View File

@ -2603,7 +2603,13 @@ print(Scheme_Object *obj, int notdisplay, int compact, Scheme_Hash_Table *ht,
/* Needed for srclocs in procedure names */
Scheme_Object *idx;
int l;
idx = scheme_hash_get(mt->intern_map, obj);
if (!idx)
scheme_hash_set(mt->intern_map, obj, obj);
else
obj = idx;
idx = get_symtab_idx(mt, obj);
if (idx) {
print_symtab_ref(pp, idx);