@@ -204,7 +204,6 @@ let convert_record_repr ( x : Types.record_representation)
204
204
205
205
let lam_prim ~primitive :( p : Lambda.primitive ) ~args loc : Lam.t =
206
206
match p with
207
- | Pint_as_pointer
208
207
| Pidentity -> Ext_list. singleton_exn args
209
208
| Pccall _ -> assert false
210
209
| Prevapply -> assert false
@@ -469,22 +468,6 @@ let lam_prim ~primitive:( p : Lambda.primitive) ~args loc : Lam.t =
469
468
| Pint32 -> prim ~primitive: (Pasrint ) ~args loc
470
469
| Pint64 -> prim ~primitive: (Pasrint64 ) ~args loc
471
470
end
472
- | Pbigarraydim _
473
- | Pbigstring_load_16 _
474
- | Pbigstring_load_32 _
475
- | Pbigstring_load_64 _
476
- | Pbigstring_set_16 _
477
- | Pbigstring_set_32 _
478
- | Pbigstring_set_64 _
479
- | Pstring_load_16 _
480
- | Pstring_load_32 _
481
- | Pstring_load_64 _
482
- | Pstring_set_16 _
483
- | Pstring_set_32 _
484
- | Pbigarrayref _
485
- | Pbigarrayset _
486
- | Pstring_set_64 _ ->
487
- Location. raise_errorf ~loc " unsupported primitive"
488
471
| Pctconst x ->
489
472
begin match x with
490
473
| Word_size
@@ -525,9 +508,6 @@ let lam_prim ~primitive:( p : Lambda.primitive) ~args loc : Lam.t =
525
508
| Popaque -> Ext_list. singleton_exn args
526
509
| Psetfield_computed _ ->
527
510
prim ~primitive: Psetfield_computed ~args loc
528
- | Pbbswap _
529
- | Pbswap16
530
- | Pbittest
531
511
| Pduparray _ -> assert false
532
512
(* Does not exist since we compile array in js backend unlike native backend *)
533
513
@@ -833,10 +813,7 @@ let convert (exports : Set_ident.t) (lam : Lambda.lambda) : Lam.t * Lam_module_i
833
813
(Ext_list. map meth_args convert_aux) {ap_loc = loc; ap_inlined = Default_inline ; ap_status = App_na }
834
814
835
815
| Lsend _ -> assert false
836
- | Levent _ ->
837
- (* disabled by upstream*)
838
- assert false
839
- | Lifused (_ , _ ) -> assert false
816
+
840
817
841
818
and convert_let (kind : Lam_compat.let_kind ) id (e : Lambda.lambda ) body : Lam.t =
842
819
match kind, e with
0 commit comments