Skip to content

Commit

Permalink
deal with a_constructor in hxb
Browse files Browse the repository at this point in the history
  • Loading branch information
Simn committed Feb 12, 2025
1 parent a5b1988 commit e1bbeb4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/compiler/hxb/hxbReader.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1589,6 +1589,7 @@ class hxb_reader
a.a_read <- self#read_option (fun () -> self#read_field_ref);
a.a_write <- self#read_option (fun () -> self#read_field_ref);
a.a_call <- self#read_option (fun () -> self#read_field_ref);
a.a_constructor <- self#read_option (fun () -> self#read_field_ref);

a.a_ops <- self#read_list (fun () ->
let i = read_byte ch in
Expand Down
1 change: 1 addition & 0 deletions src/compiler/hxb/hxbWriter.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1918,6 +1918,7 @@ module HxbWriter = struct
Chunk.write_option writer.chunk a.a_read (write_field_ref writer c CfrStatic );
Chunk.write_option writer.chunk a.a_write (write_field_ref writer c CfrStatic);
Chunk.write_option writer.chunk a.a_call (write_field_ref writer c CfrStatic);
Chunk.write_option writer.chunk a.a_constructor (write_field_ref writer c CfrStatic);

Chunk.write_list writer.chunk a.a_ops (fun (op, cf) ->
Chunk.write_u8 writer.chunk (binop_index op);
Expand Down

0 comments on commit e1bbeb4

Please sign in to comment.