File tree Expand file tree Collapse file tree 4 files changed +16
-80
lines changed Expand file tree Collapse file tree 4 files changed +16
-80
lines changed Original file line number Diff line number Diff line change @@ -503,16 +503,11 @@ let translate loc
503
503
(match args with
504
504
| [e;e1] -> Js_of_lam_string. ref_byte e e1
505
505
| _ -> assert false )
506
-
507
-
508
506
| Pbytesrefs ->
509
- begin match args with
510
- | [e ; e1] ->
511
- if ! Clflags. fast then
512
- Js_of_lam_string. ref_byte e e1
513
- else E. runtime_call Js_runtime_modules. bytes " get" args
514
- | _ -> assert false
515
- end
507
+ E. runtime_call Js_runtime_modules. bytes " get" args
508
+ | Pstringrefs ->
509
+ E. runtime_call Js_runtime_modules. string " get" args
510
+
516
511
(* For bytes and string, they both return [int] in ocaml
517
512
we need tell Pbyteref from Pstringref
518
513
1. Pbyteref -> a[i]
@@ -523,19 +518,8 @@ let translate loc
523
518
| [e;e1] -> Js_of_lam_string. ref_string e e1
524
519
| _ -> assert false
525
520
end
526
-
527
- | Pstringrefs ->
528
- begin match args with
529
- | [e;e1] ->
530
- if ! Clflags. fast then
531
- Js_of_lam_string. ref_string e e1
532
- else
533
- E. runtime_call Js_runtime_modules. string " get" args
534
- | _ -> assert false
535
- end
536
521
(* * only when Lapply -> expand = true*)
537
522
| Praise -> assert false (* handled before here *)
538
-
539
523
(* Runtime encoding relevant *)
540
524
| Parraylength ->
541
525
E. array_length (Ext_list. singleton_exn args)
Original file line number Diff line number Diff line change @@ -111918,16 +111918,11 @@ let translate loc
111918
111918
(match args with
111919
111919
| [e;e1] -> Js_of_lam_string.ref_byte e e1
111920
111920
| _ -> assert false)
111921
-
111922
-
111923
111921
| Pbytesrefs ->
111924
- begin match args with
111925
- | [e ; e1] ->
111926
- if !Clflags.fast then
111927
- Js_of_lam_string.ref_byte e e1
111928
- else E.runtime_call Js_runtime_modules.bytes "get" args
111929
- | _ -> assert false
111930
- end
111922
+ E.runtime_call Js_runtime_modules.bytes "get" args
111923
+ | Pstringrefs ->
111924
+ E.runtime_call Js_runtime_modules.string "get" args
111925
+
111931
111926
(* For bytes and string, they both return [int] in ocaml
111932
111927
we need tell Pbyteref from Pstringref
111933
111928
1. Pbyteref -> a[i]
@@ -111938,19 +111933,8 @@ let translate loc
111938
111933
| [e;e1] -> Js_of_lam_string.ref_string e e1
111939
111934
| _ -> assert false
111940
111935
end
111941
-
111942
- | Pstringrefs ->
111943
- begin match args with
111944
- | [e;e1] ->
111945
- if !Clflags.fast then
111946
- Js_of_lam_string.ref_string e e1
111947
- else
111948
- E.runtime_call Js_runtime_modules.string "get" args
111949
- | _ -> assert false
111950
- end
111951
111936
(** only when Lapply -> expand = true*)
111952
111937
| Praise -> assert false (* handled before here *)
111953
-
111954
111938
(* Runtime encoding relevant *)
111955
111939
| Parraylength ->
111956
111940
E.array_length (Ext_list.singleton_exn args)
Original file line number Diff line number Diff line change @@ -111918,16 +111918,11 @@ let translate loc
111918
111918
(match args with
111919
111919
| [e;e1] -> Js_of_lam_string.ref_byte e e1
111920
111920
| _ -> assert false)
111921
-
111922
-
111923
111921
| Pbytesrefs ->
111924
- begin match args with
111925
- | [e ; e1] ->
111926
- if !Clflags.fast then
111927
- Js_of_lam_string.ref_byte e e1
111928
- else E.runtime_call Js_runtime_modules.bytes "get" args
111929
- | _ -> assert false
111930
- end
111922
+ E.runtime_call Js_runtime_modules.bytes "get" args
111923
+ | Pstringrefs ->
111924
+ E.runtime_call Js_runtime_modules.string "get" args
111925
+
111931
111926
(* For bytes and string, they both return [int] in ocaml
111932
111927
we need tell Pbyteref from Pstringref
111933
111928
1. Pbyteref -> a[i]
@@ -111938,19 +111933,8 @@ let translate loc
111938
111933
| [e;e1] -> Js_of_lam_string.ref_string e e1
111939
111934
| _ -> assert false
111940
111935
end
111941
-
111942
- | Pstringrefs ->
111943
- begin match args with
111944
- | [e;e1] ->
111945
- if !Clflags.fast then
111946
- Js_of_lam_string.ref_string e e1
111947
- else
111948
- E.runtime_call Js_runtime_modules.string "get" args
111949
- | _ -> assert false
111950
- end
111951
111936
(** only when Lapply -> expand = true*)
111952
111937
| Praise -> assert false (* handled before here *)
111953
-
111954
111938
(* Runtime encoding relevant *)
111955
111939
| Parraylength ->
111956
111940
E.array_length (Ext_list.singleton_exn args)
Original file line number Diff line number Diff line change @@ -394010,16 +394010,11 @@ let translate loc
394010
394010
(match args with
394011
394011
| [e;e1] -> Js_of_lam_string.ref_byte e e1
394012
394012
| _ -> assert false)
394013
-
394014
-
394015
394013
| Pbytesrefs ->
394016
- begin match args with
394017
- | [e ; e1] ->
394018
- if !Clflags.fast then
394019
- Js_of_lam_string.ref_byte e e1
394020
- else E.runtime_call Js_runtime_modules.bytes "get" args
394021
- | _ -> assert false
394022
- end
394014
+ E.runtime_call Js_runtime_modules.bytes "get" args
394015
+ | Pstringrefs ->
394016
+ E.runtime_call Js_runtime_modules.string "get" args
394017
+
394023
394018
(* For bytes and string, they both return [int] in ocaml
394024
394019
we need tell Pbyteref from Pstringref
394025
394020
1. Pbyteref -> a[i]
@@ -394030,19 +394025,8 @@ let translate loc
394030
394025
| [e;e1] -> Js_of_lam_string.ref_string e e1
394031
394026
| _ -> assert false
394032
394027
end
394033
-
394034
- | Pstringrefs ->
394035
- begin match args with
394036
- | [e;e1] ->
394037
- if !Clflags.fast then
394038
- Js_of_lam_string.ref_string e e1
394039
- else
394040
- E.runtime_call Js_runtime_modules.string "get" args
394041
- | _ -> assert false
394042
- end
394043
394028
(** only when Lapply -> expand = true*)
394044
394029
| Praise -> assert false (* handled before here *)
394045
-
394046
394030
(* Runtime encoding relevant *)
394047
394031
| Parraylength ->
394048
394032
E.array_length (Ext_list.singleton_exn args)
You can’t perform that action at this time.
0 commit comments