Skip to content

Commit 81085f4

Browse files
committed
snapshot
1 parent 5ee4a9f commit 81085f4

File tree

2 files changed

+10
-48
lines changed

2 files changed

+10
-48
lines changed

lib/4.06.1/unstable/js_compiler.ml

Lines changed: 5 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -87383,9 +87383,9 @@ let bytes = "Caml_bytes"
8738387383
let float = "Caml_float"
8738487384
let hash_primitive = "Caml_hash_primitive"
8738587385
let hash = "Caml_hash"
87386-
let oo = "Caml_oo"
87386+
8738787387
let curry = "Curry"
87388-
let caml_oo_curry = "Caml_oo_curry"
87388+
8738987389
let caml_primitive = "Caml_primitive"
8739087390
let int64 = "Caml_int64"
8739187391
let md5 = "Caml_md5"
@@ -87619,7 +87619,7 @@ val runtime_ref :
8761987619
string ->
8762087620
t
8762187621

87622-
val public_method_call : string -> t -> t -> Int32.t -> t list -> t
87622+
8762387623

8762487624

8762587625
val str :
@@ -88811,21 +88811,7 @@ let tag ?comment e : t =
8881188811
(* according to the compiler, [Btype.hash_variant],
8881288812
it's reduced to 31 bits for hash
8881388813
*)
88814-
(* FIXME: unused meth_name *)
88815-
let public_method_call _meth_name obj label cache args =
88816-
let len = List.length args in
88817-
(* econd (int_equal (tag obj ) obj_int_tag_literal) *)
88818-
if len <= 7 then
88819-
runtime_call Js_runtime_modules.caml_oo_curry
88820-
("js" ^ string_of_int (len + 1) )
88821-
(label:: ( int cache) :: obj::args)
88822-
else
88823-
runtime_call Js_runtime_modules.caml_oo_curry "js"
88824-
[label;
88825-
int cache;
88826-
obj ;
88827-
array NA (obj::args)
88828-
]
88814+
8882988815

8883088816
(* TODO: handle arbitrary length of args ..
8883188817
we can reduce part of the overhead by using
@@ -109521,9 +109507,6 @@ let translate loc (prim_name : string)
109521109507
call Js_runtime_modules.exceptions
109522109508
| "caml_as_js_exn" ->
109523109509
call Js_runtime_modules.caml_js_exceptions
109524-
| "caml_set_oo_id" (* needed in {!camlinternalOO.set_id} *)
109525-
->
109526-
call Js_runtime_modules.oo
109527109510

109528109511
| "caml_sys_get_argv"
109529109512
(** TODO: refine
@@ -109651,9 +109634,7 @@ let translate loc (prim_name : string)
109651109634
begin match args with
109652109635
| [e] -> E.tag e
109653109636
| _ -> assert false end
109654-
| "caml_get_public_method"
109655-
->
109656-
call Js_runtime_modules.oo
109637+
109657109638
(** TODO: Primitives not implemented yet ...*)
109658109639
| "caml_install_signal_handler"
109659109640
->

lib/4.06.1/whole_compiler.ml

Lines changed: 5 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -377180,9 +377180,9 @@ let bytes = "Caml_bytes"
377180377180
let float = "Caml_float"
377181377181
let hash_primitive = "Caml_hash_primitive"
377182377182
let hash = "Caml_hash"
377183-
let oo = "Caml_oo"
377183+
377184377184
let curry = "Curry"
377185-
let caml_oo_curry = "Caml_oo_curry"
377185+
377186377186
let caml_primitive = "Caml_primitive"
377187377187
let int64 = "Caml_int64"
377188377188
let md5 = "Caml_md5"
@@ -377416,7 +377416,7 @@ val runtime_ref :
377416377416
string ->
377417377417
t
377418377418

377419-
val public_method_call : string -> t -> t -> Int32.t -> t list -> t
377419+
377420377420

377421377421

377422377422
val str :
@@ -378608,21 +378608,7 @@ let tag ?comment e : t =
378608378608
(* according to the compiler, [Btype.hash_variant],
378609378609
it's reduced to 31 bits for hash
378610378610
*)
378611-
(* FIXME: unused meth_name *)
378612-
let public_method_call _meth_name obj label cache args =
378613-
let len = List.length args in
378614-
(* econd (int_equal (tag obj ) obj_int_tag_literal) *)
378615-
if len <= 7 then
378616-
runtime_call Js_runtime_modules.caml_oo_curry
378617-
("js" ^ string_of_int (len + 1) )
378618-
(label:: ( int cache) :: obj::args)
378619-
else
378620-
runtime_call Js_runtime_modules.caml_oo_curry "js"
378621-
[label;
378622-
int cache;
378623-
obj ;
378624-
array NA (obj::args)
378625-
]
378611+
378626378612

378627378613
(* TODO: handle arbitrary length of args ..
378628378614
we can reduce part of the overhead by using
@@ -391799,9 +391785,6 @@ let translate loc (prim_name : string)
391799391785
call Js_runtime_modules.exceptions
391800391786
| "caml_as_js_exn" ->
391801391787
call Js_runtime_modules.caml_js_exceptions
391802-
| "caml_set_oo_id" (* needed in {!camlinternalOO.set_id} *)
391803-
->
391804-
call Js_runtime_modules.oo
391805391788

391806391789
| "caml_sys_get_argv"
391807391790
(** TODO: refine
@@ -391929,9 +391912,7 @@ let translate loc (prim_name : string)
391929391912
begin match args with
391930391913
| [e] -> E.tag e
391931391914
| _ -> assert false end
391932-
| "caml_get_public_method"
391933-
->
391934-
call Js_runtime_modules.oo
391915+
391935391916
(** TODO: Primitives not implemented yet ...*)
391936391917
| "caml_install_signal_handler"
391937391918
->

0 commit comments

Comments
 (0)