Skip to content

Commit 748d95a

Browse files
committed
tweak
1 parent cbe8023 commit 748d95a

File tree

4 files changed

+4
-44
lines changed

4 files changed

+4
-44
lines changed

jscomp/core/lam_dispatch_primitive.ml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -99,19 +99,10 @@ let translate loc (prim_name : string)
9999
end
100100
| "caml_array_get" ->
101101
call Js_runtime_modules.array
102-
| "caml_array_unsafe_get"
103-
| "caml_array_unsafe_get_float" ->
104-
begin match args with
105-
| [e0;e1] -> Js_of_lam_array.ref_array e0 e1
106-
| _ -> assert false
107-
end
108102
| "caml_array_set" ->
109103
call Js_runtime_modules.array
110-
| "caml_array_set_addr"
111-
| "caml_array_set_float"
112104
| "caml_array_unsafe_set"
113-
| "caml_array_unsafe_set_addr"
114-
| "caml_array_unsafe_set_float" ->
105+
->
115106
begin match args with
116107
| [e0;e1;e2] ->
117108
Js_of_lam_array.set_array e0 e1 e2

lib/4.06.1/unstable/js_compiler.ml

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -110691,21 +110691,10 @@ let translate loc (prim_name : string)
110691110691
end
110692110692
| "caml_array_get" ->
110693110693
call Js_runtime_modules.array
110694-
110695-
| "caml_array_get_float"
110696-
| "caml_array_unsafe_get"
110697-
| "caml_array_unsafe_get_float" ->
110698-
begin match args with
110699-
| [e0;e1] -> Js_of_lam_array.ref_array e0 e1
110700-
| _ -> assert false
110701-
end
110702110694
| "caml_array_set" ->
110703110695
call Js_runtime_modules.array
110704-
| "caml_array_set_addr"
110705-
| "caml_array_set_float"
110706110696
| "caml_array_unsafe_set"
110707-
| "caml_array_unsafe_set_addr"
110708-
| "caml_array_unsafe_set_float" ->
110697+
->
110709110698
begin match args with
110710110699
| [e0;e1;e2] ->
110711110700
Js_of_lam_array.set_array e0 e1 e2

lib/4.06.1/unstable/js_refmt_compiler.ml

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -110691,21 +110691,10 @@ let translate loc (prim_name : string)
110691110691
end
110692110692
| "caml_array_get" ->
110693110693
call Js_runtime_modules.array
110694-
110695-
| "caml_array_get_float"
110696-
| "caml_array_unsafe_get"
110697-
| "caml_array_unsafe_get_float" ->
110698-
begin match args with
110699-
| [e0;e1] -> Js_of_lam_array.ref_array e0 e1
110700-
| _ -> assert false
110701-
end
110702110694
| "caml_array_set" ->
110703110695
call Js_runtime_modules.array
110704-
| "caml_array_set_addr"
110705-
| "caml_array_set_float"
110706110696
| "caml_array_unsafe_set"
110707-
| "caml_array_unsafe_set_addr"
110708-
| "caml_array_unsafe_set_float" ->
110697+
->
110709110698
begin match args with
110710110699
| [e0;e1;e2] ->
110711110700
Js_of_lam_array.set_array e0 e1 e2

lib/4.06.1/whole_compiler.ml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -392783,19 +392783,10 @@ let translate loc (prim_name : string)
392783392783
end
392784392784
| "caml_array_get" ->
392785392785
call Js_runtime_modules.array
392786-
| "caml_array_unsafe_get"
392787-
| "caml_array_unsafe_get_float" ->
392788-
begin match args with
392789-
| [e0;e1] -> Js_of_lam_array.ref_array e0 e1
392790-
| _ -> assert false
392791-
end
392792392786
| "caml_array_set" ->
392793392787
call Js_runtime_modules.array
392794-
| "caml_array_set_addr"
392795-
| "caml_array_set_float"
392796392788
| "caml_array_unsafe_set"
392797-
| "caml_array_unsafe_set_addr"
392798-
| "caml_array_unsafe_set_float" ->
392789+
->
392799392790
begin match args with
392800392791
| [e0;e1;e2] ->
392801392792
Js_of_lam_array.set_array e0 e1 e2

0 commit comments

Comments
 (0)