Skip to content

Commit 56d084c

Browse files
committed
tweak
1 parent 895d2f4 commit 56d084c

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

jscomp/core/lam_analysis.ml

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ let rec no_side_effects (lam : Lam.t) : bool =
4646
Ext_list.for_all args no_side_effects &&
4747
(
4848
match primitive with
49-
| Pccall {prim_name ; _} ->
49+
| Pccall {prim_name } ->
5050
begin
5151
match prim_name,args with
5252
| ("caml_register_named_value"

jscomp/core/lam_primitive.ml

+4-3
Original file line numberDiff line numberDiff line change
@@ -57,16 +57,17 @@ type t =
5757
| Pnegint | Paddint | Psubint | Pmulint | Pdivint | Pmodint
5858
| Pandint | Porint | Pxorint
5959
| Plslint | Plsrint | Pasrint
60-
| Pintcomp of Lam_compat.comparison
60+
6161
| Poffsetint of int
6262
| Poffsetref of int
6363
(* Float operations *)
6464
| Pintoffloat | Pfloatofint
6565
| Pnegfloat
66-
(* | Pabsfloat *) (* is {!Pervasives.abs_float} %abs_float*)
6766
| Paddfloat | Psubfloat | Pmulfloat | Pdivfloat
67+
| Pintcomp of Lam_compat.comparison
6868
| Pfloatcomp of Lam_compat.comparison
6969
| Pjscomp of Lam_compat.comparison
70+
| Pbintcomp of Lam_compat.boxed_integer * Lam_compat.comparison
7071
| Pjs_apply (*[f;arg0;arg1; arg2; ... argN]*)
7172
| Pjs_runtime_apply (* [f; [...]] *)
7273
(* String operations *)
@@ -108,7 +109,7 @@ type t =
108109
| Plslbint of Lam_compat.boxed_integer
109110
| Plsrbint of Lam_compat.boxed_integer
110111
| Pasrbint of Lam_compat.boxed_integer
111-
| Pbintcomp of Lam_compat.boxed_integer * Lam_compat.comparison
112+
112113
(* Compile time constants *)
113114
| Pctconst of Lam_compat.compile_time_constant
114115
(* byte swap *)

jscomp/core/lam_primitive.mli

+5-3
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,17 @@ type t =
5454
| Pnegint | Paddint | Psubint | Pmulint | Pdivint | Pmodint
5555
| Pandint | Porint | Pxorint
5656
| Plslint | Plsrint | Pasrint
57-
| Pintcomp of Lam_compat.comparison
57+
5858
| Poffsetint of int
5959
| Poffsetref of int
6060
| Pintoffloat | Pfloatofint
6161
| Pnegfloat
62-
(* | Pabsfloat *)
62+
6363
| Paddfloat | Psubfloat | Pmulfloat | Pdivfloat
64+
| Pintcomp of Lam_compat.comparison
6465
| Pfloatcomp of Lam_compat.comparison
6566
| Pjscomp of Lam_compat.comparison
67+
| Pbintcomp of Lam_compat.boxed_integer * Lam_compat.comparison
6668
| Pjs_apply (*[f;arg0;arg1; arg2; ... argN]*)
6769
| Pjs_runtime_apply (* [f; [...]] *)
6870
| Pstringlength
@@ -103,7 +105,7 @@ type t =
103105
| Plslbint of Lam_compat.boxed_integer
104106
| Plsrbint of Lam_compat.boxed_integer
105107
| Pasrbint of Lam_compat.boxed_integer
106-
| Pbintcomp of Lam_compat.boxed_integer * Lam_compat.comparison
108+
107109
(* Compile time constants *)
108110
| Pctconst of Lam_compat.compile_time_constant
109111
(* byte swap *)

0 commit comments

Comments
 (0)