Skip to content

Commit e3a74ee

Browse files
committed
Merge branch 'jn/static_compile_3'
2 parents 35eced3 + 6b9224a commit e3a74ee

10 files changed

+627
-142
lines changed

src/builtins.c

+9-1
Original file line numberDiff line numberDiff line change
@@ -1131,6 +1131,12 @@ DLLEXPORT size_t jl_static_show(JL_STREAM *out, jl_value_t *v)
11311131
if (v == NULL) {
11321132
n += JL_PRINTF(out, "#<null>");
11331133
}
1134+
else if (v->type == NULL) {
1135+
n += JL_PRINTF(out, "<?::#null>");
1136+
}
1137+
else if ((uptrint_t)v->type < 4096U) {
1138+
n += JL_PRINTF(out, "<?::#%d>", (int)(uptrint_t)v->type);
1139+
}
11341140
else if (jl_is_lambda_info(v)) {
11351141
jl_lambda_info_t *li = (jl_lambda_info_t*)v;
11361142
n += jl_static_show(out, (jl_value_t*)li->module);
@@ -1141,6 +1147,8 @@ DLLEXPORT size_t jl_static_show(JL_STREAM *out, jl_value_t *v)
11411147
else {
11421148
n += JL_PRINTF(out, "(?)");
11431149
}
1150+
JL_PRINTF(out, " -> ");
1151+
jl_static_show(out, !jl_is_expr(li->ast) ? jl_uncompress_ast(li, li->ast) : li->ast);
11441152
}
11451153
else if (jl_is_tuple(v)) {
11461154
n += jl_show_tuple(out, (jl_tuple_t*)v, "(", ")", 1);
@@ -1239,7 +1247,7 @@ DLLEXPORT size_t jl_static_show(JL_STREAM *out, jl_value_t *v)
12391247
}
12401248
else if (jl_is_typevar(v)) {
12411249
n += jl_static_show(out, ((jl_tvar_t*)v)->lb);
1242-
n += JL_PRINTF(out, "<:%s<:", ((jl_tvar_t*)v)->name->name);
1250+
n += JL_PRINTF(out, "<:%s%s<:", (((jl_tvar_t*)v)->bound)?"#":"", ((jl_tvar_t*)v)->name->name);
12431251
n += jl_static_show(out, ((jl_tvar_t*)v)->ub);
12441252
}
12451253
else if (jl_is_module(v)) {

0 commit comments

Comments
 (0)