File tree Expand file tree Collapse file tree 1 file changed +1
-15
lines changed Expand file tree Collapse file tree 1 file changed +1
-15
lines changed Original file line number Diff line number Diff line change @@ -57,8 +57,6 @@ type 'a t = 'a CamlinternalLazy.t
57
57
exception Undefined = CamlinternalLazy. Undefined
58
58
external make_forward : 'a -> 'a lazy_t = " caml_lazy_make_forward"
59
59
external force : 'a t -> 'a = " %lazy_force"
60
- external runtime5 : unit -> bool = " %runtime5"
61
- let runtime5 = runtime5 ()
62
60
63
61
let force_val l = CamlinternalLazy. force_gen ~only_val: true l
64
62
@@ -67,7 +65,7 @@ let from_fun (f : unit -> 'arg) =
67
65
Obj. set_field x 0 (Obj. repr f);
68
66
(Obj. obj x : 'arg t )
69
67
70
- let from_val4 (v : 'arg ) =
68
+ let from_val (v : 'arg ) =
71
69
let t = Obj. tag (Obj. repr v) in
72
70
if t = Obj. forward_tag || t = Obj. lazy_tag ||
73
71
t = Obj. forcing_tag || t = Obj. double_tag then begin
@@ -76,18 +74,6 @@ let from_val4 (v : 'arg) =
76
74
(Obj. magic v : 'arg t )
77
75
end
78
76
79
- let from_val5 (v : 'arg ) =
80
- let t = Obj. tag (Obj. repr v) in
81
- if t = Obj. forward_tag || t = Obj. lazy_tag
82
- || t = Obj. forcing_tag
83
- || t = Obj. double_tag then begin
84
- make_forward v
85
- end else begin
86
- (Obj. magic v : 'arg t )
87
- end
88
-
89
- let from_val = if runtime5 then from_val5 else from_val4
90
-
91
77
let is_val (l : 'arg t ) = Obj. tag (Obj. repr l) <> Obj. lazy_tag
92
78
93
79
let map f x =
You can’t perform that action at this time.
0 commit comments