Skip to content

Commit c94fb7b

Browse files
committed
Tweak
1 parent cca4b89 commit c94fb7b

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

jscomp/core/lam_compile_primitive.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ let translate loc
450450
| Poffsetint n ->
451451
E.int32_add (Ext_list.singleton_exn args) (E.small_int n)
452452
| Poffsetref n ->
453-
let v = (Js_of_lam_block.field (Fld_record "contents") (Ext_list.singleton_exn args) 0l) in
453+
let v = Js_of_lam_block.field Lambda.ref_field_info (Ext_list.singleton_exn args) 0l in
454454
E.seq (E.assign v (E.int32_add v (E.small_int n))) E.unit
455455
| Psequand -> (* TODO: rhs is possibly a tail call *)
456456
begin match args with

lib/4.06.1/unstable/js_compiler.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74259,7 +74259,7 @@ type tag_info =
7425974259
let default_tag_info : tag_info = Blk_na ""
7426074260

7426174261
let ref_tag_info : tag_info = Blk_record [| "contents" |]
74262-
74262+
7426374263
type field_dbg_info =
7426474264
| Fld_na
7426574265
| Fld_record of string
@@ -120735,7 +120735,7 @@ let translate loc
120735120735
| Poffsetint n ->
120736120736
E.int32_add (Ext_list.singleton_exn args) (E.small_int n)
120737120737
| Poffsetref n ->
120738-
let v = (Js_of_lam_block.field (Fld_record "contents") (Ext_list.singleton_exn args) 0l) in
120738+
let v = Js_of_lam_block.field Lambda.ref_field_info (Ext_list.singleton_exn args) 0l in
120739120739
E.seq (E.assign v (E.int32_add v (E.small_int n))) E.unit
120740120740
| Psequand -> (* TODO: rhs is possibly a tail call *)
120741120741
begin match args with

lib/4.06.1/whole_compiler.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63212,7 +63212,7 @@ type tag_info =
6321263212
let default_tag_info : tag_info = Blk_na ""
6321363213

6321463214
let ref_tag_info : tag_info = Blk_record [| "contents" |]
63215-
63215+
6321663216
type field_dbg_info =
6321763217
| Fld_na
6321863218
| Fld_record of string
@@ -112408,7 +112408,7 @@ let translate loc
112408112408
| Poffsetint n ->
112409112409
E.int32_add (Ext_list.singleton_exn args) (E.small_int n)
112410112410
| Poffsetref n ->
112411-
let v = (Js_of_lam_block.field (Fld_record "contents") (Ext_list.singleton_exn args) 0l) in
112411+
let v = Js_of_lam_block.field Lambda.ref_field_info (Ext_list.singleton_exn args) 0l in
112412112412
E.seq (E.assign v (E.int32_add v (E.small_int n))) E.unit
112413112413
| Psequand -> (* TODO: rhs is possibly a tail call *)
112414112414
begin match args with

0 commit comments

Comments
 (0)