@@ -263,7 +263,7 @@ let query (prim : Lam_compile_env.primitive_description)
263
263
| " caml_hypot_float"
264
264
265
265
->
266
- E. runtime_call Js_helper .float prim.prim_name args
266
+ E. runtime_call Js_config .float prim.prim_name args
267
267
| " caml_fmod_float"
268
268
(* float module like js number module *)
269
269
->
@@ -329,7 +329,7 @@ let query (prim : Lam_compile_env.primitive_description)
329
329
E. uninitialized_array v
330
330
(* TODO: inline and spits out a warning when i is negative *)
331
331
| _ ->
332
- E. runtime_call Js_helper .string prim.prim_name args
332
+ E. runtime_call Js_config .string prim.prim_name args
333
333
end
334
334
335
335
| " caml_string_get"
@@ -343,7 +343,7 @@ let query (prim : Lam_compile_env.primitive_description)
343
343
| " caml_blit_string"
344
344
| " caml_blit_bytes"
345
345
->
346
- E. runtime_call Js_helper .string prim.prim_name args
346
+ E. runtime_call Js_config .string prim.prim_name args
347
347
348
348
| "caml_register_named_value" ->
349
349
(* *
@@ -423,12 +423,12 @@ let query (prim : Lam_compile_env.primitive_description)
423
423
([ tag; str ;
424
424
E. prefix_inc
425
425
(E. runtime_var_vid
426
- Js_helper . exceptions
426
+ Js_config . exceptions
427
427
" caml_oo_last_id" )
428
428
], flag)
429
429
}
430
430
| _ ->
431
- E. runtime_call Js_helper . exceptions prim.prim_name args
431
+ E. runtime_call Js_config . exceptions prim.prim_name args
432
432
end
433
433
434
434
| "caml_sys_const_big_endian" ->
@@ -455,12 +455,12 @@ let query (prim : Lam_compile_env.primitive_description)
455
455
| " caml_sys_random_seed"
456
456
| " caml_sys_getenv"
457
457
| "caml_sys_system_command" ->
458
- E. runtime_call Js_helper . sys prim.prim_name args
458
+ E. runtime_call Js_config . sys prim.prim_name args
459
459
| " caml_lex_engine"
460
460
| " caml_new_lex_engine"
461
461
| " caml_parse_engine"
462
462
| "caml_set_parser_trace" ->
463
- E. runtime_call Js_helper . lex_parse prim.prim_name args
463
+ E. runtime_call Js_config . lex_parse prim.prim_name args
464
464
465
465
| " caml_array_sub"
466
466
| " caml_array_concat"
@@ -469,7 +469,7 @@ let query (prim : Lam_compile_env.primitive_description)
469
469
470
470
| " caml_array_blit"
471
471
| "caml_make_vect" ->
472
- E. runtime_call Js_helper .array prim.prim_name args
472
+ E. runtime_call Js_config .array prim.prim_name args
473
473
| " caml_ml_flush"
474
474
| " caml_ml_out_channels_list"
475
475
| " caml_ml_open_descriptor_in"
@@ -478,7 +478,7 @@ let query (prim : Lam_compile_env.primitive_description)
478
478
| " caml_ml_output"
479
479
| " caml_ml_input_char"
480
480
->
481
- E. runtime_call Js_helper . io prim.prim_name args
481
+ E. runtime_call Js_config . io prim.prim_name args
482
482
483
483
| "caml_obj_dup" ->
484
484
(* * Note currently is an Array copy function, this is tightly coupled with
@@ -490,7 +490,7 @@ let query (prim : Lam_compile_env.primitive_description)
490
490
match args with
491
491
| [ a ] when Js_helper. is_constant a -> a
492
492
| _ ->
493
- E. runtime_call Js_helper . obj_runtime prim.prim_name args
493
+ E. runtime_call Js_config . obj_runtime prim.prim_name args
494
494
end
495
495
| "caml_obj_block" ->
496
496
(* * TODO: Optimize for [CamlinternalOO] input
@@ -504,7 +504,7 @@ let query (prim : Lam_compile_env.primitive_description)
504
504
{expression_desc = Number (Int { i = 0 ;_}); _} ] ->
505
505
E. arr Immutable [E. int tag] (* * size 0*)
506
506
| _ ->
507
- E. runtime_call Js_helper . obj_runtime prim.prim_name args
507
+ E. runtime_call Js_config . obj_runtime prim.prim_name args
508
508
509
509
end
510
510
| " caml_obj_is_block"
@@ -514,7 +514,7 @@ let query (prim : Lam_compile_env.primitive_description)
514
514
515
515
| " caml_obj_truncate"
516
516
| "caml_lazy_make_forward" ->
517
- E. runtime_call Js_helper . obj_runtime prim.prim_name args
517
+ E. runtime_call Js_config . obj_runtime prim.prim_name args
518
518
519
519
| " caml_format_float"
520
520
| " caml_format_int"
@@ -524,7 +524,7 @@ let query (prim : Lam_compile_env.primitive_description)
524
524
| " caml_int_of_string" (* what is the semantics?*)
525
525
| " caml_int32_of_string"
526
526
| "caml_nativeint_of_string" ->
527
- E. runtime_call Js_helper . format prim.prim_name args
527
+ E. runtime_call Js_config . format prim.prim_name args
528
528
529
529
530
530
(* "caml_alloc_dummy"; *)
@@ -549,10 +549,10 @@ let query (prim : Lam_compile_env.primitive_description)
549
549
| " caml_int32_bswap"
550
550
| " caml_nativeint_bswap"
551
551
| " caml_int64_bswap"
552
- -> E. runtime_call Js_helper . prim prim.prim_name args
552
+ -> E. runtime_call Js_config . prim prim.prim_name args
553
553
| " caml_get_public_method"
554
554
->
555
- E. runtime_call Js_helper . oo prim.prim_name args
555
+ E. runtime_call Js_config . oo prim.prim_name args
556
556
(* * TODO: Primitives not implemented yet ...*)
557
557
| " caml_install_signal_handler"
558
558
| " caml_output_value_to_buffer"
@@ -596,7 +596,7 @@ let query (prim : Lam_compile_env.primitive_description)
596
596
| " caml_ml_seek_out_64"
597
597
| " caml_ml_set_binary_mode"
598
598
| " caml_sys_getcwd" (* check browser or nodejs *)
599
- -> E. runtime_call Js_helper . prim prim.prim_name args
599
+ -> E. runtime_call Js_config . prim prim.prim_name args
600
600
601
601
602
602
| " js_function_length"
0 commit comments