@@ -290,7 +290,7 @@ let fuse_method_arity (parent : fusable_function) : fusable_function =
290
290
(function (Texp_poly _ , _ , _ ) -> true | _ -> false )
291
291
exp_extra
292
292
->
293
- begin match transl_alloc_mode method_.alloc_mode with
293
+ begin match transl_alloc_mode_r method_.alloc_mode with
294
294
| Alloc_heap -> ()
295
295
| Alloc_local ->
296
296
(* If we support locally-allocated objects, we'll also have to
@@ -466,7 +466,7 @@ and transl_exp0 ~in_new_scope ~scopes sort e =
466
466
Lconst (Const_block (0 , List. map extract_constant ll))
467
467
with Not_constant ->
468
468
Lprim (Pmakeblock (0 , Immutable , Some shape,
469
- transl_alloc_mode alloc_mode),
469
+ transl_alloc_mode_r alloc_mode),
470
470
ll,
471
471
(of_location ~scopes e.exp_loc))
472
472
end
@@ -508,7 +508,7 @@ and transl_exp0 ~in_new_scope ~scopes sort e =
508
508
begin match const_block with
509
509
| Some const_block -> const_block
510
510
| None ->
511
- let alloc_mode = transl_alloc_mode (Option. get alloc_mode) in
511
+ let alloc_mode = transl_alloc_mode_r (Option. get alloc_mode) in
512
512
let makeblock =
513
513
match cstr.cstr_shape with
514
514
| Constructor_uniform_value ->
@@ -534,7 +534,7 @@ and transl_exp0 ~in_new_scope ~scopes sort e =
534
534
that out by checking that the sort list is empty *)
535
535
lam)
536
536
else
537
- let alloc_mode = transl_alloc_mode (Option. get alloc_mode) in
537
+ let alloc_mode = transl_alloc_mode_r (Option. get alloc_mode) in
538
538
let makeblock =
539
539
match cstr.cstr_shape with
540
540
| Constructor_uniform_value ->
@@ -569,13 +569,13 @@ and transl_exp0 ~in_new_scope ~scopes sort e =
569
569
extract_constant lam]))
570
570
with Not_constant ->
571
571
Lprim (Pmakeblock (0 , Immutable , None ,
572
- transl_alloc_mode alloc_mode),
572
+ transl_alloc_mode_r alloc_mode),
573
573
[Lconst (const_int tag); lam],
574
574
of_location ~scopes e.exp_loc)
575
575
end
576
576
| Texp_record {fields; representation; extended_expression; alloc_mode} ->
577
577
transl_record ~scopes e.exp_loc e.exp_env
578
- (Option. map transl_alloc_mode alloc_mode)
578
+ (Option. map transl_alloc_mode_r alloc_mode)
579
579
fields representation extended_expression
580
580
| Texp_field (arg , id , lbl , float ) ->
581
581
let targ = transl_exp ~scopes Jkind.Sort. for_record arg in
@@ -595,7 +595,7 @@ and transl_exp0 ~in_new_scope ~scopes sort e =
595
595
| Boxing (alloc_mode , _ ) -> alloc_mode
596
596
| Non_boxing _ -> assert false
597
597
in
598
- let mode = transl_alloc_mode alloc_mode in
598
+ let mode = transl_alloc_mode_r alloc_mode in
599
599
Lprim (Pfloatfield (lbl.lbl_pos, sem, mode), [targ],
600
600
of_location ~scopes e.exp_loc)
601
601
| Record_ufloat ->
@@ -614,7 +614,7 @@ and transl_exp0 ~in_new_scope ~scopes sort e =
614
614
| Float_boxed ->
615
615
(match float with
616
616
| Boxing (mode , _ ) ->
617
- flat_read_float_boxed (transl_alloc_mode mode)
617
+ flat_read_float_boxed (transl_alloc_mode_r mode)
618
618
| Non_boxing _ ->
619
619
Misc. fatal_error
620
620
" expected typechecking to make [float] boxing mode\
@@ -668,7 +668,7 @@ and transl_exp0 ~in_new_scope ~scopes sort e =
668
668
transl_exp ~scopes lbl_sort newval],
669
669
of_location ~scopes e.exp_loc)
670
670
| Texp_array (amut , element_sort , expr_list , alloc_mode ) ->
671
- let mode = transl_alloc_mode alloc_mode in
671
+ let mode = transl_alloc_mode_r alloc_mode in
672
672
let kind = array_kind e element_sort in
673
673
let ll =
674
674
transl_list ~scopes
@@ -1578,7 +1578,7 @@ and transl_function ~in_new_scope ~scopes e params body
1578
1578
~alloc_mode ~ret_mode :sreturn_mode ~ret_sort :sreturn_sort ~region :sregion
1579
1579
~zero_alloc =
1580
1580
let attrs = e.exp_attributes in
1581
- let mode = transl_alloc_mode alloc_mode in
1581
+ let mode = transl_alloc_mode_r alloc_mode in
1582
1582
let assume_zero_alloc =
1583
1583
Builtin_attributes. assume_zero_alloc ~is_check_allowed: true zero_alloc
1584
1584
in
@@ -1981,7 +1981,7 @@ and transl_match ~scopes ~arg_sort ~return_sort e arg pat_expr_list partial =
1981
1981
match arg, exn_cases with
1982
1982
| {exp_desc = Texp_tuple (argl , alloc_mode )} , [] ->
1983
1983
assert (static_handlers = [] );
1984
- let mode = transl_alloc_mode alloc_mode in
1984
+ let mode = transl_alloc_mode_r alloc_mode in
1985
1985
let argl =
1986
1986
List. map (fun (_ , a ) -> (a, Jkind.Sort. for_tuple_element)) argl
1987
1987
in
@@ -2000,7 +2000,7 @@ and transl_match ~scopes ~arg_sort ~return_sort e arg pat_expr_list partial =
2000
2000
argl
2001
2001
|> List. split
2002
2002
in
2003
- let mode = transl_alloc_mode alloc_mode in
2003
+ let mode = transl_alloc_mode_r alloc_mode in
2004
2004
static_catch (transl_list ~scopes argl) val_ids
2005
2005
(Matching. for_multiple_match ~scopes ~return_layout e.exp_loc
2006
2006
lvars mode val_cases partial)
0 commit comments