File tree Expand file tree Collapse file tree 4 files changed +11
-31
lines changed Expand file tree Collapse file tree 4 files changed +11
-31
lines changed Original file line number Diff line number Diff line change 29
29
since in this case it can not be global?
30
30
31
31
*)
32
- let count_collects () =
32
+ let count_collects my_export_set =
33
33
object (self )
34
- inherit Js_fold. fold as super
34
+ inherit Js_fold. fold
35
35
(* collect used status*)
36
36
val stats : int Hash_ident .t = Hash_ident .create 83
37
37
(* collect all def sites *)
38
38
val defined_idents : J .variable_declaration Hash_ident .t = Hash_ident .create 83
39
39
40
- val mutable my_export_set : Set_ident. t = Set_ident. empty
41
-
42
40
method add_use id =
43
41
Hash_ident. add_or_update stats id 1 ~update: succ
44
- method! program x =
45
- my_export_set < - x.export_set ;
46
- super#program x
47
42
method! variable_declaration
48
43
({ident; value ; property = _ ; ident_info = _} as v)
49
44
=
@@ -76,5 +71,5 @@ let count_collects () =
76
71
77
72
78
73
let get_stats (program : J.program ) : J. variable_declaration Hash_ident. t
79
- = ((count_collects () ) #program program) #get_stats
74
+ = ((count_collects program.export_set ) #program program) #get_stats
80
75
Original file line number Diff line number Diff line change @@ -102602,21 +102602,16 @@ end = struct
102602
102602
since in this case it can not be global?
102603
102603
102604
102604
*)
102605
- let count_collects () =
102605
+ let count_collects my_export_set =
102606
102606
object (self)
102607
- inherit Js_fold.fold as super
102607
+ inherit Js_fold.fold
102608
102608
(* collect used status*)
102609
102609
val stats : int Hash_ident.t = Hash_ident.create 83
102610
102610
(* collect all def sites *)
102611
102611
val defined_idents : J.variable_declaration Hash_ident.t = Hash_ident.create 83
102612
102612
102613
- val mutable my_export_set : Set_ident.t = Set_ident.empty
102614
-
102615
102613
method add_use id =
102616
102614
Hash_ident.add_or_update stats id 1 ~update:succ
102617
- method! program x =
102618
- my_export_set <- x.export_set ;
102619
- super#program x
102620
102615
method! variable_declaration
102621
102616
({ident; value ; property = _ ; ident_info = _} as v)
102622
102617
=
@@ -102649,7 +102644,7 @@ let count_collects () =
102649
102644
102650
102645
102651
102646
let get_stats (program : J.program) : J.variable_declaration Hash_ident.t
102652
- = ((count_collects () ) #program program) #get_stats
102647
+ = ((count_collects program.export_set ) #program program) #get_stats
102653
102648
102654
102649
end
102655
102650
module Js_pass_tailcall_inline : sig
Original file line number Diff line number Diff line change @@ -102602,21 +102602,16 @@ end = struct
102602
102602
since in this case it can not be global?
102603
102603
102604
102604
*)
102605
- let count_collects () =
102605
+ let count_collects my_export_set =
102606
102606
object (self)
102607
102607
inherit Js_fold.fold as super
102608
102608
(* collect used status*)
102609
102609
val stats : int Hash_ident.t = Hash_ident.create 83
102610
102610
(* collect all def sites *)
102611
102611
val defined_idents : J.variable_declaration Hash_ident.t = Hash_ident.create 83
102612
102612
102613
- val mutable my_export_set : Set_ident.t = Set_ident.empty
102614
-
102615
102613
method add_use id =
102616
102614
Hash_ident.add_or_update stats id 1 ~update:succ
102617
- method! program x =
102618
- my_export_set <- x.export_set ;
102619
- super#program x
102620
102615
method! variable_declaration
102621
102616
({ident; value ; property = _ ; ident_info = _} as v)
102622
102617
=
@@ -102649,7 +102644,7 @@ let count_collects () =
102649
102644
102650
102645
102651
102646
let get_stats (program : J.program) : J.variable_declaration Hash_ident.t
102652
- = ((count_collects () ) #program program) #get_stats
102647
+ = ((count_collects program.export_set ) #program program) #get_stats
102653
102648
102654
102649
end
102655
102650
module Js_pass_tailcall_inline : sig
Original file line number Diff line number Diff line change @@ -385084,21 +385084,16 @@ end = struct
385084
385084
since in this case it can not be global?
385085
385085
385086
385086
*)
385087
- let count_collects () =
385087
+ let count_collects my_export_set =
385088
385088
object (self)
385089
- inherit Js_fold.fold as super
385089
+ inherit Js_fold.fold
385090
385090
(* collect used status*)
385091
385091
val stats : int Hash_ident.t = Hash_ident.create 83
385092
385092
(* collect all def sites *)
385093
385093
val defined_idents : J.variable_declaration Hash_ident.t = Hash_ident.create 83
385094
385094
385095
- val mutable my_export_set : Set_ident.t = Set_ident.empty
385096
-
385097
385095
method add_use id =
385098
385096
Hash_ident.add_or_update stats id 1 ~update:succ
385099
- method! program x =
385100
- my_export_set <- x.export_set ;
385101
- super#program x
385102
385097
method! variable_declaration
385103
385098
({ident; value ; property = _ ; ident_info = _} as v)
385104
385099
=
@@ -385131,7 +385126,7 @@ let count_collects () =
385131
385126
385132
385127
385133
385128
let get_stats (program : J.program) : J.variable_declaration Hash_ident.t
385134
- = ((count_collects () ) #program program) #get_stats
385129
+ = ((count_collects program.export_set ) #program program) #get_stats
385135
385130
385136
385131
end
385137
385132
module Js_pass_tailcall_inline : sig
You can’t perform that action at this time.
0 commit comments