From e1bbeb42b86ef0c055447be9d2dd6d6420f74d66 Mon Sep 17 00:00:00 2001 From: Simon Krajewski Date: Wed, 12 Feb 2025 18:40:39 +0100 Subject: [PATCH] deal with a_constructor in hxb --- src/compiler/hxb/hxbReader.ml | 1 + src/compiler/hxb/hxbWriter.ml | 1 + 2 files changed, 2 insertions(+) diff --git a/src/compiler/hxb/hxbReader.ml b/src/compiler/hxb/hxbReader.ml index e710c8033d0..f6a475f5d6f 100644 --- a/src/compiler/hxb/hxbReader.ml +++ b/src/compiler/hxb/hxbReader.ml @@ -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 diff --git a/src/compiler/hxb/hxbWriter.ml b/src/compiler/hxb/hxbWriter.ml index 8bd88f42bed..12282fcad79 100644 --- a/src/compiler/hxb/hxbWriter.ml +++ b/src/compiler/hxb/hxbWriter.ml @@ -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);