Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[hxb] restore lazy wrapping for abstracts #11928

Draft
wants to merge 1 commit into
base: development
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
[hxb] restore lazy wrapping for abstracts
kLabz committed Jan 20, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 4c80e90887cb0396c3ef851ceebb74308fbdda77
20 changes: 10 additions & 10 deletions src/compiler/hxb/hxbReader.ml
Original file line number Diff line number Diff line change
@@ -769,9 +769,9 @@ class hxb_reader
)
| 12 ->
let a = self#read_abstract_ref in
(* self#make_lazy_type_dynamic (fun () -> *)
self#make_lazy_type_dynamic (fun () ->
TType(abstract_module_type (Lazy.force a) [],[])
(* ) *)
)
| 13 ->
let e = self#read_expr in
let c = {null_class with cl_kind = KExpr e; cl_module = current_module } in
@@ -898,28 +898,28 @@ class hxb_reader
)
| 70 ->
let a = self#read_abstract_ref in
(* self#make_lazy_type_dynamic (fun () -> *)
self#make_lazy_type_dynamic (fun () ->
TAbstract(Lazy.force a,[])
(* ) *)
)
| 71 ->
let a = self#read_abstract_ref in
let t1 = self#read_type_instance in
(* self#make_lazy_type_dynamic (fun () -> *)
self#make_lazy_type_dynamic (fun () ->
TAbstract(Lazy.force a,[t1])
(* ) *)
)
| 72 ->
let a = self#read_abstract_ref in
let t1 = self#read_type_instance in
let t2 = self#read_type_instance in
(* self#make_lazy_type_dynamic (fun () -> *)
self#make_lazy_type_dynamic (fun () ->
TAbstract(Lazy.force a,[t1;t2])
(* ) *)
)
| 79 ->
let a = self#read_abstract_ref in
let tl = self#read_types in
(* self#make_lazy_type_dynamic (fun () -> *)
self#make_lazy_type_dynamic (fun () ->
TAbstract(Lazy.force a,tl)
(* ) *)
)
| 80 ->
empty_anon
| 81 ->