From 43222b22945129dbdb10f8d666b2f571f8f68246 Mon Sep 17 00:00:00 2001 From: Christoph Knittel Date: Sat, 29 Jun 2024 08:45:45 +0200 Subject: [PATCH 1/6] Remove obsolete .depend files --- jscomp/others/.depend | 162 ----------- jscomp/test/.depend | 642 ----------------------------------------- jscomp/test/.libdepend | 631 ---------------------------------------- 3 files changed, 1435 deletions(-) delete mode 100644 jscomp/others/.depend delete mode 100644 jscomp/test/.depend delete mode 100644 jscomp/test/.libdepend diff --git a/jscomp/others/.depend b/jscomp/others/.depend deleted file mode 100644 index 30f49d67c1..0000000000 --- a/jscomp/others/.depend +++ /dev/null @@ -1,162 +0,0 @@ -node_path.cmj : -node_fs.cmj : node.cmj js_string.cmj -node_process.cmj : js_dict.cmj node_process.cmi -node_module.cmj : node.cmj js_dict.cmj -js_array.cmj : -js_string.cmj : js_re.cmi js_array.cmj -js_int.cmj : -js_float.cmj : -js_exn.cmj : js_exn.cmi -js_null.cmj : js_exn.cmj js_null.cmi -js_undefined.cmj : js_exn.cmj js_undefined.cmi -js_null_undefined.cmj : js_null_undefined.cmi -js_typed_array.cmj : -node_buffer.cmj : node.cmj -js_types.cmj : js_null.cmj js_types.cmi -js_json.cmj : js_types.cmj js_string.cmj js_dict.cmj js_array.cmj \ - js_json.cmi -js_obj.cmj : -js_vector.cmj : js_array.cmj js_vector.cmi -js_list.cmj : js_vector.cmj js_list.cmi -js_option.cmj : js_exn.cmj js_option.cmi -js_console.cmj : -js_result.cmj : js_result.cmi -js_mapperRt.cmj : js_exn.cmj js_array.cmj js_mapperRt.cmi -belt_Array.cmj : js_math.cmj belt_Array.cmi -belt_internalAVLset.cmj : belt_SortArray.cmj belt_Id.cmj belt_Array.cmj \ - belt_internalAVLset.cmi -belt_internalAVLtree.cmj : belt_SortArray.cmj belt_Id.cmj belt_Array.cmj \ - belt_internalAVLtree.cmi -belt_List.cmj : belt_SortArray.cmj belt_Array.cmj belt_List.cmi -belt_SortArray.cmj : belt_SortArrayString.cmj belt_SortArrayInt.cmj \ - belt_Array.cmj belt_SortArray.cmi -belt_SortArrayInt.cmj : belt_Array.cmj belt_SortArrayInt.cmi -belt_SortArrayString.cmj : belt_Array.cmj belt_SortArrayString.cmi -belt_Range.cmj : belt_Range.cmi -belt_internalBucketsType.cmj : belt_Array.cmj belt_internalBucketsType.cmi -belt_internalSetBuckets.cmj : belt_internalBucketsType.cmj belt_Array.cmj \ - belt_internalSetBuckets.cmi -belt_internalBuckets.cmj : belt_internalBucketsType.cmj belt_Array.cmj \ - belt_internalBuckets.cmi -belt_HashMap.cmj : belt_internalBucketsType.cmj belt_internalBuckets.cmj \ - belt_Id.cmj belt_HashMapString.cmj belt_HashMapInt.cmj belt_Array.cmj \ - belt_HashMap.cmi -belt_HashSet.cmj : belt_internalSetBuckets.cmj belt_internalBucketsType.cmj \ - belt_Id.cmj belt_HashSetString.cmj belt_HashSetInt.cmj belt_Array.cmj \ - belt_HashSet.cmi -belt_HashSetString.cmj : belt_internalSetBuckets.cmj \ - belt_internalBucketsType.cmj belt_Array.cmj belt_HashSetString.cmi -belt_HashSetInt.cmj : belt_internalSetBuckets.cmj \ - belt_internalBucketsType.cmj belt_Array.cmj belt_HashSetInt.cmi -belt_Id.cmj : belt_Id.cmi -belt_MapDict.cmj : belt_internalAVLtree.cmj belt_Id.cmj belt_Array.cmj \ - belt_MapDict.cmi -belt_SetDict.cmj : belt_internalAVLset.cmj belt_Id.cmj belt_Array.cmj \ - belt_SetDict.cmi -belt_Map.cmj : belt_MapString.cmj belt_MapInt.cmj belt_MapDict.cmj \ - belt_Id.cmj belt_Array.cmj belt_Map.cmi -belt_internalMapInt.cmj : belt_internalAVLtree.cmj belt_SortArray.cmj \ - belt_Array.cmj -belt_internalMapString.cmj : belt_internalAVLtree.cmj belt_SortArray.cmj \ - belt_Array.cmj -belt_MapString.cmj : belt_internalMapString.cmj belt_internalAVLtree.cmj \ - belt_Array.cmj belt_MapString.cmi -belt_MapInt.cmj : belt_internalMapInt.cmj belt_internalAVLtree.cmj \ - belt_Array.cmj belt_MapInt.cmi -belt_Option.cmj : belt_Option.cmi -belt_Result.cmj : belt_Result.cmi -belt_Set.cmj : belt_SetString.cmj belt_SetInt.cmj belt_SetDict.cmj \ - belt_Id.cmj belt_Array.cmj belt_Set.cmi -belt_MutableSet.cmj : belt_internalAVLset.cmj belt_SortArray.cmj \ - belt_MutableSetString.cmj belt_MutableSetInt.cmj belt_Id.cmj \ - belt_Array.cmj belt_MutableSet.cmi -belt_MutableSetInt.cmj : belt_internalSetInt.cmj belt_internalAVLset.cmj \ - belt_SortArrayInt.cmj belt_Array.cmj belt_MutableSetInt.cmi -belt_MutableSetString.cmj : belt_internalSetString.cmj \ - belt_internalAVLset.cmj belt_SortArrayString.cmj belt_Array.cmj \ - belt_MutableSetString.cmi -belt_MutableMap.cmj : belt_internalAVLtree.cmj belt_MutableMapString.cmj \ - belt_MutableMapInt.cmj belt_Id.cmj belt_Array.cmj belt_MutableMap.cmi -belt_MutableMapInt.cmj : belt_internalMapInt.cmj belt_internalAVLtree.cmj \ - belt_Array.cmj belt_MutableMapInt.cmi -belt_MutableMapString.cmj : belt_internalMapString.cmj \ - belt_internalAVLtree.cmj belt_Array.cmj belt_MutableMapString.cmi -belt_internalSetInt.cmj : belt_internalAVLset.cmj belt_SortArrayInt.cmj \ - belt_Array.cmj -belt_internalSetString.cmj : belt_internalAVLset.cmj \ - belt_SortArrayString.cmj belt_Array.cmj -belt_SetInt.cmj : belt_internalSetInt.cmj belt_internalAVLset.cmj \ - belt_Array.cmj belt_SetInt.cmi -belt_SetString.cmj : belt_internalSetString.cmj belt_internalAVLset.cmj \ - belt_Array.cmj belt_SetString.cmi -belt_MutableStack.cmj : js_null.cmj belt_MutableStack.cmi -belt_MutableQueue.cmj : js_null.cmj belt_Array.cmj belt_MutableQueue.cmi -node_child_process.cmj : node.cmj -js_math.cmj : js_int.cmj -js_dict.cmj : js_array.cmj js_dict.cmi -js_date.cmj : -js_global.cmj : -js_cast.cmj : js_cast.cmi -js_promise.cmj : -belt_HashMapInt.cmj : belt_internalBucketsType.cmj belt_internalBuckets.cmj \ - belt_Array.cmj belt_HashMapInt.cmi -belt_HashMapString.cmj : belt_internalBucketsType.cmj \ - belt_internalBuckets.cmj belt_Array.cmj belt_HashMapString.cmi -belt_Debug.cmj : -node_process.cmi : js_dict.cmi -js_exn.cmi : -js_re.cmi : -js_null.cmi : -js_undefined.cmi : -js_null_undefined.cmi : -js_types.cmi : -js_json.cmi : js_types.cmi js_string.cmj js_null.cmi js_dict.cmi -js_vector.cmi : -js_list.cmi : js_vector.cmi -js_option.cmi : -js_result.cmi : -js_mapperRt.cmi : -belt_Array.cmi : -belt_internalAVLset.cmi : belt_Id.cmi -belt_internalAVLtree.cmi : belt_Id.cmi -belt_List.cmi : -belt_SortArray.cmi : belt_SortArrayString.cmi belt_SortArrayInt.cmi -belt_SortArrayInt.cmi : -belt_SortArrayString.cmi : -belt_Range.cmi : -belt_internalBucketsType.cmi : -belt_internalSetBuckets.cmi : belt_internalBucketsType.cmi -belt_internalBuckets.cmi : belt_internalBucketsType.cmi -belt_HashMap.cmi : belt_Id.cmi belt_HashMapString.cmi belt_HashMapInt.cmi -belt_HashSet.cmi : belt_Id.cmi belt_HashSetString.cmi belt_HashSetInt.cmi -belt_HashSetString.cmi : -belt_HashSetInt.cmi : -belt_Id.cmi : -belt_MapDict.cmi : belt_Id.cmi -belt_SetDict.cmi : belt_Id.cmi -belt_Map.cmi : belt_MapString.cmi belt_MapInt.cmi belt_MapDict.cmi \ - belt_Id.cmi -belt_MapString.cmi : -belt_MapInt.cmi : -belt_Option.cmi : -belt_Result.cmi : -belt_Set.cmi : belt_SetString.cmi belt_SetInt.cmi belt_SetDict.cmi \ - belt_Id.cmi -belt_MutableSet.cmi : belt_MutableSetString.cmi belt_MutableSetInt.cmi \ - belt_Id.cmi -belt_MutableSetInt.cmi : -belt_MutableSetString.cmi : -belt_MutableMap.cmi : belt_MutableMapString.cmi belt_MutableMapInt.cmi \ - belt_Id.cmi -belt_MutableMapInt.cmi : -belt_MutableMapString.cmi : -belt_SetInt.cmi : -belt_SetString.cmi : -belt_MutableStack.cmi : -belt_MutableQueue.cmi : -js_dict.cmi : -js_cast.cmi : -dom.cmi : dom_storage.cmi -dom_storage.cmi : -belt_HashMapInt.cmi : -belt_HashMapString.cmi : diff --git a/jscomp/test/.depend b/jscomp/test/.depend deleted file mode 100644 index 715644c803..0000000000 --- a/jscomp/test/.depend +++ /dev/null @@ -1,642 +0,0 @@ -a_recursive_type.cmi : -abstract_type.cmi : mt.cmi -alias_test.cmi : -ari_regress_test.cmi : -array_test.cmi : -ast_js_mapper_test.cmi : -basic_module_test.cmi : -bs_abstract_test.cmi : ../runtime/js.cmj -class_setter_getter.cmi : ../runtime/js.cmj -config2_test.cmi : ../runtime/js.cmj -const_block_test.cmi : -demo_int_map.cmi : -derive_projector_test.cmi : -ext_pervasives_test.cmi : -ext_sys_test.cmi : -float_record.cmi : -flow_parser_reg_test.cmi : -gpr_405_test.cmi : -infer_type_test.cmi : ../runtime/js.cmj -inline_edge_cases.cmi : -inline_map_test.cmi : -inner_define.cmi : -map_test.cmi : -mt.cmi : ../runtime/js.cmj -mt_global.cmi : mt.cmi -ocaml_parsetree_test.cmi : -ocaml_proto_test.cmi : -ocaml_typedtree_test.cmi : -poly_variant_test.cmi : -polymorphism_test.cmi : -scanf_reference_error_regression_test.cmi : -sexp.cmi : -sexpm.cmi : -simple_derive_test.cmi : -simple_derive_use.cmi : -test_for_map2.cmi : -test_http_server.cmi : -test_is_js.cmi : -test_literals.cmi : -test_unsafe_obj_ffi.cmi : ../runtime/js.cmj -test_unsafe_obj_ffi_ppx.cmi : ../runtime/js.cmj -testing.cmi : -ui_defs.cmi : -unsafe_this.cmi : ../runtime/js.cmj -406_primitive_test.cmj : mt.cmj -a.cmj : test_order.cmj -a_filename_test.cmj : mt.cmj ext_filename_test.cmj -a_list_test.cmj : mt.cmj ext_list_test.cmj -a_recursive_type.cmj : a_recursive_type.cmi -a_scope_bug.cmj : -a_string_test.cmj : mt.cmj ext_string_test.cmj -abstract_type.cmj : abstract_type.cmi -adt_optimize_test.cmj : -alias_test.cmj : alias_test.cmi -and_or_tailcall_test.cmj : mt.cmj -app_root_finder.cmj : ../others/node.cmj ../runtime/js.cmj -argv_test.cmj : -ari_regress_test.cmj : mt.cmj ari_regress_test.cmi -arith_lexer.cmj : arith_syntax.cmj arith_parser.cmj -arith_parser.cmj : arith_syntax.cmj -arith_syntax.cmj : -arity_deopt.cmj : mt.cmj -arity_infer.cmj : -array_data_util.cmj : ../others/belt.cmj -array_safe_get.cmj : -array_subtle_test.cmj : mt.cmj ../runtime/js.cmj -array_test.cmj : mt.cmj array_test.cmi -ast_abstract_test.cmj : mt.cmj -ast_js_mapper_poly_test.cmj : mt.cmj -ast_js_mapper_test.cmj : ast_js_mapper_test.cmi -ast_mapper_defensive_test.cmj : mt.cmj -ast_mapper_unused_warning_test.cmj : -async_ideas.cmj : -attr_test.cmj : ../runtime/js.cmj -b.cmj : -bal_set_mini.cmj : -bang_primitive.cmj : -basic_module_test.cmj : pr6726.cmj offset.cmj mt_global.cmj mt.cmj \ - basic_module_test.cmi -bb.cmj : -bdd.cmj : -bench.cmj : -big_enum.cmj : -big_polyvar_test.cmj : -bigarray_test.cmj : -block_alias_test.cmj : mt.cmj -boolean_test.cmj : test_bool_equal.cmj mt.cmj -bs_MapInt_test.cmj : ../runtime/js.cmj ../others/belt.cmj -bs_abstract_test.cmj : ../runtime/js.cmj bs_abstract_test.cmi -bs_array_test.cmj : mt.cmj ../runtime/js.cmj ../others/belt.cmj -bs_auto_uncurry.cmj : ../runtime/js.cmj -bs_auto_uncurry_test.cmj : mt.cmj ../others/js_array.cmj ../runtime/js.cmj -bs_hashmap_test.cmj : mt.cmj ../others/belt.cmj array_data_util.cmj -bs_hashset_int_test.cmj : mt.cmj ../others/belt.cmj array_data_util.cmj -bs_hashtbl_string_test.cmj : ../others/belt.cmj -bs_ignore_effect.cmj : mt.cmj -bs_ignore_test.cmj : ../runtime/js.cmj -bs_list_test.cmj : mt.cmj ../runtime/js.cmj ../others/belt.cmj -bs_map_set_dict_test.cmj : mt.cmj ../runtime/js.cmj ../others/belt.cmj \ - array_data_util.cmj -bs_map_test.cmj : mt.cmj ../others/belt.cmj -bs_min_max_test.cmj : mt.cmj -bs_mutable_set_test.cmj : mt.cmj ../runtime/js.cmj ../others/belt.cmj \ - array_data_util.cmj -bs_node_string_buffer_test.cmj : ../others/node.cmj ../runtime/js.cmj -bs_poly_map_test.cmj : mt.cmj ../runtime/js.cmj ../others/belt.cmj \ - array_data_util.cmj -bs_poly_mutable_map_test.cmj : mt.cmj ../others/belt.cmj array_data_util.cmj -bs_poly_mutable_set_test.cmj : mt.cmj ../runtime/js.cmj ../others/belt.cmj \ - array_data_util.cmj -bs_poly_set_test.cmj : mt.cmj ../runtime/js.cmj ../others/belt.cmj \ - array_data_util.cmj -bs_qualified.cmj : ../runtime/js.cmj -bs_queue_test.cmj : mt.cmj ../runtime/js.cmj ../others/belt.cmj -bs_rbset_int_bench.cmj : rbset.cmj -bs_rest_test.cmj : -bs_set_bench.cmj : ../others/belt.cmj -bs_set_int_test.cmj : mt.cmj ../runtime/js.cmj ../others/belt.cmj \ - array_data_util.cmj -bs_sort_test.cmj : mt.cmj ../others/belt.cmj array_data_util.cmj -bs_splice_partial.cmj : ../runtime/js.cmj -bs_stack_test.cmj : ../runtime/js.cmj ../others/belt.cmj -bs_string_test.cmj : mt.cmj ../runtime/js.cmj -bs_unwrap_test.cmj : -buffer_test.cmj : mt.cmj -bytes_split_gpr_743_test.cmj : mt.cmj ../runtime/js.cmj -caml_compare_test.cmj : mt.cmj ../runtime/js.cmj -caml_format_test.cmj : mt.cmj -caml_sys_poly_fill_test.cmj : ../others/node_process.cmj mt.cmj \ - ../runtime/js.cmj -chain_code_test.cmj : mt.cmj ../runtime/js.cmj -chn_test.cmj : mt.cmj ../others/js_string.cmj ../others/js_array.cmj \ - ../runtime/js.cmj -class3_test.cmj : mt.cmj ../runtime/js.cmj -class4_test.cmj : mt.cmj -class5_test.cmj : mt.cmj -class6_test.cmj : mt.cmj -class7_test.cmj : mt.cmj -class8_test.cmj : mt.cmj -class_fib_open_recursion_test.cmj : mt.cmj -class_repr.cmj : -class_setter_getter.cmj : ../runtime/js.cmj class_setter_getter.cmi -class_test.cmj : mt.cmj -class_type_ffi_test.cmj : ../runtime/js.cmj -compare_test.cmj : -complex_if_test.cmj : mt.cmj -complex_test.cmj : mt.cmj -complex_while_loop.cmj : -condition_compilation_test.cmj : mt.cmj -config1_test.cmj : -config2_test.cmj : ../runtime/js.cmj config2_test.cmi -console_log_test.cmj : -const_block_test.cmj : mt.cmj const_block_test.cmi -const_defs.cmj : -const_defs_test.cmj : const_defs.cmj -const_test.cmj : -cont_int_fold_test.cmj : -cps_test.cmj : mt.cmj -cross_module_inline_test.cmj : -custom_error_test.cmj : ../runtime/js.cmj -debug_keep_test.cmj : -debugger_test.cmj : ../runtime/js.cmj -default_export_test.cmj : -defunctor_make_test.cmj : ../runtime/js.cmj -demo.cmj : ../runtime/js.cmj demo_binding.cmj -demo_binding.cmj : ../runtime/js.cmj -demo_int_map.cmj : demo_int_map.cmi -demo_page.cmj : -demo_pipe.cmj : ../runtime/js.cmj -derive_dyntype.cmj : -derive_projector_test.cmj : ../runtime/js.cmj derive_projector_test.cmi -derive_type_test.cmj : -digest_test.cmj : mt.cmj ext_array_test.cmj -div_by_zero_test.cmj : mt.cmj -dollar_escape_test.cmj : mt.cmj -earger_curry_test.cmj : mt.cmj ../runtime/js.cmj -empty_obj.cmj : -epsilon_test.cmj : mt.cmj -equal_box_test.cmj : mt.cmj ../runtime/js.cmj -equal_exception_test.cmj : mt.cmj -equal_test.cmj : -es6_module_test.cmj : mt.cmj -escape_esmodule.cmj : -esmodule_ref.cmj : ../runtime/js.cmj escape_esmodule.cmj -event_ffi.cmj : ../runtime/js.cmj -exception_alias.cmj : -exception_def.cmj : test_other_exn.cmj -exception_raise_test.cmj : mt.cmj ../runtime/js.cmj -exception_rebind_test.cmj : exception_def.cmj -exception_rebound_err_test.cmj : mt.cmj ../runtime/js.cmj -exception_repr_test.cmj : mt.cmj exception_def.cmj -exception_value_test.cmj : ../runtime/js.cmj -exn_error_pattern.cmj : mt.cmj ../runtime/js.cmj -export_keyword.cmj : -ext_array_test.cmj : -ext_bytes_test.cmj : mt.cmj -ext_filename_test.cmj : test_literals.cmj ext_string_test.cmj \ - ext_pervasives_test.cmj -ext_list_test.cmj : ext_string_test.cmj -ext_log_test.cmj : -ext_pervasives_test.cmj : ext_pervasives_test.cmi -ext_string_test.cmj : ext_bytes_test.cmj -ext_sys_test.cmj : ext_sys_test.cmi -extensible_variant_test.cmj : mt.cmj -external_ppx.cmj : -fail_comp.cmj : -ffi_arity_test.cmj : mt.cmj ../runtime/js.cmj -ffi_array_test.cmj : mt.cmj ../others/js_array.cmj -ffi_js_test.cmj : mt.cmj ../others/js_obj.cmj ../runtime/js.cmj -ffi_splice_test.cmj : mt.cmj -ffi_test.cmj : ../runtime/js.cmj -fib.cmj : -flattern_order_test.cmj : -flexible_array_test.cmj : -float_array.cmj : -float_of_bits_test.cmj : mt.cmj -float_record.cmj : float_record.cmi -float_test.cmj : mt_global.cmj mt.cmj ../others/js_float.cmj \ - ../runtime/js.cmj -floatarray_test.cmj : -flow_parser_reg_test.cmj : ../others/node.cmj mt.cmj ../runtime/js.cmj \ - flow_parser_reg_test.cmi -for_loop_test.cmj : mt.cmj -for_side_effect_test.cmj : mt.cmj -format_regression.cmj : -format_test.cmj : mt.cmj -fs_test.cmj : ../others/node.cmj mt.cmj ../runtime/js.cmj -fun_pattern_match.cmj : ../runtime/js.cmj -functor_app_test.cmj : mt.cmj functor_inst.cmj functor_def.cmj -functor_def.cmj : ../runtime/js.cmj -functor_ffi.cmj : ../runtime/js.cmj -functor_inst.cmj : -gbk.cmj : ../runtime/js.cmj -genlex_test.cmj : mt.cmj -global_exception_regression_test.cmj : mt.cmj -global_mangles.cmj : -global_module_alias_test.cmj : mt.cmj -google_closure_test.cmj : test_google_closure.cmj mt.cmj -gpr496_test.cmj : mt.cmj -gpr_1063_test.cmj : -gpr_1072.cmj : ../runtime/js.cmj -gpr_1072_reg.cmj : -gpr_1150.cmj : -gpr_1154_test.cmj : mt.cmj -gpr_1170.cmj : -gpr_1240_missing_unbox.cmj : -gpr_1245_test.cmj : ../runtime/js.cmj -gpr_1268.cmj : ../runtime/js.cmj -gpr_1285_test.cmj : mt.cmj -gpr_1409_test.cmj : string_set.cmj mt.cmj ../runtime/js.cmj -gpr_1423_app_test.cmj : mt.cmj ../runtime/js.cmj gpr_1423_nav.cmj -gpr_1423_nav.cmj : -gpr_1438.cmj : -gpr_1481.cmj : ../runtime/js.cmj -gpr_1484.cmj : -gpr_1501_test.cmj : mt.cmj -gpr_1503_test.cmj : mt.cmj -gpr_1539_test.cmj : -gpr_1600_test.cmj : ../runtime/js.cmj -gpr_1658_test.cmj : mt.cmj ../runtime/js.cmj -gpr_1667_test.cmj : mt.cmj -gpr_1692_test.cmj : -gpr_1698_test.cmj : ../runtime/js.cmj -gpr_1701_test.cmj : -gpr_1716_test.cmj : mt.cmj -gpr_1717_test.cmj : -gpr_1728_test.cmj : mt.cmj -gpr_1749_test.cmj : mt.cmj -gpr_1759_test.cmj : -gpr_1760_test.cmj : mt.cmj -gpr_1762_test.cmj : mt.cmj -gpr_1817_test.cmj : mt.cmj ../runtime/js.cmj -gpr_1822_test.cmj : mt.cmj -gpr_1891_test.cmj : ../runtime/js.cmj -gpr_1943_test.cmj : mt.cmj -gpr_1946_test.cmj : ../runtime/js.cmj -gpr_2250_test.cmj : mt.cmj -gpr_2316_test.cmj : mt.cmj ../runtime/js.cmj -gpr_2352_test.cmj : -gpr_2413_test.cmj : -gpr_2474.cmj : -gpr_2487.cmj : ../others/belt.cmj -gpr_2503_test.cmj : mt.cmj ../runtime/js.cmj -gpr_2608_test.cmj : mt.cmj -gpr_2614_test.cmj : -gpr_2633_test.cmj : -gpr_2642_test.cmj : -gpr_2652_test.cmj : ../others/node.cmj -gpr_2682_test.cmj : ../runtime/js.cmj -gpr_2700_test.cmj : -gpr_2731_test.cmj : -gpr_2789_test.cmj : mt.cmj -gpr_2863_test.cmj : ../others/belt.cmj -gpr_2931_test.cmj : mt.cmj -gpr_3142_test.cmj : mt.cmj -gpr_3154_test.cmj : mt.cmj ../runtime/js.cmj -gpr_373_test.cmj : -gpr_405_test.cmj : gpr_405_test.cmi -gpr_441.cmj : -gpr_459_test.cmj : mt.cmj -gpr_627_test.cmj : mt.cmj -gpr_658.cmj : ../runtime/js.cmj -gpr_858_test.cmj : -gpr_858_unit2_test.cmj : -gpr_904_test.cmj : mt.cmj -gpr_974_test.cmj : ../runtime/js.cmj -gpr_977_test.cmj : mt.cmj ../runtime/js.cmj -gpr_return_type_unused_attribute.cmj : -gray_code_test.cmj : -guide_for_ext.cmj : -hamming_test.cmj : mt.cmj -hash_test.cmj : mt_global.cmj mt.cmj -hashtbl_test.cmj : mt.cmj -hello.foo.cmj : ../runtime/js.cmj -http_types.cmj : ../runtime/js.cmj -if_used_test.cmj : -ignore_test.cmj : mt.cmj ../runtime/js.cmj -imm_map_bench.cmj : ../runtime/js.cmj ../others/belt.cmj -include_side_effect.cmj : side_effect.cmj -include_side_effect_free.cmj : side_effect_free.cmj -infer_type_test.cmj : ../runtime/js.cmj infer_type_test.cmi -inline_edge_cases.cmj : inline_edge_cases.cmi -inline_map2_test.cmj : mt.cmj -inline_map_test.cmj : mt.cmj inline_map_test.cmi -inline_record_test.cmj : -inline_regression_test.cmj : mt.cmj -inline_string_test.cmj : ../runtime/js.cmj -inner_call.cmj : ../runtime/js.cmj inner_define.cmj -inner_define.cmj : inner_define.cmi -inner_unused.cmj : ../runtime/js.cmj -installation_test.cmj : ../others/node.cmj mt.cmj ../runtime/js.cmj \ - app_root_finder.cmj -int32_test.cmj : mt.cmj ext_array_test.cmj -int64_mul_div_test.cmj : mt.cmj -int64_test.cmj : mt.cmj ext_array_test.cmj ../runtime/caml_int64.cmj -int_hashtbl_test.cmj : mt.cmj -int_map.cmj : -int_overflow_test.cmj : mt.cmj ../runtime/js.cmj -int_switch_test.cmj : mt.cmj -io_test.cmj : ../runtime/js.cmj -js_array_test.cmj : mt.cmj ../runtime/js.cmj -js_bool_test.cmj : mt.cmj -js_cast_test.cmj : mt.cmj ../others/js_cast.cmj -js_date_test.cmj : mt.cmj ../others/js_float.cmj ../runtime/js.cmj -js_dict_test.cmj : mt.cmj ../others/js_dict.cmj -js_exception_catch_test.cmj : mt.cmj ../runtime/js.cmj -js_float_test.cmj : mt.cmj ../others/js_float.cmj -js_global_test.cmj : mt.cmj ../others/js_global.cmj -js_int_test.cmj : mt.cmj ../others/js_int.cmj -js_json_test.cmj : mt.cmj ../others/js_json.cmj ../others/js_dict.cmj \ - ../runtime/js.cmj -js_list_test.cmj : mt.cmj ../runtime/js.cmj -js_math_test.cmj : mt.cmj ../runtime/js.cmj -js_null_test.cmj : mt.cmj ../others/js_null.cmj ../runtime/js.cmj -js_null_undefined_test.cmj : mt.cmj ../others/js_null_undefined.cmj \ - ../runtime/js.cmj -js_nullable_test.cmj : mt.cmj ../runtime/js.cmj -js_obj_test.cmj : mt.cmj ../others/js_obj.cmj -js_option_test.cmj : mt.cmj ../runtime/js.cmj -js_promise_basic_test.cmj : mt.cmj ../others/js_promise.cmj \ - ../runtime/js.cmj -js_re_test.cmj : mt.cmj ../runtime/js.cmj -js_string_test.cmj : mt.cmj ../runtime/js.cmj -js_typed_array_test.cmj : mt.cmj ../others/js_typed_array.cmj \ - ../runtime/js.cmj -js_undefined_test.cmj : mt.cmj ../others/js_undefined.cmj ../runtime/js.cmj -js_val.cmj : -jsoo_400_test.cmj : mt.cmj -jsoo_485_test.cmj : -key_word_property.cmj : -key_word_property2.cmj : export_keyword.cmj -key_word_property_plus_test.cmj : mt.cmj ../runtime/js.cmj \ - global_mangles.cmj -large_record_duplication_test.cmj : mt.cmj -largest_int_flow.cmj : -lazy_test.cmj : mt.cmj -lexer_test.cmj : number_lexer.cmj mt.cmj arith_syntax.cmj arith_parser.cmj \ - arith_lexer.cmj -lib_js_test.cmj : mt.cmj ../runtime/js.cmj -libarg_test.cmj : mt.cmj -libqueue_test.cmj : -limits_test.cmj : mt.cmj -list_test.cmj : mt.cmj -local_class_type.cmj : ../runtime/js.cmj -local_exception_test.cmj : -loop_regression_test.cmj : mt.cmj -loop_suites_test.cmj : mt.cmj for_loop_test.cmj -map_find_test.cmj : mt.cmj -map_test.cmj : mt.cmj map_test.cmi -mario_game.cmj : ../runtime/js.cmj ../others/dom.cmi -method_chain.cmj : -method_name_test.cmj : mt.cmj -minimal_test.cmj : -miss_colon_test.cmj : -mock_mt.cmj : mt.cmj ../runtime/js.cmj -module_alias_test.cmj : mt.cmj ../runtime/js.cmj -module_as_class_ffi.cmj : -module_as_function.cmj : -module_missing_conversion.cmj : -module_parameter_test.cmj : mt.cmj -module_splice_test.cmj : mt.cmj ../runtime/js.cmj -more_uncurry.cmj : -mpr_6033_test.cmj : mt.cmj -mt.cmj : ../others/node.cmj ../runtime/js.cmj mt.cmi -mt_global.cmj : mt.cmj mt_global.cmi -mutable_obj_test.cmj : ../runtime/js.cmj -mutual_non_recursive_type.cmj : -name_mangle_test.cmj : mt.cmj ../runtime/js.cmj -nested_include.cmj : -nested_module_alias.cmj : -nested_obj_literal.cmj : -nested_obj_test.cmj : -nested_pattern_match_test.cmj : -noassert.cmj : -node_fs_test.cmj : ../others/node.cmj ../runtime/js.cmj -node_path_test.cmj : ../runtime/js.cmj -number_lexer.cmj : -obj_curry_test.cmj : -obj_literal_ppx.cmj : -obj_literal_ppx_test.cmj : ../runtime/js.cmj -obj_magic_test.cmj : mt.cmj -obj_test.cmj : mt.cmj -obj_type_test.cmj : ../runtime/js.cmj -ocaml_parsetree_main_bspack.cmj : mt.cmj -ocaml_parsetree_test.cmj : ../others/node.cmj ../runtime/js.cmj \ - ocaml_parsetree_test.cmi -ocaml_proto_test.cmj : mt.cmj ocaml_proto_test.cmi -ocaml_re_test.cmj : mt.cmj -ocaml_typed_tree_main_bspack.cmj : mt.cmj -ocaml_typedtree_test.cmj : ../others/node.cmj ../runtime/js.cmj \ - ocaml_typedtree_test.cmi -of_string_test.cmj : mt.cmj -offset.cmj : -oo_js_test_date.cmj : mt.cmj ../runtime/js.cmj -option_repr_test.cmj : mt.cmj ../runtime/js.cmj ../others/belt.cmj -optional_ffi_test.cmj : mt.cmj -optional_regression_test.cmj : mt.cmj ../runtime/js.cmj -parser_api.cmj : -parser_api_main_bspack.cmj : -parser_api_test.cmj : parser_api.cmj mt.cmj -pipe_send_readline.cmj : ../runtime/js.cmj -pipe_syntax.cmj : -poly_type.cmj : ../runtime/js.cmj -poly_variant_test.cmj : mt.cmj ../runtime/js.cmj poly_variant_test.cmi -polymorphism_test.cmj : polymorphism_test.cmi -polyvar_test.cmj : ../runtime/js.cmj -ppx_apply_test.cmj : mt.cmj -ppx_this_obj_field.cmj : mt.cmj ../runtime/js.cmj -ppx_this_obj_test.cmj : mt.cmj -pq_test.cmj : -pr6726.cmj : -pr_regression_test.cmj : mt.cmj -prepend_data_ffi.cmj : ../runtime/js.cmj -primitive_reg_test.cmj : -print_alpha_test.cmj : mt.cmj ../runtime/js.cmj -printf_sim.cmj : -printf_test.cmj : mt.cmj -promise.cmj : ../runtime/js.cmj -promise_catch_test.cmj : mt.cmj ../runtime/js.cmj -qcc.cmj : -queue_test.cmj : mt.cmj -random_test.cmj : mt_global.cmj mt.cmj -raw_hash_tbl_bench.cmj : -rbset.cmj : -rebind_module.cmj : -rebind_module_test.cmj : rebind_module.cmj -rec_fun_test.cmj : mt.cmj -rec_module_test.cmj : mt.cmj -rec_value_test.cmj : mt.cmj ../runtime/js.cmj -record_debug_test.cmj : ../runtime/js.cmj ../others/belt.cmj -record_with_test.cmj : mt.cmj -recursive_module.cmj : mt.cmj -recursive_module_test.cmj : mt.cmj -regression_print.cmj : -return_check.cmj : ../runtime/js.cmj -runtime_encoding_test.cmj : -scanf_io.cmj : testing.cmj -scanf_reference_error_regression_test.cmj : mt_global.cmj mt.cmj \ - scanf_reference_error_regression_test.cmi -scanf_test.cmj : mt_global.cmj mt.cmj -set_gen.cmj : -sexp.cmj : sexp.cmi -sexpm.cmj : sexpm.cmi -sexpm_test.cmj : sexpm.cmj mt.cmj ../runtime/js.cmj -shift_test.cmj : -side_effect.cmj : ../runtime/js.cmj -side_effect_free.cmj : -simple_derive_test.cmj : simple_derive_test.cmi -simple_derive_use.cmj : simple_derive_use.cmi -simple_lexer_test.cmj : mt.cmj -simplify_lambda_632o.cmj : -single_module_alias.cmj : -small_inline_test.cmj : -sprintf_reg_test.cmj : mt_global.cmj mt.cmj -stack_comp_test.cmj : mt_global.cmj mt.cmj -stack_test.cmj : mt.cmj -stream_parser_test.cmj : mt.cmj -string_bound_get_test.cmj : -string_get_set_test.cmj : mt.cmj -string_interp_test.cmj : ../runtime/js.cmj -string_literal_print_test.cmj : mt.cmj -string_runtime_test.cmj : mt.cmj ../runtime/caml_string.cmj \ - ../runtime/caml_char.cmj ../runtime/caml_bytes.cmj -string_set.cmj : set_gen.cmj -string_set_test.cmj : string_set.cmj mt.cmj -string_test.cmj : mt.cmj ext_string_test.cmj -string_unicode_test.cmj : ../runtime/js.cmj -stringmatch_test.cmj : -submodule.cmj : ../runtime/js.cmj -submodule_call.cmj : submodule.cmj -swap_test.cmj : mt.cmj -switch_case_test.cmj : mt.cmj -tailcall_inline_test.cmj : mt.cmj -test.cmj : -test_alias.cmj : test_global_print.cmj -test_ari.cmj : -test_array.cmj : -test_array_append.cmj : -test_array_primitive.cmj : -test_bool_equal.cmj : ../others/belt.cmj -test_bs_this.cmj : ../runtime/js.cmj -test_bug.cmj : -test_bytes.cmj : -test_case_set.cmj : -test_char.cmj : -test_closure.cmj : -test_common.cmj : -test_const_elim.cmj : -test_const_propogate.cmj : -test_cpp.cmj : -test_cps.cmj : -test_demo.cmj : -test_dup_param.cmj : -test_eq.cmj : -test_exception.cmj : test_common.cmj -test_exception_escape.cmj : -test_export2.cmj : -test_external.cmj : -test_external_unit.cmj : -test_ffi.cmj : -test_fib.cmj : -test_filename.cmj : -test_for_loop.cmj : -test_for_map.cmj : -test_for_map2.cmj : int_map.cmj test_for_map2.cmi -test_format.cmj : -test_formatter.cmj : -test_functor_dead_code.cmj : -test_generative_module.cmj : -test_global_print.cmj : -test_google_closure.cmj : ../runtime/js.cmj -test_http_server.cmj : ../runtime/js.cmj http_types.cmj test_http_server.cmi -test_include.cmj : test_order.cmj -test_incomplete.cmj : -test_incr_ref.cmj : -test_index.cmj : ../runtime/js.cmj -test_int_map_find.cmj : -test_internalOO.cmj : -test_is_js.cmj : mt.cmj test_is_js.cmi -test_js_ffi.cmj : -test_let.cmj : -test_list.cmj : -test_literal.cmj : -test_literals.cmj : test_literals.cmi -test_match_exception.cmj : -test_mutliple.cmj : -test_nat64.cmj : -test_nested_let.cmj : -test_nested_print.cmj : -test_non_export.cmj : -test_nullary.cmj : -test_obj.cmj : -test_obj_simple_ffi.cmj : ../runtime/js.cmj -test_order.cmj : -test_order_tailcall.cmj : -test_other_exn.cmj : -test_pack.cmj : -test_per.cmj : -test_pervasive.cmj : -test_pervasives2.cmj : -test_pervasives3.cmj : -test_primitive.cmj : -test_promise_bind.cmj : promise.cmj -test_ramification.cmj : -test_react.cmj : ../runtime/js.cmj -test_react_case.cmj : -test_regex.cmj : -test_require.cmj : ../runtime/js.cmj -test_runtime_encoding.cmj : -test_scope.cmj : -test_seq.cmj : -test_set.cmj : -test_side_effect_functor.cmj : -test_simple_include.cmj : -test_simple_obj.cmj : -test_simple_pattern_match.cmj : -test_simple_ref.cmj : -test_simple_tailcall.cmj : -test_small.cmj : -test_sprintf.cmj : -test_stack.cmj : -test_static_catch_ident.cmj : -test_string.cmj : -test_string_case.cmj : -test_string_const.cmj : ../runtime/js.cmj -test_string_map.cmj : -test_string_switch.cmj : -test_switch.cmj : -test_trywith.cmj : -test_tuple.cmj : -test_tuple_destructring.cmj : -test_type_based_arity.cmj : abstract_type.cmj -test_u.cmj : -test_unsafe_cmp.cmj : ../runtime/js.cmj -test_unsafe_obj_ffi.cmj : ../runtime/js.cmj test_unsafe_obj_ffi.cmi -test_unsafe_obj_ffi_ppx.cmj : ../runtime/js.cmj test_unsafe_obj_ffi_ppx.cmi -test_unsupported_primitive.cmj : -test_while_closure.cmj : -test_while_side_effect.cmj : -test_zero_nullable.cmj : mt.cmj ../runtime/js.cmj -testing.cmj : testing.cmi -tfloat_record_test.cmj : mt_global.cmj mt.cmj float_record.cmj \ - float_array.cmj -ticker.cmj : -to_string_test.cmj : mt.cmj -topsort_test.cmj : -tscanf_test.cmj : testing.cmj mt_global.cmj mt.cmj -tuple_alloc.cmj : -typeof_test.cmj : mt.cmj ../runtime/js.cmj -unboxed_attribute_test.cmj : -uncurry_glob_test.cmj : -undef_regression2_test.cmj : mt.cmj ../runtime/js.cmj -undef_regression_test.cmj : ../runtime/js.cmj ../runtime/caml_obj_extern.cmj -unicode_type_error.cmj : -unitest_string.cmj : -unsafe_obj_external.cmj : ../runtime/js.cmj -unsafe_ppx_test.cmj : mt.cmj ffi_js_test.cmj -unsafe_this.cmj : ../runtime/js.cmj unsafe_this.cmi -update_record_test.cmj : mt.cmj ../runtime/js.cmj -utf8_decode_test.cmj : mt.cmj ../runtime/js.cmj -watch_test.cmj : ../others/node.cmj ../runtime/js.cmj -webpack_config.cmj : ../runtime/js.cmj diff --git a/jscomp/test/.libdepend b/jscomp/test/.libdepend deleted file mode 100644 index 85745ba3b4..0000000000 --- a/jscomp/test/.libdepend +++ /dev/null @@ -1,631 +0,0 @@ -a_recursive_type.cmi : -abstract_type.cmi : -ari_regress_test.cmi : -array_test.cmi : -basic_module_test.cmi : -const_block_test.cmi : -demo_int_map.cmi : -ext_pervasives.cmi : ../stdlib/int32.cmi ../stdlib/format.cmi -float_record.cmi : -inline_edge_cases.cmi : -inline_map_test.cmi : -map_test.cmi : -mt.cmi : -mt_global.cmi : mt.cmi -scanf_reference_error_regression_test.cmi : -test_for_map2.cmi : -test_is_js.cmi : -testing.cmi : -ui_defs.cmi : -a.cmj : test_order.cmj ../stdlib/string.cmi ../stdlib/set.cmi \ - ../stdlib/list.cmi -a.cmx : test_order.cmx ../stdlib/string.cmx ../stdlib/set.cmx \ - ../stdlib/list.cmx -a_filename_test.cmj : mt.cmi ext_filename.cmj -a_filename_test.cmx : mt.cmx ext_filename.cmx -a_list_test.cmj : mt.cmi ext_list.cmj -a_list_test.cmx : mt.cmx ext_list.cmx -a_recursive_type.cmj : a_recursive_type.cmi -a_recursive_type.cmx : a_recursive_type.cmi -a_scope_bug.cmj : -a_scope_bug.cmx : -a_string_test.cmj : mt.cmi ../stdlib/list.cmi ext_string.cmj -a_string_test.cmx : mt.cmx ../stdlib/list.cmx ext_string.cmx -abstract_type.cmj : abstract_type.cmi -abstract_type.cmx : abstract_type.cmi -and_or_tailcall_test.cmj : mt.cmi -and_or_tailcall_test.cmx : mt.cmx -ari_regress_test.cmj : mt.cmi ari_regress_test.cmi -ari_regress_test.cmx : mt.cmx ari_regress_test.cmi -arith_lexer.cmj : ../stdlib/lexing.cmi arith_syntax.cmj arith_parser.cmj -arith_lexer.cmx : ../stdlib/lexing.cmx arith_syntax.cmx arith_parser.cmx -arith_parser.cmj : ../stdlib/parsing.cmi ../stdlib/obj.cmi \ - ../stdlib/lexing.cmi arith_syntax.cmj -arith_parser.cmx : ../stdlib/parsing.cmx ../stdlib/obj.cmx \ - ../stdlib/lexing.cmx arith_syntax.cmx -arith_syntax.cmj : -arith_syntax.cmx : -array_test.cmj : ../stdlib/pervasives.cmi mt.cmi ../stdlib/list.cmi \ - ../stdlib/array.cmi array_test.cmi -array_test.cmx : ../stdlib/pervasives.cmx mt.cmx ../stdlib/list.cmx \ - ../stdlib/array.cmx array_test.cmi -b.cmj : -b.cmx : -basic_module_test.cmj : ../stdlib/set.cmi pr6726.cmj offset.cmj \ - mt_global.cmi mt.cmi basic_module_test.cmi -basic_module_test.cmx : ../stdlib/set.cmx pr6726.cmx offset.cmx \ - mt_global.cmx mt.cmx basic_module_test.cmi -bdd.cmj : ../stdlib/array.cmi -bdd.cmx : ../stdlib/array.cmx -bigarray_test.cmj : ../stdlib/int32.cmi ../stdlib/complex.cmi \ - ../stdlib/bigarray.cmi -bigarray_test.cmx : ../stdlib/int32.cmx ../stdlib/complex.cmx \ - ../stdlib/bigarray.cmx -boolean_test.cmj : test_bool_equal.cmj mt.cmi -boolean_test.cmx : test_bool_equal.cmx mt.cmx -buffer_test.cmj : ../stdlib/string.cmi mt.cmi ../stdlib/bytes.cmi \ - ../stdlib/buffer.cmi -buffer_test.cmx : ../stdlib/string.cmx mt.cmx ../stdlib/bytes.cmx \ - ../stdlib/buffer.cmx -caml_compare_test.cmj : mt.cmi -caml_compare_test.cmx : mt.cmx -caml_format_test.cmj : ../stdlib/printf.cmi mt.cmi ../stdlib/int64.cmi \ - ../stdlib/format.cmi ../stdlib/buffer.cmi ../stdlib/array.cmi -caml_format_test.cmx : ../stdlib/printf.cmx mt.cmx ../stdlib/int64.cmx \ - ../stdlib/format.cmx ../stdlib/buffer.cmx ../stdlib/array.cmx -class3_test.cmj : mt.cmi ../stdlib/list.cmi ../lib/js.cmj \ - ../stdlib/array.cmi -class3_test.cmx : mt.cmx ../stdlib/list.cmx ../lib/js.cmx \ - ../stdlib/array.cmx -class4_test.cmj : mt.cmi -class4_test.cmx : mt.cmx -class5_test.cmj : mt.cmi ../stdlib/list.cmi -class5_test.cmx : mt.cmx ../stdlib/list.cmx -class6_test.cmj : mt.cmi -class6_test.cmx : mt.cmx -class7_test.cmj : ../stdlib/oo.cmi mt.cmi -class7_test.cmx : ../stdlib/oo.cmx mt.cmx -class8_test.cmj : mt.cmi -class8_test.cmx : mt.cmx -class_repr.cmj : ../stdlib/oo.cmi -class_repr.cmx : ../stdlib/oo.cmx -class_test.cmj : mt.cmi -class_test.cmx : mt.cmx -class_type_ffi_test.cmj : ../lib/js.cmj -class_type_ffi_test.cmx : ../lib/js.cmx -complex_if_test.cmj : mt.cmi ../stdlib/bytes.cmi -complex_if_test.cmx : mt.cmx ../stdlib/bytes.cmx -complex_test.cmj : mt.cmi ../stdlib/complex.cmi -complex_test.cmx : mt.cmx ../stdlib/complex.cmx -complex_while_loop.cmj : -complex_while_loop.cmx : -const_block_test.cmj : mt.cmi ../stdlib/array.cmi const_block_test.cmi -const_block_test.cmx : mt.cmx ../stdlib/array.cmx const_block_test.cmi -const_defs.cmj : -const_defs.cmx : -const_defs_test.cmj : const_defs.cmj -const_defs_test.cmx : const_defs.cmx -const_test.cmj : -const_test.cmx : -cont_int_fold_test.cmj : -cont_int_fold_test.cmx : -cps_test.cmj : mt.cmi ../stdlib/array.cmi -cps_test.cmx : mt.cmx ../stdlib/array.cmx -cross_module_inline_test.cmj : -cross_module_inline_test.cmx : -debug_keep_test.cmj : -debug_keep_test.cmx : -debugger_test.cmj : ../lib/js.cmj -debugger_test.cmx : ../lib/js.cmx -demo.cmj : -demo.cmx : -demo_int_map.cmj : ../stdlib/map.cmi demo_int_map.cmi -demo_int_map.cmx : ../stdlib/map.cmx demo_int_map.cmi -demo_page.cmj : -demo_page.cmx : -digest_test.cmj : ../stdlib/string.cmi ../stdlib/printf.cmi mt.cmi \ - ext_array.cmj ../stdlib/digest.cmi ../stdlib/array.cmi -digest_test.cmx : ../stdlib/string.cmx ../stdlib/printf.cmx mt.cmx \ - ext_array.cmx ../stdlib/digest.cmx ../stdlib/array.cmx -empty_obj.cmj : -empty_obj.cmx : -epsilon_test.cmj : mt.cmi -epsilon_test.cmx : mt.cmx -equal_exception_test.cmj : ../stdlib/string.cmi mt.cmi ../stdlib/bytes.cmi -equal_exception_test.cmx : ../stdlib/string.cmx mt.cmx ../stdlib/bytes.cmx -equal_test.cmj : -equal_test.cmx : -es6_module_test.cmj : mt.cmi ../stdlib/list.cmi -es6_module_test.cmx : mt.cmx ../stdlib/list.cmx -event_ffi.cmj : ../lib/js.cmj ../lib/fn.cmj -event_ffi.cmx : ../lib/js.cmx ../lib/fn.cmx -exception_raise_test.cmj : mt.cmi -exception_raise_test.cmx : mt.cmx -exception_value_test.cmj : -exception_value_test.cmx : -ext_array.cmj : ../stdlib/list.cmi ../stdlib/array.cmi -ext_array.cmx : ../stdlib/list.cmx ../stdlib/array.cmx -ext_bytes.cmj : ../stdlib/bytes.cmi -ext_bytes.cmx : ../stdlib/bytes.cmx -ext_filename.cmj : ../stdlib/sys.cmi ../stdlib/string.cmi ../stdlib/list.cmi \ - ../stdlib/filename.cmi ext_string.cmj ext_pervasives.cmi -ext_filename.cmx : ../stdlib/sys.cmx ../stdlib/string.cmx ../stdlib/list.cmx \ - ../stdlib/filename.cmx ext_string.cmx ext_pervasives.cmx -ext_list.cmj : ../stdlib/list.cmi ../stdlib/array.cmi -ext_list.cmx : ../stdlib/list.cmx ../stdlib/array.cmx -ext_log.cmj : lam_current_unit.cmj ../stdlib/format.cmi -ext_log.cmx : lam_current_unit.cmx ../stdlib/format.cmx -ext_pervasives.cmj : ../stdlib/int32.cmi ../stdlib/format.cmi \ - ext_pervasives.cmi -ext_pervasives.cmx : ../stdlib/int32.cmx ../stdlib/format.cmx \ - ext_pervasives.cmi -ext_string.cmj : ../stdlib/string.cmi ext_bytes.cmj ../stdlib/char.cmi \ - ../stdlib/bytes.cmi -ext_string.cmx : ../stdlib/string.cmx ext_bytes.cmx ../stdlib/char.cmx \ - ../stdlib/bytes.cmx -extensible_variant_test.cmj : mt.cmi -extensible_variant_test.cmx : mt.cmx -fail_comp.cmj : -fail_comp.cmx : -ffi_arity_test.cmj : mt.cmi ../lib/fn.cmj -ffi_arity_test.cmx : mt.cmx ../lib/fn.cmx -ffi_js.cmj : -ffi_js.cmx : -ffi_test.cmj : ../lib/js.cmj -ffi_test.cmx : ../lib/js.cmx -fib.cmj : -fib.cmx : -float_array.cmj : -float_array.cmx : -float_of_bits_test.cmj : ../stdlib/printf.cmi mt.cmi ../stdlib/list.cmi \ - ../stdlib/int64.cmi ../stdlib/int32.cmi ../stdlib/array.cmi -float_of_bits_test.cmx : ../stdlib/printf.cmx mt.cmx ../stdlib/list.cmx \ - ../stdlib/int64.cmx ../stdlib/int32.cmx ../stdlib/array.cmx -float_record.cmj : float_record.cmi -float_record.cmx : float_record.cmi -float_test.cmj : ../stdlib/printf.cmi ../stdlib/pervasives.cmi mt_global.cmi \ - mt.cmi ../lib/js.cmj ../stdlib/int64.cmi ../stdlib/array.cmi -float_test.cmx : ../stdlib/printf.cmx ../stdlib/pervasives.cmx mt_global.cmx \ - mt.cmx ../lib/js.cmx ../stdlib/int64.cmx ../stdlib/array.cmx -for_loop_test.cmj : mt.cmi ../stdlib/list.cmi ../stdlib/array.cmi -for_loop_test.cmx : mt.cmx ../stdlib/list.cmx ../stdlib/array.cmx -for_side_effect_test.cmj : mt.cmi -for_side_effect_test.cmx : mt.cmx -format_regression.cmj : -format_regression.cmx : -genlex_test.cmj : ../stdlib/stream.cmi mt.cmi ../stdlib/list.cmi \ - ../stdlib/genlex.cmi -genlex_test.cmx : ../stdlib/stream.cmx mt.cmx ../stdlib/list.cmx \ - ../stdlib/genlex.cmx -global_exception_regression_test.cmj : mt.cmi -global_exception_regression_test.cmx : mt.cmx -google_closure_test.cmj : test_google_closure.cmj mt.cmi -google_closure_test.cmx : test_google_closure.cmx mt.cmx -guide_for_ext.cmj : -guide_for_ext.cmx : -hamming_test.cmj : ../stdlib/printf.cmi mt.cmi ../stdlib/lazy.cmi \ - ../stdlib/int64.cmi ../stdlib/buffer.cmi -hamming_test.cmx : ../stdlib/printf.cmx mt.cmx ../stdlib/lazy.cmx \ - ../stdlib/int64.cmx ../stdlib/buffer.cmx -hash_test.cmj : ../stdlib/string.cmi mt_global.cmi mt.cmi \ - ../stdlib/hashtbl.cmi ../stdlib/char.cmi ../stdlib/array.cmi -hash_test.cmx : ../stdlib/string.cmx mt_global.cmx mt.cmx \ - ../stdlib/hashtbl.cmx ../stdlib/char.cmx ../stdlib/array.cmx -hashtbl_test.cmj : mt.cmi ../stdlib/list.cmi ../stdlib/hashtbl.cmi \ - ../stdlib/array.cmi -hashtbl_test.cmx : mt.cmx ../stdlib/list.cmx ../stdlib/hashtbl.cmx \ - ../stdlib/array.cmx -inline_edge_cases.cmj : inline_edge_cases.cmi -inline_edge_cases.cmx : inline_edge_cases.cmi -inline_map2_test.cmj : mt.cmi ../stdlib/list.cmi -inline_map2_test.cmx : mt.cmx ../stdlib/list.cmx -inline_map_test.cmj : mt.cmi ../stdlib/list.cmi inline_map_test.cmi -inline_map_test.cmx : mt.cmx ../stdlib/list.cmx inline_map_test.cmi -inline_regression_test.cmj : ../stdlib/string.cmi mt.cmi \ - ../stdlib/filename.cmi -inline_regression_test.cmx : ../stdlib/string.cmx mt.cmx \ - ../stdlib/filename.cmx -int32_test.cmj : mt.cmi ../stdlib/int32.cmi ../stdlib/format.cmi \ - ext_array.cmj ../stdlib/array.cmi -int32_test.cmx : mt.cmx ../stdlib/int32.cmx ../stdlib/format.cmx \ - ext_array.cmx ../stdlib/array.cmx -int64_mul_div_test.cmj : ../stdlib/printf.cmi mt.cmi ../stdlib/list.cmi \ - ../stdlib/int64.cmi ../stdlib/array.cmi -int64_mul_div_test.cmx : ../stdlib/printf.cmx mt.cmx ../stdlib/list.cmx \ - ../stdlib/int64.cmx ../stdlib/array.cmx -int64_test.cmj : ../stdlib/pervasives.cmi ../stdlib/nativeint.cmi mt.cmi \ - ../lib/js.cmj ../stdlib/int64.cmi ../stdlib/int32.cmi \ - ../stdlib/format.cmi ext_array.cmj ../stdlib/array.cmi -int64_test.cmx : ../stdlib/pervasives.cmx ../stdlib/nativeint.cmx mt.cmx \ - ../lib/js.cmx ../stdlib/int64.cmx ../stdlib/int32.cmx \ - ../stdlib/format.cmx ext_array.cmx ../stdlib/array.cmx -int_hashtbl_test.cmj : mt.cmi ../stdlib/list.cmi ../stdlib/hashtbl.cmi \ - ../stdlib/array.cmi -int_hashtbl_test.cmx : mt.cmx ../stdlib/list.cmx ../stdlib/hashtbl.cmx \ - ../stdlib/array.cmx -int_map.cmj : ../stdlib/map.cmi -int_map.cmx : ../stdlib/map.cmx -int_overflow_test.cmj : ../stdlib/string.cmi mt.cmi ../stdlib/int32.cmi \ - ../stdlib/char.cmi -int_overflow_test.cmx : ../stdlib/string.cmx mt.cmx ../stdlib/int32.cmx \ - ../stdlib/char.cmx -io_test.cmj : ../lib/js.cmj -io_test.cmx : ../lib/js.cmx -js_bool_test.cmj : mt.cmi ../lib/js.cmj -js_bool_test.cmx : mt.cmx ../lib/js.cmx -js_date.cmj : -js_date.cmx : -js_date_test.cmj : mt.cmi js_date.cmj -js_date_test.cmx : mt.cmx js_date.cmx -js_obj_test.cmj : mt.cmi -js_obj_test.cmx : mt.cmx -js_val.cmj : -js_val.cmx : -lam_current_unit.cmj : ../stdlib/string.cmi ../stdlib/filename.cmi -lam_current_unit.cmx : ../stdlib/string.cmx ../stdlib/filename.cmx -lam_methname.cmj : ../stdlib/string.cmi ../stdlib/list.cmi \ - lam_current_unit.cmj ext_string.cmj ext_log.cmj -lam_methname.cmx : ../stdlib/string.cmx ../stdlib/list.cmx \ - lam_current_unit.cmx ext_string.cmx ext_log.cmx -lam_methname_test.cmj : mt.cmi lam_methname.cmj -lam_methname_test.cmx : mt.cmx lam_methname.cmx -lazy_test.cmj : mt.cmi ../stdlib/lazy.cmi -lazy_test.cmx : mt.cmx ../stdlib/lazy.cmx -lexer_test.cmj : number_lexer.cmj mt.cmi ../stdlib/list.cmi \ - ../stdlib/lexing.cmi arith_syntax.cmj arith_parser.cmj arith_lexer.cmj -lexer_test.cmx : number_lexer.cmx mt.cmx ../stdlib/list.cmx \ - ../stdlib/lexing.cmx arith_syntax.cmx arith_parser.cmx arith_lexer.cmx -lib_js_test.cmj : mt.cmi ../lib/js.cmj -lib_js_test.cmx : mt.cmx ../lib/js.cmx -libarg_test.cmj : ../stdlib/printf.cmi mt.cmi ../stdlib/list.cmi \ - ../stdlib/arg.cmi -libarg_test.cmx : ../stdlib/printf.cmx mt.cmx ../stdlib/list.cmx \ - ../stdlib/arg.cmx -libqueue_test.cmj : ../stdlib/queue.cmi ../stdlib/list.cmi -libqueue_test.cmx : ../stdlib/queue.cmx ../stdlib/list.cmx -limits_test.cmj : mt.cmi ../stdlib/int32.cmi -limits_test.cmx : mt.cmx ../stdlib/int32.cmx -list_test.cmj : ../stdlib/pervasives.cmi mt.cmi ../stdlib/list.cmi \ - ../stdlib/array.cmi -list_test.cmx : ../stdlib/pervasives.cmx mt.cmx ../stdlib/list.cmx \ - ../stdlib/array.cmx -local_exception_test.cmj : -local_exception_test.cmx : -loop_regression_test.cmj : mt.cmi -loop_regression_test.cmx : mt.cmx -loop_suites_test.cmj : mt.cmi for_loop_test.cmj -loop_suites_test.cmx : mt.cmx for_loop_test.cmx -map_find_test.cmj : mt.cmi ../stdlib/map.cmi ../stdlib/list.cmi -map_find_test.cmx : mt.cmx ../stdlib/map.cmx ../stdlib/list.cmx -map_test.cmj : ../stdlib/string.cmi ../stdlib/pervasives.cmi mt.cmi \ - ../stdlib/map.cmi ../stdlib/list.cmi map_test.cmi -map_test.cmx : ../stdlib/string.cmx ../stdlib/pervasives.cmx mt.cmx \ - ../stdlib/map.cmx ../stdlib/list.cmx map_test.cmi -mock_mt.cmj : mt.cmi ../stdlib/list.cmi ../lib/js.cmj -mock_mt.cmx : mt.cmx ../stdlib/list.cmx ../lib/js.cmx -module_alias.cmj : ../stdlib/pervasives.cmi ../stdlib/list.cmi -module_alias.cmx : ../stdlib/pervasives.cmx ../stdlib/list.cmx -module_parameter_test.cmj : ../stdlib/string.cmi mt.cmi -module_parameter_test.cmx : ../stdlib/string.cmx mt.cmx -mt.cmj : ../stdlib/list.cmi mt.cmi -mt.cmx : ../stdlib/list.cmx mt.cmi -mt_global.cmj : mt.cmi mt_global.cmi -mt_global.cmx : mt.cmx mt_global.cmi -number_lexer.cmj : ../stdlib/sys.cmi ../stdlib/lexing.cmi -number_lexer.cmx : ../stdlib/sys.cmx ../stdlib/lexing.cmx -obj_magic_test.cmj : ../stdlib/obj.cmi mt.cmi -obj_magic_test.cmx : ../stdlib/obj.cmx mt.cmx -obj_test.cmj : mt.cmi -obj_test.cmx : mt.cmx -of_string_test.cmj : mt.cmi -of_string_test.cmx : mt.cmx -offset.cmj : ../stdlib/string.cmi ../stdlib/set.cmi -offset.cmx : ../stdlib/string.cmx ../stdlib/set.cmx -pq_test.cmj : -pq_test.cmx : -pr6726.cmj : -pr6726.cmx : -pr_regression_test.cmj : mt.cmi -pr_regression_test.cmx : mt.cmx -primitive_reg_test.cmj : -primitive_reg_test.cmx : -print_alpha_test.cmj : mt.cmi ../lib/js.cmj -print_alpha_test.cmx : mt.cmx ../lib/js.cmx -printf_sim.cmj : ../stdlib/printf.cmi -printf_sim.cmx : ../stdlib/printf.cmx -printf_test.cmj : ../stdlib/printf.cmi mt.cmi ../stdlib/format.cmi -printf_test.cmx : ../stdlib/printf.cmx mt.cmx ../stdlib/format.cmx -qcc.cmj : ../stdlib/sys.cmi ../stdlib/string.cmi ../stdlib/printf.cmi \ - ../stdlib/list.cmi ../stdlib/char.cmi ../stdlib/bytes.cmi \ - ../stdlib/array.cmi -qcc.cmx : ../stdlib/sys.cmx ../stdlib/string.cmx ../stdlib/printf.cmx \ - ../stdlib/list.cmx ../stdlib/char.cmx ../stdlib/bytes.cmx \ - ../stdlib/array.cmx -queue_test.cmj : ../stdlib/queue.cmi mt.cmi ../stdlib/array.cmi -queue_test.cmx : ../stdlib/queue.cmx mt.cmx ../stdlib/array.cmx -random_test.cmj : ../stdlib/random.cmi ../stdlib/printf.cmi mt_global.cmi \ - mt.cmi ../stdlib/int64.cmi ../stdlib/array.cmi -random_test.cmx : ../stdlib/random.cmx ../stdlib/printf.cmx mt_global.cmx \ - mt.cmx ../stdlib/int64.cmx ../stdlib/array.cmx -rec_module_test.cmj : ../stdlib/set.cmi ../stdlib/pervasives.cmi mt.cmi -rec_module_test.cmx : ../stdlib/set.cmx ../stdlib/pervasives.cmx mt.cmx -rec_value_test.cmj : mt.cmi ../stdlib/list.cmi ../stdlib/lazy.cmi -rec_value_test.cmx : mt.cmx ../stdlib/list.cmx ../stdlib/lazy.cmx -record_with_test.cmj : mt.cmi -record_with_test.cmx : mt.cmx -regression_print.cmj : -regression_print.cmx : -runtime_encoding_test.cmj : -runtime_encoding_test.cmx : -scanf_io.cmj : testing.cmi ../stdlib/string.cmi ../stdlib/scanf.cmi \ - ../stdlib/printf.cmi ../stdlib/list.cmi ../stdlib/digest.cmi \ - ../stdlib/buffer.cmi -scanf_io.cmx : testing.cmx ../stdlib/string.cmx ../stdlib/scanf.cmx \ - ../stdlib/printf.cmx ../stdlib/list.cmx ../stdlib/digest.cmx \ - ../stdlib/buffer.cmx -scanf_reference_error_regression_test.cmj : ../stdlib/scanf.cmi \ - ../stdlib/printf.cmi mt_global.cmi mt.cmi ../stdlib/list.cmi \ - scanf_reference_error_regression_test.cmi -scanf_reference_error_regression_test.cmx : ../stdlib/scanf.cmx \ - ../stdlib/printf.cmx mt_global.cmx mt.cmx ../stdlib/list.cmx \ - scanf_reference_error_regression_test.cmi -scanf_test.cmj : ../stdlib/scanf.cmi mt_global.cmi mt.cmi -scanf_test.cmx : ../stdlib/scanf.cmx mt_global.cmx mt.cmx -shift_test.cmj : ../stdlib/nativeint.cmi -shift_test.cmx : ../stdlib/nativeint.cmx -simple_lexer_test.cmj : ../stdlib/string.cmi mt.cmi ../stdlib/lexing.cmi -simple_lexer_test.cmx : ../stdlib/string.cmx mt.cmx ../stdlib/lexing.cmx -small_inline_test.cmj : -small_inline_test.cmx : -sprintf_reg_test.cmj : ../stdlib/printf.cmi mt_global.cmi mt.cmi -sprintf_reg_test.cmx : ../stdlib/printf.cmx mt_global.cmx mt.cmx -stack_comp_test.cmj : ../stdlib/stack.cmi mt_global.cmi mt.cmi -stack_comp_test.cmx : ../stdlib/stack.cmx mt_global.cmx mt.cmx -stack_test.cmj : ../stdlib/stack.cmi mt.cmi ../stdlib/list.cmi -stack_test.cmx : ../stdlib/stack.cmx mt.cmx ../stdlib/list.cmx -string_get_set_test.cmj : mt.cmi -string_get_set_test.cmx : mt.cmx -string_literal_print_test.cmj : mt.cmi -string_literal_print_test.cmx : mt.cmx -string_runtime_test.cmj : ../stdlib/string.cmi mt.cmi ../stdlib/list.cmi \ - ../runtime/caml_string.cmi ../stdlib/bytes.cmi -string_runtime_test.cmx : ../stdlib/string.cmx mt.cmx ../stdlib/list.cmx \ - ../runtime/caml_string.cmx ../stdlib/bytes.cmx -string_test.cmj : ../stdlib/string.cmi mt.cmi ../stdlib/list.cmi \ - ext_string.cmj ../stdlib/bytes.cmi -string_test.cmx : ../stdlib/string.cmx mt.cmx ../stdlib/list.cmx \ - ext_string.cmx ../stdlib/bytes.cmx -stringmatch_test.cmj : ../stdlib/string.cmi -stringmatch_test.cmx : ../stdlib/string.cmx -swap_test.cmj : ../stdlib/printf.cmi mt.cmi ../stdlib/list.cmi \ - ../stdlib/int64.cmi ../stdlib/int32.cmi ../stdlib/format.cmi \ - ../stdlib/array.cmi -swap_test.cmx : ../stdlib/printf.cmx mt.cmx ../stdlib/list.cmx \ - ../stdlib/int64.cmx ../stdlib/int32.cmx ../stdlib/format.cmx \ - ../stdlib/array.cmx -tailcall_inline_test.cmj : mt.cmi ../stdlib/array.cmi -tailcall_inline_test.cmx : mt.cmx ../stdlib/array.cmx -test_alias.cmj : test_global_print.cmj -test_alias.cmx : test_global_print.cmx -test_ari.cmj : ../stdlib/list.cmi -test_ari.cmx : ../stdlib/list.cmx -test_array.cmj : ../stdlib/array.cmi -test_array.cmx : ../stdlib/array.cmx -test_array_append.cmj : ../stdlib/array.cmi -test_array_append.cmx : ../stdlib/array.cmx -test_array_primitive.cmj : ../stdlib/array.cmi -test_array_primitive.cmx : ../stdlib/array.cmx -test_bool_equal.cmj : -test_bool_equal.cmx : -test_bug.cmj : ../stdlib/bytes.cmi -test_bug.cmx : ../stdlib/bytes.cmx -test_bytes.cmj : ../stdlib/bytes.cmi -test_bytes.cmx : ../stdlib/bytes.cmx -test_char.cmj : -test_char.cmx : -test_closure.cmj : ../stdlib/array.cmi -test_closure.cmx : ../stdlib/array.cmx -test_common.cmj : -test_common.cmx : -test_const_elim.cmj : -test_const_elim.cmx : -test_const_propogate.cmj : -test_const_propogate.cmx : -test_cps.cmj : ../stdlib/array.cmi -test_cps.cmx : ../stdlib/array.cmx -test_demo.cmj : ../stdlib/list.cmi -test_demo.cmx : ../stdlib/list.cmx -test_dup_param.cmj : -test_dup_param.cmx : -test_eq.cmj : -test_eq.cmx : -test_exception.cmj : test_common.cmj -test_exception.cmx : test_common.cmx -test_exception_escape.cmj : -test_exception_escape.cmx : -test_export2.cmj : -test_export2.cmx : -test_external.cmj : -test_external.cmx : -test_external_unit.cmj : -test_external_unit.cmx : -test_ffi.cmj : -test_ffi.cmx : -test_fib.cmj : -test_fib.cmx : -test_filename.cmj : ../stdlib/list.cmi ../stdlib/filename.cmi -test_filename.cmx : ../stdlib/list.cmx ../stdlib/filename.cmx -test_for_loop.cmj : ../stdlib/array.cmi -test_for_loop.cmx : ../stdlib/array.cmx -test_for_map.cmj : ../stdlib/map.cmi -test_for_map.cmx : ../stdlib/map.cmx -test_for_map2.cmj : int_map.cmj test_for_map2.cmi -test_for_map2.cmx : int_map.cmx test_for_map2.cmi -test_format.cmj : ../stdlib/format.cmi -test_format.cmx : ../stdlib/format.cmx -test_formatter.cmj : -test_formatter.cmx : -test_functor_dead_code.cmj : ../stdlib/string.cmi ../stdlib/map.cmi -test_functor_dead_code.cmx : ../stdlib/string.cmx ../stdlib/map.cmx -test_generative_module.cmj : -test_generative_module.cmx : -test_global_print.cmj : ../stdlib/list.cmi ../stdlib/hashtbl.cmi -test_global_print.cmx : ../stdlib/list.cmx ../stdlib/hashtbl.cmx -test_google_closure.cmj : ../lib/js.cmj ../stdlib/array.cmi -test_google_closure.cmx : ../lib/js.cmx ../stdlib/array.cmx -test_include.cmj : test_order.cmj ../stdlib/string.cmi ../stdlib/set.cmi \ - ../stdlib/list.cmi -test_include.cmx : test_order.cmx ../stdlib/string.cmx ../stdlib/set.cmx \ - ../stdlib/list.cmx -test_incomplete.cmj : -test_incomplete.cmx : -test_incr_ref.cmj : -test_incr_ref.cmx : -test_int_map_find.cmj : ../stdlib/map.cmi ../stdlib/list.cmi -test_int_map_find.cmx : ../stdlib/map.cmx ../stdlib/list.cmx -test_internalOO.cmj : ../stdlib/sys.cmi ../stdlib/string.cmi \ - ../stdlib/obj.cmi ../stdlib/map.cmi ../stdlib/list.cmi ../stdlib/char.cmi \ - ../stdlib/array.cmi -test_internalOO.cmx : ../stdlib/sys.cmx ../stdlib/string.cmx \ - ../stdlib/obj.cmx ../stdlib/map.cmx ../stdlib/list.cmx ../stdlib/char.cmx \ - ../stdlib/array.cmx -test_is_js.cmj : test_is_js.cmi -test_is_js.cmx : test_is_js.cmi -test_js_ffi.cmj : ../stdlib/string.cmi ../stdlib/set.cmi -test_js_ffi.cmx : ../stdlib/string.cmx ../stdlib/set.cmx -test_let.cmj : -test_let.cmx : -test_list.cmj : ../stdlib/list.cmi -test_list.cmx : ../stdlib/list.cmx -test_literal.cmj : -test_literal.cmx : -test_match_exception.cmj : -test_match_exception.cmx : -test_nat64.cmj : -test_nat64.cmx : -test_nested_let.cmj : -test_nested_let.cmx : -test_nested_print.cmj : -test_nested_print.cmx : -test_non_export.cmj : ../stdlib/string.cmi ../stdlib/set.cmi -test_non_export.cmx : ../stdlib/string.cmx ../stdlib/set.cmx -test_nullary.cmj : -test_nullary.cmx : -test_obj.cmj : -test_obj.cmx : -test_obj_simple_ffi.cmj : -test_obj_simple_ffi.cmx : -test_order.cmj : ../stdlib/pervasives.cmi -test_order.cmx : ../stdlib/pervasives.cmx -test_order_tailcall.cmj : -test_order_tailcall.cmx : -test_pack.cmj : -test_pack.cmx : -test_per.cmj : ../stdlib/camlinternalFormatBasics.cmi -test_per.cmx : ../stdlib/camlinternalFormatBasics.cmx -test_pervasive.cmj : ../stdlib/pervasives.cmi ../stdlib/list.cmi -test_pervasive.cmx : ../stdlib/pervasives.cmx ../stdlib/list.cmx -test_pervasives2.cmj : ../stdlib/stack.cmi ../stdlib/pervasives.cmi \ - ../stdlib/list.cmi -test_pervasives2.cmx : ../stdlib/stack.cmx ../stdlib/pervasives.cmx \ - ../stdlib/list.cmx -test_pervasives3.cmj : ../stdlib/pervasives.cmi ../stdlib/list.cmi -test_pervasives3.cmx : ../stdlib/pervasives.cmx ../stdlib/list.cmx -test_primitive.cmj : ../stdlib/string.cmi ../stdlib/lazy.cmi \ - ../stdlib/array.cmi -test_primitive.cmx : ../stdlib/string.cmx ../stdlib/lazy.cmx \ - ../stdlib/array.cmx -test_ramification.cmj : -test_ramification.cmx : -test_react.cmj : -test_react.cmx : -test_react_case.cmj : -test_react_case.cmx : -test_runtime_encoding.cmj : ../stdlib/array.cmi -test_runtime_encoding.cmx : ../stdlib/array.cmx -test_scope.cmj : -test_scope.cmx : -test_seq.cmj : ../stdlib/printf.cmi -test_seq.cmx : ../stdlib/printf.cmx -test_set.cmj : ../stdlib/list.cmi -test_set.cmx : ../stdlib/list.cmx -test_side_effect_functor.cmj : -test_side_effect_functor.cmx : -test_simple_include.cmj : ../stdlib/array.cmi -test_simple_include.cmx : ../stdlib/array.cmx -test_simple_obj.cmj : -test_simple_obj.cmx : -test_simple_pattern_match.cmj : ../stdlib/sys.cmi -test_simple_pattern_match.cmx : ../stdlib/sys.cmx -test_simple_ref.cmj : -test_simple_ref.cmx : -test_simple_tailcall.cmj : -test_simple_tailcall.cmx : -test_small.cmj : -test_small.cmx : -test_sprintf.cmj : ../stdlib/printf.cmi -test_sprintf.cmx : ../stdlib/printf.cmx -test_stack.cmj : ../stdlib/stack.cmi -test_stack.cmx : ../stdlib/stack.cmx -test_static_catch_ident.cmj : -test_static_catch_ident.cmx : -test_string.cmj : ../stdlib/string.cmi ../stdlib/bytes.cmi -test_string.cmx : ../stdlib/string.cmx ../stdlib/bytes.cmx -test_string_case.cmj : -test_string_case.cmx : -test_string_const.cmj : ../stdlib/string.cmi -test_string_const.cmx : ../stdlib/string.cmx -test_string_map.cmj : ../stdlib/map.cmi -test_string_map.cmx : ../stdlib/map.cmx -test_string_switch.cmj : ../stdlib/sys.cmi -test_string_switch.cmx : ../stdlib/sys.cmx -test_switch.cmj : -test_switch.cmx : -test_trywith.cmj : -test_trywith.cmx : -test_tuple.cmj : -test_tuple.cmx : -test_tuple_destructring.cmj : -test_tuple_destructring.cmx : -test_type_based_arity.cmj : abstract_type.cmi -test_type_based_arity.cmx : abstract_type.cmx -test_u.cmj : -test_u.cmx : -test_unsupported_primitive.cmj : ../stdlib/bytes.cmi -test_unsupported_primitive.cmx : ../stdlib/bytes.cmx -test_while_closure.cmj : ../stdlib/array.cmi -test_while_closure.cmx : ../stdlib/array.cmx -test_while_side_effect.cmj : -test_while_side_effect.cmx : -test_zero_nullable.cmj : mt.cmi ../lib/js.cmj -test_zero_nullable.cmx : mt.cmx ../lib/js.cmx -testing.cmj : ../stdlib/scanf.cmi ../stdlib/printf.cmi testing.cmi -testing.cmx : ../stdlib/scanf.cmx ../stdlib/printf.cmx testing.cmi -tfloat_record_test.cmj : mt_global.cmi mt.cmi ../stdlib/format.cmi \ - float_record.cmi float_array.cmj ../stdlib/buffer.cmi ../stdlib/array.cmi -tfloat_record_test.cmx : mt_global.cmx mt.cmx ../stdlib/format.cmx \ - float_record.cmx float_array.cmx ../stdlib/buffer.cmx ../stdlib/array.cmx -ticker.cmj : ../stdlib/string.cmi ../stdlib/printf.cmi \ - ../stdlib/pervasives.cmi ../stdlib/map.cmi ../stdlib/list.cmi -ticker.cmx : ../stdlib/string.cmx ../stdlib/printf.cmx \ - ../stdlib/pervasives.cmx ../stdlib/map.cmx ../stdlib/list.cmx -to_string_test.cmj : mt.cmi -to_string_test.cmx : mt.cmx -tscanf_test.cmj : testing.cmi ../stdlib/string.cmi ../stdlib/scanf.cmi \ - ../stdlib/printf.cmi ../stdlib/nativeint.cmi mt_global.cmi mt.cmi \ - ../stdlib/list.cmi ../stdlib/int64.cmi ../stdlib/int32.cmi \ - ../stdlib/buffer.cmi -tscanf_test.cmx : testing.cmx ../stdlib/string.cmx ../stdlib/scanf.cmx \ - ../stdlib/printf.cmx ../stdlib/nativeint.cmx mt_global.cmx mt.cmx \ - ../stdlib/list.cmx ../stdlib/int64.cmx ../stdlib/int32.cmx \ - ../stdlib/buffer.cmx -tuple_alloc.cmj : -tuple_alloc.cmx : -typeof_test.cmj : mt.cmi ../lib/js.cmj -typeof_test.cmx : mt.cmx ../lib/js.cmx -undef_regression_test.cmj : ../lib/js.cmj -undef_regression_test.cmx : ../lib/js.cmx -unitest_string.cmj : -unitest_string.cmx : -unsafe_ppx_test.cmj : mt.cmi ffi_js.cmj -unsafe_ppx_test.cmx : mt.cmx ffi_js.cmx From 4cb9395503d0ea959076d82dc2ffddc059430c51 Mon Sep 17 00:00:00 2001 From: Christoph Knittel Date: Sat, 29 Jun 2024 16:42:52 +0200 Subject: [PATCH 2/6] ReScript Core 1.5.2 --- packages/playground-bundling/package-lock.json | 14 +++++++------- packages/playground-bundling/package.json | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/playground-bundling/package-lock.json b/packages/playground-bundling/package-lock.json index 505773afca..88ba9ec882 100644 --- a/packages/playground-bundling/package-lock.json +++ b/packages/playground-bundling/package-lock.json @@ -9,14 +9,14 @@ "version": "1.0.0", "license": "ISC", "dependencies": { - "@rescript/core": "^1.5.0", + "@rescript/core": "^1.5.2", "@rescript/react": "^0.12.1" } }, "node_modules/@rescript/core": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/@rescript/core/-/core-1.5.0.tgz", - "integrity": "sha512-XTKtpMfqCF5qmYWrdTJjhy2lDIWwwlOFgI5Vo5eB/kzRWXvM9R29ZpMoVXbn0fURl+uF3GvFp2/CbZlF3wt1Zg==", + "version": "1.5.2", + "resolved": "https://registry.npmjs.org/@rescript/core/-/core-1.5.2.tgz", + "integrity": "sha512-VWRFHrQu8hWnd9Y9LYZ8kig2urybhZlDVGy5u50bqf2WCRAeysBIfxK8eN4VlpQT38igMo0/uLX1KSpwCVMYGw==", "peerDependencies": { "rescript": "^11.1.0-rc.7" } @@ -100,9 +100,9 @@ }, "dependencies": { "@rescript/core": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/@rescript/core/-/core-1.5.0.tgz", - "integrity": "sha512-XTKtpMfqCF5qmYWrdTJjhy2lDIWwwlOFgI5Vo5eB/kzRWXvM9R29ZpMoVXbn0fURl+uF3GvFp2/CbZlF3wt1Zg==", + "version": "1.5.2", + "resolved": "https://registry.npmjs.org/@rescript/core/-/core-1.5.2.tgz", + "integrity": "sha512-VWRFHrQu8hWnd9Y9LYZ8kig2urybhZlDVGy5u50bqf2WCRAeysBIfxK8eN4VlpQT38igMo0/uLX1KSpwCVMYGw==", "requires": {} }, "@rescript/react": { diff --git a/packages/playground-bundling/package.json b/packages/playground-bundling/package.json index 0456bf38cc..9ba9e6ad08 100644 --- a/packages/playground-bundling/package.json +++ b/packages/playground-bundling/package.json @@ -11,7 +11,7 @@ "author": "", "license": "ISC", "dependencies": { - "@rescript/core": "^1.5.0", + "@rescript/core": "^1.5.2", "@rescript/react": "^0.12.1" } } From c7ab0c6da90d5e7635f6989f93540a6bcf450118 Mon Sep 17 00:00:00 2001 From: Christoph Knittel Date: Sat, 29 Jun 2024 08:42:42 +0200 Subject: [PATCH 3/6] Js_mapperRt -> Runtime_deriving --- jscomp/ext/js_runtime_modules.ml | 2 + jscomp/frontend/ast_derive_js_mapper.ml | 9 ++- jscomp/others/js.res | 2 - jscomp/others/release.ninja | 8 +-- .../{js_mapperRt.res => runtime_deriving.res} | 31 ---------- ...js_mapperRt.resi => runtime_deriving.resi} | 7 --- jscomp/runtime/js.res | 2 - jscomp/test/ast_abstract_test.js | 4 +- lib/es6/belt_internalBuckets.js | 26 ++++----- lib/es6/belt_internalSetBuckets.js | 24 ++++---- lib/es6/js.js | 3 - lib/es6/js_mapperRt.js | 56 ------------------- lib/es6/runtime_deriving.js | 18 ++++++ lib/js/belt_internalBuckets.js | 26 ++++----- lib/js/belt_internalSetBuckets.js | 24 ++++---- lib/js/js.js | 3 - lib/js/js_mapperRt.js | 54 ------------------ lib/js/runtime_deriving.js | 16 ++++++ packages/artifacts.txt | 16 +++--- 19 files changed, 104 insertions(+), 227 deletions(-) rename jscomp/others/{js_mapperRt.res => runtime_deriving.res} (65%) rename jscomp/others/{js_mapperRt.resi => runtime_deriving.resi} (88%) delete mode 100644 lib/es6/js_mapperRt.js create mode 100644 lib/es6/runtime_deriving.js delete mode 100644 lib/js/js_mapperRt.js create mode 100644 lib/js/runtime_deriving.js diff --git a/jscomp/ext/js_runtime_modules.ml b/jscomp/ext/js_runtime_modules.ml index 9c2b3b9eac..afbe242dc0 100644 --- a/jscomp/ext/js_runtime_modules.ml +++ b/jscomp/ext/js_runtime_modules.ml @@ -70,3 +70,5 @@ let external_polyfill = "Caml_external_polyfill" let caml_js_exceptions = "Caml_js_exceptions" let caml_splice_call = "Caml_splice_call" + +let deriving = "Runtime_deriving" diff --git a/jscomp/frontend/ast_derive_js_mapper.ml b/jscomp/frontend/ast_derive_js_mapper.ml index 337a7001fa..dae52806d8 100644 --- a/jscomp/frontend/ast_derive_js_mapper.ml +++ b/jscomp/frontend/ast_derive_js_mapper.ml @@ -129,13 +129,12 @@ let app2 = Ast_compatible.app2 let ( ->~ ) a b = Ast_compatible.arrow a b -let js_mapper_rt = Longident.Ldot (Lident "Js", "MapperRt") +let raise_when_not_found_ident = + Longident.Ldot (Lident Js_runtime_modules.deriving, "raiseWhenNotFound") let raise_when_not_found x = - app1 - (Exp.ident - {loc = noloc; txt = Longident.Ldot (js_mapper_rt, "raiseWhenNotFound")}) - x + app1 (Exp.ident {loc = noloc; txt = raise_when_not_found_ident}) x + let deriving_name = "jsConverter" let init () = diff --git a/jscomp/others/js.res b/jscomp/others/js.res index 0fde2dfea2..16cd6c284c 100644 --- a/jscomp/others/js.res +++ b/jscomp/others/js.res @@ -77,8 +77,6 @@ Prefer `Js.Array2` over `Js.Array`, `Js.String2` over `Js.String`, etc. The latt /** JS object type */ type t<'a> = {..} as 'a -module MapperRt = Js_mapperRt - module Internal = { external opaqueFullApply: 'a => 'a = "%uncurried_apply" diff --git a/jscomp/others/release.ninja b/jscomp/others/release.ninja index 0ddcde6e33..b6b945b6e4 100644 --- a/jscomp/others/release.ninja +++ b/jscomp/others/release.ninja @@ -37,8 +37,6 @@ o others/js_json.cmi : cc others/js_json.resi | others/belt_internals.cmi others o others/js_list.cmj : cc_cmi others/js_list.res | others/belt_internals.cmi others/js.cmi others/js_array2.cmj others/js_list.cmi others/js_vector.cmj $bsc o others/js_list.cmi : cc others/js_list.resi | others/belt_internals.cmi others/js.cmi $bsc o others/js_map.cmi others/js_map.cmj : cc others/js_map.res | others/belt_internals.cmi others/js.cmi $bsc -o others/js_mapperRt.cmj : cc_cmi others/js_mapperRt.res | others/belt_internals.cmi others/js.cmi others/js_mapperRt.cmi $bsc -o others/js_mapperRt.cmi : cc others/js_mapperRt.resi | others/belt_internals.cmi others/js.cmi $bsc o others/js_math.cmi others/js_math.cmj : cc others/js_math.res | others/belt_internals.cmi others/js.cmi others/js_int.cmj $bsc o others/js_null.cmj : cc_cmi others/js_null.res | others/belt_internals.cmi others/js.cmi others/js_exn.cmj others/js_null.cmi $bsc o others/js_null.cmi : cc others/js_null.resi | others/belt_internals.cmi others/js.cmi $bsc @@ -74,7 +72,7 @@ o others/jsxEventU.cmi others/jsxEventU.cmj : cc others/jsxEventU.res | others/b o others/jsxPPXReactSupportC.cmi others/jsxPPXReactSupportC.cmj : cc others/jsxPPXReactSupportC.res | others/belt_internals.cmi others/js.cmi others/jsxC.cmj $bsc o others/jsxPPXReactSupportU.cmi others/jsxPPXReactSupportU.cmj : cc others/jsxPPXReactSupportU.res | others/belt_internals.cmi others/js.cmi others/jsxU.cmj $bsc o others/jsxU.cmi others/jsxU.cmj : cc others/jsxU.res | others/belt_internals.cmi others/js.cmi $bsc -o js_pkg : phony others/js_OO.cmi others/js_OO.cmj others/js_array.cmi others/js_array.cmj others/js_array2.cmi others/js_array2.cmj others/js_bigint.cmi others/js_bigint.cmj others/js_blob.cmi others/js_blob.cmj others/js_cast.cmi others/js_cast.cmj others/js_console.cmi others/js_console.cmj others/js_date.cmi others/js_date.cmj others/js_dict.cmi others/js_dict.cmj others/js_exn.cmi others/js_exn.cmj others/js_file.cmi others/js_file.cmj others/js_float.cmi others/js_float.cmj others/js_global.cmi others/js_global.cmj others/js_int.cmi others/js_int.cmj others/js_json.cmi others/js_json.cmj others/js_list.cmi others/js_list.cmj others/js_map.cmi others/js_map.cmj others/js_mapperRt.cmi others/js_mapperRt.cmj others/js_math.cmi others/js_math.cmj others/js_null.cmi others/js_null.cmj others/js_null_undefined.cmi others/js_null_undefined.cmj others/js_obj.cmi others/js_obj.cmj others/js_option.cmi others/js_option.cmj others/js_promise.cmi others/js_promise.cmj others/js_promise2.cmi others/js_promise2.cmj others/js_re.cmi others/js_re.cmj others/js_result.cmi others/js_result.cmj others/js_set.cmi others/js_set.cmj others/js_string.cmi others/js_string.cmj others/js_string2.cmi others/js_string2.cmj others/js_typed_array.cmi others/js_typed_array.cmj others/js_typed_array2.cmi others/js_typed_array2.cmj others/js_types.cmi others/js_types.cmj others/js_undefined.cmi others/js_undefined.cmj others/js_vector.cmi others/js_vector.cmj others/js_weakmap.cmi others/js_weakmap.cmj others/js_weakset.cmi others/js_weakset.cmj others/jsxC.cmi others/jsxC.cmj others/jsxDOMC.cmi others/jsxDOMC.cmj others/jsxDOMStyle.cmi others/jsxDOMStyle.cmj others/jsxDOMU.cmi others/jsxDOMU.cmj others/jsxEventC.cmi others/jsxEventC.cmj others/jsxEventU.cmi others/jsxEventU.cmj others/jsxPPXReactSupportC.cmi others/jsxPPXReactSupportC.cmj others/jsxPPXReactSupportU.cmi others/jsxPPXReactSupportU.cmj others/jsxU.cmi others/jsxU.cmj +o js_pkg : phony others/js_OO.cmi others/js_OO.cmj others/js_array.cmi others/js_array.cmj others/js_array2.cmi others/js_array2.cmj others/js_bigint.cmi others/js_bigint.cmj others/js_blob.cmi others/js_blob.cmj others/js_cast.cmi others/js_cast.cmj others/js_console.cmi others/js_console.cmj others/js_date.cmi others/js_date.cmj others/js_dict.cmi others/js_dict.cmj others/js_exn.cmi others/js_exn.cmj others/js_file.cmi others/js_file.cmj others/js_float.cmi others/js_float.cmj others/js_global.cmi others/js_global.cmj others/js_int.cmi others/js_int.cmj others/js_json.cmi others/js_json.cmj others/js_list.cmi others/js_list.cmj others/js_map.cmi others/js_map.cmj others/js_math.cmi others/js_math.cmj others/js_null.cmi others/js_null.cmj others/js_null_undefined.cmi others/js_null_undefined.cmj others/js_obj.cmi others/js_obj.cmj others/js_option.cmi others/js_option.cmj others/js_promise.cmi others/js_promise.cmj others/js_promise2.cmi others/js_promise2.cmj others/js_re.cmi others/js_re.cmj others/js_result.cmi others/js_result.cmj others/js_set.cmi others/js_set.cmj others/js_string.cmi others/js_string.cmj others/js_string2.cmi others/js_string2.cmj others/js_typed_array.cmi others/js_typed_array.cmj others/js_typed_array2.cmi others/js_typed_array2.cmj others/js_types.cmi others/js_types.cmj others/js_undefined.cmi others/js_undefined.cmj others/js_vector.cmi others/js_vector.cmj others/js_weakmap.cmi others/js_weakmap.cmj others/js_weakset.cmi others/js_weakset.cmj others/jsxC.cmi others/jsxC.cmj others/jsxDOMC.cmi others/jsxDOMC.cmj others/jsxDOMStyle.cmi others/jsxDOMStyle.cmj others/jsxDOMU.cmi others/jsxDOMU.cmj others/jsxEventC.cmi others/jsxEventC.cmj others/jsxEventU.cmi others/jsxEventU.cmj others/jsxPPXReactSupportC.cmi others/jsxPPXReactSupportC.cmj others/jsxPPXReactSupportU.cmi others/jsxPPXReactSupportU.cmj others/jsxU.cmi others/jsxU.cmj o others/belt_Array.cmj : cc_cmi others/belt_Array.res | others/belt.cmi others/belt_Array.cmi others/belt_internals.cmi others/js.cmi $bsc js_pkg o others/belt_Array.cmi : cc others/belt_Array.resi | others/belt_internals.cmi others/js.cmi $bsc o others/belt_Float.cmj : cc_cmi others/belt_Float.res | others/belt.cmi others/belt_Float.cmi others/belt_internals.cmi others/js.cmi $bsc js_pkg @@ -158,4 +156,6 @@ o others/belt_internalSetString.cmi others/belt_internalSetString.cmj : cc other o others/dom.cmi others/dom.cmj : cc others/dom.res | others/belt_internals.cmi others/dom_storage.cmj others/dom_storage2.cmj others/js.cmi $bsc js_pkg o others/dom_storage.cmi others/dom_storage.cmj : cc others/dom_storage.res | others/belt_internals.cmi others/dom_storage2.cmj others/js.cmi $bsc js_pkg o others/dom_storage2.cmi others/dom_storage2.cmj : cc others/dom_storage2.res | others/belt_internals.cmi others/js.cmi $bsc -o others : phony others/belt_Array.cmi others/belt_Array.cmj others/belt_Float.cmi others/belt_Float.cmj others/belt_HashMap.cmi others/belt_HashMap.cmj others/belt_HashMapInt.cmi others/belt_HashMapInt.cmj others/belt_HashMapString.cmi others/belt_HashMapString.cmj others/belt_HashSet.cmi others/belt_HashSet.cmj others/belt_HashSetInt.cmi others/belt_HashSetInt.cmj others/belt_HashSetString.cmi others/belt_HashSetString.cmj others/belt_Id.cmi others/belt_Id.cmj others/belt_Int.cmi others/belt_Int.cmj others/belt_List.cmi others/belt_List.cmj others/belt_Map.cmi others/belt_Map.cmj others/belt_MapDict.cmi others/belt_MapDict.cmj others/belt_MapInt.cmi others/belt_MapInt.cmj others/belt_MapString.cmi others/belt_MapString.cmj others/belt_MutableMap.cmi others/belt_MutableMap.cmj others/belt_MutableMapInt.cmi others/belt_MutableMapInt.cmj others/belt_MutableMapString.cmi others/belt_MutableMapString.cmj others/belt_MutableQueue.cmi others/belt_MutableQueue.cmj others/belt_MutableSet.cmi others/belt_MutableSet.cmj others/belt_MutableSetInt.cmi others/belt_MutableSetInt.cmj others/belt_MutableSetString.cmi others/belt_MutableSetString.cmj others/belt_MutableStack.cmi others/belt_MutableStack.cmj others/belt_Option.cmi others/belt_Option.cmj others/belt_Range.cmi others/belt_Range.cmj others/belt_Result.cmi others/belt_Result.cmj others/belt_Set.cmi others/belt_Set.cmj others/belt_SetDict.cmi others/belt_SetDict.cmj others/belt_SetInt.cmi others/belt_SetInt.cmj others/belt_SetString.cmi others/belt_SetString.cmj others/belt_SortArray.cmi others/belt_SortArray.cmj others/belt_SortArrayInt.cmi others/belt_SortArrayInt.cmj others/belt_SortArrayString.cmi others/belt_SortArrayString.cmj others/belt_internalAVLset.cmi others/belt_internalAVLset.cmj others/belt_internalAVLtree.cmi others/belt_internalAVLtree.cmj others/belt_internalBuckets.cmi others/belt_internalBuckets.cmj others/belt_internalBucketsType.cmi others/belt_internalBucketsType.cmj others/belt_internalMapInt.cmi others/belt_internalMapInt.cmj others/belt_internalMapString.cmi others/belt_internalMapString.cmj others/belt_internalSetBuckets.cmi others/belt_internalSetBuckets.cmj others/belt_internalSetInt.cmi others/belt_internalSetInt.cmj others/belt_internalSetString.cmi others/belt_internalSetString.cmj others/dom.cmi others/dom.cmj others/dom_storage.cmi others/dom_storage.cmj others/dom_storage2.cmi others/dom_storage2.cmj +o others/runtime_deriving.cmj : cc_cmi others/runtime_deriving.res | others/belt_internals.cmi others/js.cmi others/runtime_deriving.cmi $bsc js_pkg +o others/runtime_deriving.cmi : cc others/runtime_deriving.resi | others/belt_internals.cmi others/js.cmi $bsc +o others : phony others/belt_Array.cmi others/belt_Array.cmj others/belt_Float.cmi others/belt_Float.cmj others/belt_HashMap.cmi others/belt_HashMap.cmj others/belt_HashMapInt.cmi others/belt_HashMapInt.cmj others/belt_HashMapString.cmi others/belt_HashMapString.cmj others/belt_HashSet.cmi others/belt_HashSet.cmj others/belt_HashSetInt.cmi others/belt_HashSetInt.cmj others/belt_HashSetString.cmi others/belt_HashSetString.cmj others/belt_Id.cmi others/belt_Id.cmj others/belt_Int.cmi others/belt_Int.cmj others/belt_List.cmi others/belt_List.cmj others/belt_Map.cmi others/belt_Map.cmj others/belt_MapDict.cmi others/belt_MapDict.cmj others/belt_MapInt.cmi others/belt_MapInt.cmj others/belt_MapString.cmi others/belt_MapString.cmj others/belt_MutableMap.cmi others/belt_MutableMap.cmj others/belt_MutableMapInt.cmi others/belt_MutableMapInt.cmj others/belt_MutableMapString.cmi others/belt_MutableMapString.cmj others/belt_MutableQueue.cmi others/belt_MutableQueue.cmj others/belt_MutableSet.cmi others/belt_MutableSet.cmj others/belt_MutableSetInt.cmi others/belt_MutableSetInt.cmj others/belt_MutableSetString.cmi others/belt_MutableSetString.cmj others/belt_MutableStack.cmi others/belt_MutableStack.cmj others/belt_Option.cmi others/belt_Option.cmj others/belt_Range.cmi others/belt_Range.cmj others/belt_Result.cmi others/belt_Result.cmj others/belt_Set.cmi others/belt_Set.cmj others/belt_SetDict.cmi others/belt_SetDict.cmj others/belt_SetInt.cmi others/belt_SetInt.cmj others/belt_SetString.cmi others/belt_SetString.cmj others/belt_SortArray.cmi others/belt_SortArray.cmj others/belt_SortArrayInt.cmi others/belt_SortArrayInt.cmj others/belt_SortArrayString.cmi others/belt_SortArrayString.cmj others/belt_internalAVLset.cmi others/belt_internalAVLset.cmj others/belt_internalAVLtree.cmi others/belt_internalAVLtree.cmj others/belt_internalBuckets.cmi others/belt_internalBuckets.cmj others/belt_internalBucketsType.cmi others/belt_internalBucketsType.cmj others/belt_internalMapInt.cmi others/belt_internalMapInt.cmj others/belt_internalMapString.cmi others/belt_internalMapString.cmj others/belt_internalSetBuckets.cmi others/belt_internalSetBuckets.cmj others/belt_internalSetInt.cmi others/belt_internalSetInt.cmj others/belt_internalSetString.cmi others/belt_internalSetString.cmj others/dom.cmi others/dom.cmj others/dom_storage.cmi others/dom_storage.cmj others/dom_storage2.cmi others/dom_storage2.cmj others/runtime_deriving.cmi others/runtime_deriving.cmj diff --git a/jscomp/others/js_mapperRt.res b/jscomp/others/runtime_deriving.res similarity index 65% rename from jscomp/others/js_mapperRt.res rename to jscomp/others/runtime_deriving.res index 4c68f13764..7aa535e41b 100644 --- a/jscomp/others/js_mapperRt.res +++ b/jscomp/others/runtime_deriving.res @@ -22,40 +22,9 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -@get_index external unsafeGet: (array, int) => int = "" - let raiseWhenNotFound = x => if Js.testAny(x) { raise(Not_found) } else { x } - -let rec fromIntAux = (enum: int, i, len, xs) => - if i == len { - None - } else { - let k = unsafeGet(xs, i) - if k == enum { - Some(i) - } else { - fromIntAux(enum, i + 1, len, xs) - } - } - -let fromInt = (len, xs: array, enum: int): option<'variant> => fromIntAux(enum, 0, len, xs) - -let rec fromIntAssertAux = (len, enum: int, i, xs) => - if i == len { - raise(Not_found) - } else { - let k = unsafeGet(xs, i) - if k == enum { - i - } else { - fromIntAssertAux(len, enum, i + 1, xs) - } - } - -/** `length` is not relevant any more */ -let fromIntAssert = (len, xs: array, enum: int) => fromIntAssertAux(len, enum, 0, xs) diff --git a/jscomp/others/js_mapperRt.resi b/jscomp/others/runtime_deriving.resi similarity index 88% rename from jscomp/others/js_mapperRt.resi rename to jscomp/others/runtime_deriving.resi index 6b9dbddfde..fa5cdeb74d 100644 --- a/jscomp/others/js_mapperRt.resi +++ b/jscomp/others/runtime_deriving.resi @@ -23,10 +23,3 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ let raiseWhenNotFound: 'a => 'a - -/** -`fromInt(len, array, int)` return the mapped `enum` -*/ -let fromInt: (int, array, int) => option - -let fromIntAssert: (int /* len */, array, int) => int diff --git a/jscomp/runtime/js.res b/jscomp/runtime/js.res index 9be46892af..9b8f7218f2 100644 --- a/jscomp/runtime/js.res +++ b/jscomp/runtime/js.res @@ -77,8 +77,6 @@ Prefer `Js.Array2` over `Js.Array`, `Js.String2` over `Js.String`, etc. The latt /** JS object type */ type t<'a> = {..} as 'a -module MapperRt = Js_mapperRt - module Internal = { external opaqueFullApply: 'a => 'a = "%uncurried_apply" diff --git a/jscomp/test/ast_abstract_test.js b/jscomp/test/ast_abstract_test.js index 0e581029a3..04b70d13ee 100644 --- a/jscomp/test/ast_abstract_test.js +++ b/jscomp/test/ast_abstract_test.js @@ -2,7 +2,7 @@ 'use strict'; let Mt = require("./mt.js"); -let Js_mapperRt = require("../../lib/js/js_mapperRt.js"); +let Runtime_deriving = require("../../lib/js/runtime_deriving.js"); let suites = { contents: /* [] */0 @@ -64,7 +64,7 @@ function xToJs(param) { } function xFromJs(param) { - return Js_mapperRt.raiseWhenNotFound(_map[param]); + return Runtime_deriving.raiseWhenNotFound(_map[param]); } function idx(v) { diff --git a/lib/es6/belt_internalBuckets.js b/lib/es6/belt_internalBuckets.js index b53115008c..c78b17f237 100644 --- a/lib/es6/belt_internalBuckets.js +++ b/lib/es6/belt_internalBuckets.js @@ -4,6 +4,19 @@ import * as Curry from "./curry.js"; import * as Belt_Array from "./belt_Array.js"; import * as Caml_option from "./caml_option.js"; +function copyBucket(c) { + if (c === undefined) { + return c; + } + let head = { + key: c.key, + value: c.value, + next: undefined + }; + copyAuxCont(c.next, head); + return head; +} + function copyAuxCont(_c, _prec) { while(true) { let prec = _prec; @@ -23,19 +36,6 @@ function copyAuxCont(_c, _prec) { }; } -function copyBucket(c) { - if (c === undefined) { - return c; - } - let head = { - key: c.key, - value: c.value, - next: undefined - }; - copyAuxCont(c.next, head); - return head; -} - function copyBuckets(buckets) { let len = buckets.length; let newBuckets = new Array(len); diff --git a/lib/es6/belt_internalSetBuckets.js b/lib/es6/belt_internalSetBuckets.js index 8361cd1676..191dcb2d82 100644 --- a/lib/es6/belt_internalSetBuckets.js +++ b/lib/es6/belt_internalSetBuckets.js @@ -3,18 +3,6 @@ import * as Curry from "./curry.js"; import * as Belt_Array from "./belt_Array.js"; -function copyBucket(c) { - if (c === undefined) { - return c; - } - let head = { - key: c.key, - next: undefined - }; - copyAuxCont(c.next, head); - return head; -} - function copyAuxCont(_c, _prec) { while(true) { let prec = _prec; @@ -33,6 +21,18 @@ function copyAuxCont(_c, _prec) { }; } +function copyBucket(c) { + if (c === undefined) { + return c; + } + let head = { + key: c.key, + next: undefined + }; + copyAuxCont(c.next, head); + return head; +} + function copyBuckets(buckets) { let len = buckets.length; let newBuckets = new Array(len); diff --git a/lib/es6/js.js b/lib/es6/js.js index 41b136afd0..f973eb67db 100644 --- a/lib/es6/js.js +++ b/lib/es6/js.js @@ -3,8 +3,6 @@ let Internal = {}; -let MapperRt; - let Null; let Undefined; @@ -76,7 +74,6 @@ let $$Map; let $$WeakMap; export { - MapperRt, Internal, Null, Undefined, diff --git a/lib/es6/js_mapperRt.js b/lib/es6/js_mapperRt.js deleted file mode 100644 index 2b0cace99c..0000000000 --- a/lib/es6/js_mapperRt.js +++ /dev/null @@ -1,56 +0,0 @@ - - - -function raiseWhenNotFound(x) { - if (x == null) { - throw new Error("Not_found", { - cause: { - RE_EXN_ID: "Not_found" - } - }); - } - return x; -} - -function fromInt(len, xs, $$enum) { - let _i = 0; - while(true) { - let i = _i; - if (i === len) { - return; - } - let k = xs[i]; - if (k === $$enum) { - return i; - } - _i = i + 1 | 0; - continue; - }; -} - -function fromIntAssert(len, xs, $$enum) { - let _i = 0; - while(true) { - let i = _i; - if (i === len) { - throw new Error("Not_found", { - cause: { - RE_EXN_ID: "Not_found" - } - }); - } - let k = xs[i]; - if (k === $$enum) { - return i; - } - _i = i + 1 | 0; - continue; - }; -} - -export { - raiseWhenNotFound, - fromInt, - fromIntAssert, -} -/* No side effect */ diff --git a/lib/es6/runtime_deriving.js b/lib/es6/runtime_deriving.js new file mode 100644 index 0000000000..e2b665fdb9 --- /dev/null +++ b/lib/es6/runtime_deriving.js @@ -0,0 +1,18 @@ + + + +function raiseWhenNotFound(x) { + if (x == null) { + throw new Error("Not_found", { + cause: { + RE_EXN_ID: "Not_found" + } + }); + } + return x; +} + +export { + raiseWhenNotFound, +} +/* No side effect */ diff --git a/lib/js/belt_internalBuckets.js b/lib/js/belt_internalBuckets.js index 919160b77f..eb5269f858 100644 --- a/lib/js/belt_internalBuckets.js +++ b/lib/js/belt_internalBuckets.js @@ -4,6 +4,19 @@ let Curry = require("./curry.js"); let Belt_Array = require("./belt_Array.js"); let Caml_option = require("./caml_option.js"); +function copyBucket(c) { + if (c === undefined) { + return c; + } + let head = { + key: c.key, + value: c.value, + next: undefined + }; + copyAuxCont(c.next, head); + return head; +} + function copyAuxCont(_c, _prec) { while(true) { let prec = _prec; @@ -23,19 +36,6 @@ function copyAuxCont(_c, _prec) { }; } -function copyBucket(c) { - if (c === undefined) { - return c; - } - let head = { - key: c.key, - value: c.value, - next: undefined - }; - copyAuxCont(c.next, head); - return head; -} - function copyBuckets(buckets) { let len = buckets.length; let newBuckets = new Array(len); diff --git a/lib/js/belt_internalSetBuckets.js b/lib/js/belt_internalSetBuckets.js index 400900178c..8e2bf8ff4f 100644 --- a/lib/js/belt_internalSetBuckets.js +++ b/lib/js/belt_internalSetBuckets.js @@ -3,18 +3,6 @@ let Curry = require("./curry.js"); let Belt_Array = require("./belt_Array.js"); -function copyBucket(c) { - if (c === undefined) { - return c; - } - let head = { - key: c.key, - next: undefined - }; - copyAuxCont(c.next, head); - return head; -} - function copyAuxCont(_c, _prec) { while(true) { let prec = _prec; @@ -33,6 +21,18 @@ function copyAuxCont(_c, _prec) { }; } +function copyBucket(c) { + if (c === undefined) { + return c; + } + let head = { + key: c.key, + next: undefined + }; + copyAuxCont(c.next, head); + return head; +} + function copyBuckets(buckets) { let len = buckets.length; let newBuckets = new Array(len); diff --git a/lib/js/js.js b/lib/js/js.js index 70f2b12f29..b82645f58d 100644 --- a/lib/js/js.js +++ b/lib/js/js.js @@ -3,8 +3,6 @@ let Internal = {}; -let MapperRt; - let Null; let Undefined; @@ -75,7 +73,6 @@ let $$Map; let $$WeakMap; -exports.MapperRt = MapperRt; exports.Internal = Internal; exports.Null = Null; exports.Undefined = Undefined; diff --git a/lib/js/js_mapperRt.js b/lib/js/js_mapperRt.js deleted file mode 100644 index 5fce534d03..0000000000 --- a/lib/js/js_mapperRt.js +++ /dev/null @@ -1,54 +0,0 @@ -'use strict'; - - -function raiseWhenNotFound(x) { - if (x == null) { - throw new Error("Not_found", { - cause: { - RE_EXN_ID: "Not_found" - } - }); - } - return x; -} - -function fromInt(len, xs, $$enum) { - let _i = 0; - while(true) { - let i = _i; - if (i === len) { - return; - } - let k = xs[i]; - if (k === $$enum) { - return i; - } - _i = i + 1 | 0; - continue; - }; -} - -function fromIntAssert(len, xs, $$enum) { - let _i = 0; - while(true) { - let i = _i; - if (i === len) { - throw new Error("Not_found", { - cause: { - RE_EXN_ID: "Not_found" - } - }); - } - let k = xs[i]; - if (k === $$enum) { - return i; - } - _i = i + 1 | 0; - continue; - }; -} - -exports.raiseWhenNotFound = raiseWhenNotFound; -exports.fromInt = fromInt; -exports.fromIntAssert = fromIntAssert; -/* No side effect */ diff --git a/lib/js/runtime_deriving.js b/lib/js/runtime_deriving.js new file mode 100644 index 0000000000..db45cb7a89 --- /dev/null +++ b/lib/js/runtime_deriving.js @@ -0,0 +1,16 @@ +'use strict'; + + +function raiseWhenNotFound(x) { + if (x == null) { + throw new Error("Not_found", { + cause: { + RE_EXN_ID: "Not_found" + } + }); + } + return x; +} + +exports.raiseWhenNotFound = raiseWhenNotFound; +/* No side effect */ diff --git a/packages/artifacts.txt b/packages/artifacts.txt index 61c994010b..35111f0460 100644 --- a/packages/artifacts.txt +++ b/packages/artifacts.txt @@ -136,7 +136,6 @@ lib/es6/js_int.js lib/es6/js_json.js lib/es6/js_list.js lib/es6/js_map.js -lib/es6/js_mapperRt.js lib/es6/js_math.js lib/es6/js_null.js lib/es6/js_null_undefined.js @@ -179,6 +178,7 @@ lib/es6/pervasives.js lib/es6/pervasivesU.js lib/es6/queue.js lib/es6/random.js +lib/es6/runtime_deriving.js lib/es6/set.js lib/es6/setLabels.js lib/es6/sort.js @@ -301,7 +301,6 @@ lib/js/js_int.js lib/js/js_json.js lib/js/js_list.js lib/js/js_map.js -lib/js/js_mapperRt.js lib/js/js_math.js lib/js/js_null.js lib/js/js_null_undefined.js @@ -343,6 +342,7 @@ lib/js/pervasives.js lib/js/pervasivesU.js lib/js/queue.js lib/js/random.js +lib/js/runtime_deriving.js lib/js/set.js lib/js/setLabels.js lib/js/sort.js @@ -795,12 +795,6 @@ lib/ocaml/js_map.cmi lib/ocaml/js_map.cmj lib/ocaml/js_map.cmt lib/ocaml/js_map.res -lib/ocaml/js_mapperRt.cmi -lib/ocaml/js_mapperRt.cmj -lib/ocaml/js_mapperRt.cmt -lib/ocaml/js_mapperRt.cmti -lib/ocaml/js_mapperRt.res -lib/ocaml/js_mapperRt.resi lib/ocaml/js_math.cmi lib/ocaml/js_math.cmj lib/ocaml/js_math.cmt @@ -1003,6 +997,12 @@ lib/ocaml/random.cmt lib/ocaml/random.cmti lib/ocaml/random.res lib/ocaml/random.resi +lib/ocaml/runtime_deriving.cmi +lib/ocaml/runtime_deriving.cmj +lib/ocaml/runtime_deriving.cmt +lib/ocaml/runtime_deriving.cmti +lib/ocaml/runtime_deriving.res +lib/ocaml/runtime_deriving.resi lib/ocaml/set.cmi lib/ocaml/set.cmj lib/ocaml/set.cmt From aa7d18c27cdc9457931f4ce6b75c1a8ba834a090 Mon Sep 17 00:00:00 2001 From: Christoph Knittel Date: Sat, 29 Jun 2024 17:05:00 +0200 Subject: [PATCH 4/6] Js.Promise -> Runtime_promise --- jscomp/ext/js_runtime_modules.ml | 2 ++ jscomp/ml/ast_async.ml | 2 +- jscomp/ml/ast_await.ml | 2 +- jscomp/others/js_promise.res | 3 --- jscomp/others/release.ninja | 3 ++- jscomp/others/runtime_promise.res | 26 ++++++++++++++++++++++++++ lib/es6/runtime_promise.js | 1 + lib/js/runtime_promise.js | 1 + packages/artifacts.txt | 6 ++++++ 9 files changed, 40 insertions(+), 6 deletions(-) create mode 100644 jscomp/others/runtime_promise.res create mode 100644 lib/es6/runtime_promise.js create mode 100644 lib/js/runtime_promise.js diff --git a/jscomp/ext/js_runtime_modules.ml b/jscomp/ext/js_runtime_modules.ml index afbe242dc0..20c0db01fe 100644 --- a/jscomp/ext/js_runtime_modules.ml +++ b/jscomp/ext/js_runtime_modules.ml @@ -72,3 +72,5 @@ let caml_js_exceptions = "Caml_js_exceptions" let caml_splice_call = "Caml_splice_call" let deriving = "Runtime_deriving" + +let promise = "Runtime_promise" diff --git a/jscomp/ml/ast_async.ml b/jscomp/ml/ast_async.ml index 51dff6e4dc..ad538c9270 100644 --- a/jscomp/ml/ast_async.ml +++ b/jscomp/ml/ast_async.ml @@ -6,7 +6,7 @@ let add_promise_type ?(loc = Location.none) ~async if async then let unsafe_async = Ast_helper.Exp.ident ~loc - {txt = Ldot (Ldot (Lident "Js", "Promise"), "unsafe_async"); loc} + {txt = Ldot (Lident Js_runtime_modules.promise, "unsafe_async"); loc} in Ast_helper.Exp.apply ~loc unsafe_async [(Nolabel, result)] else result diff --git a/jscomp/ml/ast_await.ml b/jscomp/ml/ast_await.ml index 1393f04de6..5ea00d4646 100644 --- a/jscomp/ml/ast_await.ml +++ b/jscomp/ml/ast_await.ml @@ -5,7 +5,7 @@ let create_await_expression (e : Parsetree.expression) = let loc = {e.pexp_loc with loc_ghost = true} in let unsafe_await = Ast_helper.Exp.ident ~loc - {txt = Ldot (Ldot (Lident "Js", "Promise"), "unsafe_await"); loc} + {txt = Ldot (Lident Js_runtime_modules.promise, "unsafe_await"); loc} in Ast_helper.Exp.apply ~loc unsafe_await [(Nolabel, e)] diff --git a/jscomp/others/js_promise.res b/jscomp/others/js_promise.res index 7268e1e37b..fa37dbe496 100644 --- a/jscomp/others/js_promise.res +++ b/jscomp/others/js_promise.res @@ -94,9 +94,6 @@ external catch: (@uncurry (error => promise<'a>)) => promise<'a> = "catch" https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/catch */ -external unsafe_async: 'a => promise<'a> = "%identity" -external unsafe_await: promise<'a> => 'a = "?await" - /* let errorAsExn (x : error) (e : (exn ->'a option))= if Caml_exceptions.isCamlExceptionOrOpenVariant (Obj.magic x ) then diff --git a/jscomp/others/release.ninja b/jscomp/others/release.ninja index b6b945b6e4..1b177ac4ed 100644 --- a/jscomp/others/release.ninja +++ b/jscomp/others/release.ninja @@ -158,4 +158,5 @@ o others/dom_storage.cmi others/dom_storage.cmj : cc others/dom_storage.res | ot o others/dom_storage2.cmi others/dom_storage2.cmj : cc others/dom_storage2.res | others/belt_internals.cmi others/js.cmi $bsc o others/runtime_deriving.cmj : cc_cmi others/runtime_deriving.res | others/belt_internals.cmi others/js.cmi others/runtime_deriving.cmi $bsc js_pkg o others/runtime_deriving.cmi : cc others/runtime_deriving.resi | others/belt_internals.cmi others/js.cmi $bsc -o others : phony others/belt_Array.cmi others/belt_Array.cmj others/belt_Float.cmi others/belt_Float.cmj others/belt_HashMap.cmi others/belt_HashMap.cmj others/belt_HashMapInt.cmi others/belt_HashMapInt.cmj others/belt_HashMapString.cmi others/belt_HashMapString.cmj others/belt_HashSet.cmi others/belt_HashSet.cmj others/belt_HashSetInt.cmi others/belt_HashSetInt.cmj others/belt_HashSetString.cmi others/belt_HashSetString.cmj others/belt_Id.cmi others/belt_Id.cmj others/belt_Int.cmi others/belt_Int.cmj others/belt_List.cmi others/belt_List.cmj others/belt_Map.cmi others/belt_Map.cmj others/belt_MapDict.cmi others/belt_MapDict.cmj others/belt_MapInt.cmi others/belt_MapInt.cmj others/belt_MapString.cmi others/belt_MapString.cmj others/belt_MutableMap.cmi others/belt_MutableMap.cmj others/belt_MutableMapInt.cmi others/belt_MutableMapInt.cmj others/belt_MutableMapString.cmi others/belt_MutableMapString.cmj others/belt_MutableQueue.cmi others/belt_MutableQueue.cmj others/belt_MutableSet.cmi others/belt_MutableSet.cmj others/belt_MutableSetInt.cmi others/belt_MutableSetInt.cmj others/belt_MutableSetString.cmi others/belt_MutableSetString.cmj others/belt_MutableStack.cmi others/belt_MutableStack.cmj others/belt_Option.cmi others/belt_Option.cmj others/belt_Range.cmi others/belt_Range.cmj others/belt_Result.cmi others/belt_Result.cmj others/belt_Set.cmi others/belt_Set.cmj others/belt_SetDict.cmi others/belt_SetDict.cmj others/belt_SetInt.cmi others/belt_SetInt.cmj others/belt_SetString.cmi others/belt_SetString.cmj others/belt_SortArray.cmi others/belt_SortArray.cmj others/belt_SortArrayInt.cmi others/belt_SortArrayInt.cmj others/belt_SortArrayString.cmi others/belt_SortArrayString.cmj others/belt_internalAVLset.cmi others/belt_internalAVLset.cmj others/belt_internalAVLtree.cmi others/belt_internalAVLtree.cmj others/belt_internalBuckets.cmi others/belt_internalBuckets.cmj others/belt_internalBucketsType.cmi others/belt_internalBucketsType.cmj others/belt_internalMapInt.cmi others/belt_internalMapInt.cmj others/belt_internalMapString.cmi others/belt_internalMapString.cmj others/belt_internalSetBuckets.cmi others/belt_internalSetBuckets.cmj others/belt_internalSetInt.cmi others/belt_internalSetInt.cmj others/belt_internalSetString.cmi others/belt_internalSetString.cmj others/dom.cmi others/dom.cmj others/dom_storage.cmi others/dom_storage.cmj others/dom_storage2.cmi others/dom_storage2.cmj others/runtime_deriving.cmi others/runtime_deriving.cmj +o others/runtime_promise.cmi others/runtime_promise.cmj : cc others/runtime_promise.res | others/belt_internals.cmi others/js.cmi $bsc +o others : phony others/belt_Array.cmi others/belt_Array.cmj others/belt_Float.cmi others/belt_Float.cmj others/belt_HashMap.cmi others/belt_HashMap.cmj others/belt_HashMapInt.cmi others/belt_HashMapInt.cmj others/belt_HashMapString.cmi others/belt_HashMapString.cmj others/belt_HashSet.cmi others/belt_HashSet.cmj others/belt_HashSetInt.cmi others/belt_HashSetInt.cmj others/belt_HashSetString.cmi others/belt_HashSetString.cmj others/belt_Id.cmi others/belt_Id.cmj others/belt_Int.cmi others/belt_Int.cmj others/belt_List.cmi others/belt_List.cmj others/belt_Map.cmi others/belt_Map.cmj others/belt_MapDict.cmi others/belt_MapDict.cmj others/belt_MapInt.cmi others/belt_MapInt.cmj others/belt_MapString.cmi others/belt_MapString.cmj others/belt_MutableMap.cmi others/belt_MutableMap.cmj others/belt_MutableMapInt.cmi others/belt_MutableMapInt.cmj others/belt_MutableMapString.cmi others/belt_MutableMapString.cmj others/belt_MutableQueue.cmi others/belt_MutableQueue.cmj others/belt_MutableSet.cmi others/belt_MutableSet.cmj others/belt_MutableSetInt.cmi others/belt_MutableSetInt.cmj others/belt_MutableSetString.cmi others/belt_MutableSetString.cmj others/belt_MutableStack.cmi others/belt_MutableStack.cmj others/belt_Option.cmi others/belt_Option.cmj others/belt_Range.cmi others/belt_Range.cmj others/belt_Result.cmi others/belt_Result.cmj others/belt_Set.cmi others/belt_Set.cmj others/belt_SetDict.cmi others/belt_SetDict.cmj others/belt_SetInt.cmi others/belt_SetInt.cmj others/belt_SetString.cmi others/belt_SetString.cmj others/belt_SortArray.cmi others/belt_SortArray.cmj others/belt_SortArrayInt.cmi others/belt_SortArrayInt.cmj others/belt_SortArrayString.cmi others/belt_SortArrayString.cmj others/belt_internalAVLset.cmi others/belt_internalAVLset.cmj others/belt_internalAVLtree.cmi others/belt_internalAVLtree.cmj others/belt_internalBuckets.cmi others/belt_internalBuckets.cmj others/belt_internalBucketsType.cmi others/belt_internalBucketsType.cmj others/belt_internalMapInt.cmi others/belt_internalMapInt.cmj others/belt_internalMapString.cmi others/belt_internalMapString.cmj others/belt_internalSetBuckets.cmi others/belt_internalSetBuckets.cmj others/belt_internalSetInt.cmi others/belt_internalSetInt.cmj others/belt_internalSetString.cmi others/belt_internalSetString.cmj others/dom.cmi others/dom.cmj others/dom_storage.cmi others/dom_storage.cmj others/dom_storage2.cmi others/dom_storage2.cmj others/runtime_deriving.cmi others/runtime_deriving.cmj others/runtime_promise.cmi others/runtime_promise.cmj diff --git a/jscomp/others/runtime_promise.res b/jscomp/others/runtime_promise.res new file mode 100644 index 0000000000..6b2a9524b2 --- /dev/null +++ b/jscomp/others/runtime_promise.res @@ -0,0 +1,26 @@ +/* Copyright (C) 2017 Hongbo Zhang, Authors of ReScript + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * In addition to the permissions granted to you by the LGPL, you may combine + * or link a "work that uses the Library" with a publicly distributed version + * of this file to produce a combined library or application, then distribute + * that combined work under the terms of your choosing, with no requirement + * to comply with the obligations normally placed on you by section 4 of the + * LGPL version 3 (or the corresponding section of a later version of the LGPL + * should you choose to use a later version). + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + +external unsafe_async: 'a => promise<'a> = "%identity" +external unsafe_await: promise<'a> => 'a = "?await" diff --git a/lib/es6/runtime_promise.js b/lib/es6/runtime_promise.js new file mode 100644 index 0000000000..ae1b9f17e6 --- /dev/null +++ b/lib/es6/runtime_promise.js @@ -0,0 +1 @@ +/* This output is empty. Its source's type definitions, externals and/or unused code got optimized away. */ diff --git a/lib/js/runtime_promise.js b/lib/js/runtime_promise.js new file mode 100644 index 0000000000..ae1b9f17e6 --- /dev/null +++ b/lib/js/runtime_promise.js @@ -0,0 +1 @@ +/* This output is empty. Its source's type definitions, externals and/or unused code got optimized away. */ diff --git a/packages/artifacts.txt b/packages/artifacts.txt index 35111f0460..228e58601c 100644 --- a/packages/artifacts.txt +++ b/packages/artifacts.txt @@ -179,6 +179,7 @@ lib/es6/pervasivesU.js lib/es6/queue.js lib/es6/random.js lib/es6/runtime_deriving.js +lib/es6/runtime_promise.js lib/es6/set.js lib/es6/setLabels.js lib/es6/sort.js @@ -343,6 +344,7 @@ lib/js/pervasivesU.js lib/js/queue.js lib/js/random.js lib/js/runtime_deriving.js +lib/js/runtime_promise.js lib/js/set.js lib/js/setLabels.js lib/js/sort.js @@ -1003,6 +1005,10 @@ lib/ocaml/runtime_deriving.cmt lib/ocaml/runtime_deriving.cmti lib/ocaml/runtime_deriving.res lib/ocaml/runtime_deriving.resi +lib/ocaml/runtime_promise.cmi +lib/ocaml/runtime_promise.cmj +lib/ocaml/runtime_promise.cmt +lib/ocaml/runtime_promise.res lib/ocaml/set.cmi lib/ocaml/set.cmj lib/ocaml/set.cmt From 2f2230a72c9306da4f9ed9df8edb269cb051ae93 Mon Sep 17 00:00:00 2001 From: Christoph Knittel Date: Sat, 29 Jun 2024 17:10:02 +0200 Subject: [PATCH 5/6] Js.import -> Runtime_promise.import --- jscomp/ml/ast_await.ml | 2 +- jscomp/others/runtime_promise.res | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/jscomp/ml/ast_await.ml b/jscomp/ml/ast_await.ml index 5ea00d4646..c5fc0c52ae 100644 --- a/jscomp/ml/ast_await.ml +++ b/jscomp/ml/ast_await.ml @@ -24,7 +24,7 @@ let create_await_module_expression ~module_type_lid (e : Parsetree.module_expr) (Exp.apply ~loc:e.pmod_loc (Exp.ident ~loc:e.pmod_loc { - txt = Longident.Ldot (Lident "Js", "import"); + txt = Longident.Ldot (Lident Js_runtime_modules.promise, "import"); loc = e.pmod_loc; }) [ diff --git a/jscomp/others/runtime_promise.res b/jscomp/others/runtime_promise.res index 6b2a9524b2..e674a1c1cd 100644 --- a/jscomp/others/runtime_promise.res +++ b/jscomp/others/runtime_promise.res @@ -24,3 +24,5 @@ external unsafe_async: 'a => promise<'a> = "%identity" external unsafe_await: promise<'a> => 'a = "?await" + +external import: 'a => promise<'a> = "#import" From 6a4f56eee23683ae4fa3e2673bccd283ffbd30fe Mon Sep 17 00:00:00 2001 From: Christoph Knittel Date: Sat, 6 Jul 2024 17:42:18 +0200 Subject: [PATCH 6/6] Runtime_ast_extensions --- jscomp/ext/js_runtime_modules.ml | 2 ++ jscomp/frontend/ast_exp_extension.ml | 11 ++++++++-- jscomp/others/release.ninja | 3 ++- jscomp/others/runtime_ast_extensions.res | 27 ++++++++++++++++++++++++ lib/es6/runtime_ast_extensions.js | 1 + lib/js/runtime_ast_extensions.js | 1 + packages/artifacts.txt | 6 ++++++ 7 files changed, 48 insertions(+), 3 deletions(-) create mode 100644 jscomp/others/runtime_ast_extensions.res create mode 100644 lib/es6/runtime_ast_extensions.js create mode 100644 lib/js/runtime_ast_extensions.js diff --git a/jscomp/ext/js_runtime_modules.ml b/jscomp/ext/js_runtime_modules.ml index 20c0db01fe..71e2efa94f 100644 --- a/jscomp/ext/js_runtime_modules.ml +++ b/jscomp/ext/js_runtime_modules.ml @@ -74,3 +74,5 @@ let caml_splice_call = "Caml_splice_call" let deriving = "Runtime_deriving" let promise = "Runtime_promise" + +let astExtensions = "Runtime_ast_extensions" diff --git a/jscomp/frontend/ast_exp_extension.ml b/jscomp/frontend/ast_exp_extension.ml index 3877132257..8dcbe51b86 100644 --- a/jscomp/frontend/ast_exp_extension.ml +++ b/jscomp/frontend/ast_exp_extension.ml @@ -85,14 +85,21 @@ let handle_extension e (self : Bs_ast_mapper.mapper) Exp.sequence ~loc (Ast_compatible.app1 ~loc (Exp.ident ~loc - {loc; txt = Ldot (Ldot (Lident "Js", "Console"), "timeStart")}) + { + loc; + txt = Ldot (Lident Js_runtime_modules.astExtensions, "timeStart"); + }) (Ast_compatible.const_exp_string ~loc loc_string)) (Exp.let_ ~loc Nonrecursive [Vb.mk ~loc (Pat.var ~loc {loc; txt = "timed"}) e] (Exp.sequence ~loc (Ast_compatible.app1 ~loc (Exp.ident ~loc - {loc; txt = Ldot (Ldot (Lident "Js", "Console"), "timeEnd")}) + { + loc; + txt = + Ldot (Lident Js_runtime_modules.astExtensions, "timeEnd"); + }) (Ast_compatible.const_exp_string ~loc loc_string)) (Exp.ident ~loc {loc; txt = Lident "timed"}))) | _ -> diff --git a/jscomp/others/release.ninja b/jscomp/others/release.ninja index 1b177ac4ed..3d50070551 100644 --- a/jscomp/others/release.ninja +++ b/jscomp/others/release.ninja @@ -156,7 +156,8 @@ o others/belt_internalSetString.cmi others/belt_internalSetString.cmj : cc other o others/dom.cmi others/dom.cmj : cc others/dom.res | others/belt_internals.cmi others/dom_storage.cmj others/dom_storage2.cmj others/js.cmi $bsc js_pkg o others/dom_storage.cmi others/dom_storage.cmj : cc others/dom_storage.res | others/belt_internals.cmi others/dom_storage2.cmj others/js.cmi $bsc js_pkg o others/dom_storage2.cmi others/dom_storage2.cmj : cc others/dom_storage2.res | others/belt_internals.cmi others/js.cmi $bsc +o others/runtime_ast_extensions.cmi others/runtime_ast_extensions.cmj : cc others/runtime_ast_extensions.res | others/belt_internals.cmi others/js.cmi $bsc o others/runtime_deriving.cmj : cc_cmi others/runtime_deriving.res | others/belt_internals.cmi others/js.cmi others/runtime_deriving.cmi $bsc js_pkg o others/runtime_deriving.cmi : cc others/runtime_deriving.resi | others/belt_internals.cmi others/js.cmi $bsc o others/runtime_promise.cmi others/runtime_promise.cmj : cc others/runtime_promise.res | others/belt_internals.cmi others/js.cmi $bsc -o others : phony others/belt_Array.cmi others/belt_Array.cmj others/belt_Float.cmi others/belt_Float.cmj others/belt_HashMap.cmi others/belt_HashMap.cmj others/belt_HashMapInt.cmi others/belt_HashMapInt.cmj others/belt_HashMapString.cmi others/belt_HashMapString.cmj others/belt_HashSet.cmi others/belt_HashSet.cmj others/belt_HashSetInt.cmi others/belt_HashSetInt.cmj others/belt_HashSetString.cmi others/belt_HashSetString.cmj others/belt_Id.cmi others/belt_Id.cmj others/belt_Int.cmi others/belt_Int.cmj others/belt_List.cmi others/belt_List.cmj others/belt_Map.cmi others/belt_Map.cmj others/belt_MapDict.cmi others/belt_MapDict.cmj others/belt_MapInt.cmi others/belt_MapInt.cmj others/belt_MapString.cmi others/belt_MapString.cmj others/belt_MutableMap.cmi others/belt_MutableMap.cmj others/belt_MutableMapInt.cmi others/belt_MutableMapInt.cmj others/belt_MutableMapString.cmi others/belt_MutableMapString.cmj others/belt_MutableQueue.cmi others/belt_MutableQueue.cmj others/belt_MutableSet.cmi others/belt_MutableSet.cmj others/belt_MutableSetInt.cmi others/belt_MutableSetInt.cmj others/belt_MutableSetString.cmi others/belt_MutableSetString.cmj others/belt_MutableStack.cmi others/belt_MutableStack.cmj others/belt_Option.cmi others/belt_Option.cmj others/belt_Range.cmi others/belt_Range.cmj others/belt_Result.cmi others/belt_Result.cmj others/belt_Set.cmi others/belt_Set.cmj others/belt_SetDict.cmi others/belt_SetDict.cmj others/belt_SetInt.cmi others/belt_SetInt.cmj others/belt_SetString.cmi others/belt_SetString.cmj others/belt_SortArray.cmi others/belt_SortArray.cmj others/belt_SortArrayInt.cmi others/belt_SortArrayInt.cmj others/belt_SortArrayString.cmi others/belt_SortArrayString.cmj others/belt_internalAVLset.cmi others/belt_internalAVLset.cmj others/belt_internalAVLtree.cmi others/belt_internalAVLtree.cmj others/belt_internalBuckets.cmi others/belt_internalBuckets.cmj others/belt_internalBucketsType.cmi others/belt_internalBucketsType.cmj others/belt_internalMapInt.cmi others/belt_internalMapInt.cmj others/belt_internalMapString.cmi others/belt_internalMapString.cmj others/belt_internalSetBuckets.cmi others/belt_internalSetBuckets.cmj others/belt_internalSetInt.cmi others/belt_internalSetInt.cmj others/belt_internalSetString.cmi others/belt_internalSetString.cmj others/dom.cmi others/dom.cmj others/dom_storage.cmi others/dom_storage.cmj others/dom_storage2.cmi others/dom_storage2.cmj others/runtime_deriving.cmi others/runtime_deriving.cmj others/runtime_promise.cmi others/runtime_promise.cmj +o others : phony others/belt_Array.cmi others/belt_Array.cmj others/belt_Float.cmi others/belt_Float.cmj others/belt_HashMap.cmi others/belt_HashMap.cmj others/belt_HashMapInt.cmi others/belt_HashMapInt.cmj others/belt_HashMapString.cmi others/belt_HashMapString.cmj others/belt_HashSet.cmi others/belt_HashSet.cmj others/belt_HashSetInt.cmi others/belt_HashSetInt.cmj others/belt_HashSetString.cmi others/belt_HashSetString.cmj others/belt_Id.cmi others/belt_Id.cmj others/belt_Int.cmi others/belt_Int.cmj others/belt_List.cmi others/belt_List.cmj others/belt_Map.cmi others/belt_Map.cmj others/belt_MapDict.cmi others/belt_MapDict.cmj others/belt_MapInt.cmi others/belt_MapInt.cmj others/belt_MapString.cmi others/belt_MapString.cmj others/belt_MutableMap.cmi others/belt_MutableMap.cmj others/belt_MutableMapInt.cmi others/belt_MutableMapInt.cmj others/belt_MutableMapString.cmi others/belt_MutableMapString.cmj others/belt_MutableQueue.cmi others/belt_MutableQueue.cmj others/belt_MutableSet.cmi others/belt_MutableSet.cmj others/belt_MutableSetInt.cmi others/belt_MutableSetInt.cmj others/belt_MutableSetString.cmi others/belt_MutableSetString.cmj others/belt_MutableStack.cmi others/belt_MutableStack.cmj others/belt_Option.cmi others/belt_Option.cmj others/belt_Range.cmi others/belt_Range.cmj others/belt_Result.cmi others/belt_Result.cmj others/belt_Set.cmi others/belt_Set.cmj others/belt_SetDict.cmi others/belt_SetDict.cmj others/belt_SetInt.cmi others/belt_SetInt.cmj others/belt_SetString.cmi others/belt_SetString.cmj others/belt_SortArray.cmi others/belt_SortArray.cmj others/belt_SortArrayInt.cmi others/belt_SortArrayInt.cmj others/belt_SortArrayString.cmi others/belt_SortArrayString.cmj others/belt_internalAVLset.cmi others/belt_internalAVLset.cmj others/belt_internalAVLtree.cmi others/belt_internalAVLtree.cmj others/belt_internalBuckets.cmi others/belt_internalBuckets.cmj others/belt_internalBucketsType.cmi others/belt_internalBucketsType.cmj others/belt_internalMapInt.cmi others/belt_internalMapInt.cmj others/belt_internalMapString.cmi others/belt_internalMapString.cmj others/belt_internalSetBuckets.cmi others/belt_internalSetBuckets.cmj others/belt_internalSetInt.cmi others/belt_internalSetInt.cmj others/belt_internalSetString.cmi others/belt_internalSetString.cmj others/dom.cmi others/dom.cmj others/dom_storage.cmi others/dom_storage.cmj others/dom_storage2.cmi others/dom_storage2.cmj others/runtime_ast_extensions.cmi others/runtime_ast_extensions.cmj others/runtime_deriving.cmi others/runtime_deriving.cmj others/runtime_promise.cmi others/runtime_promise.cmj diff --git a/jscomp/others/runtime_ast_extensions.res b/jscomp/others/runtime_ast_extensions.res new file mode 100644 index 0000000000..34934ae460 --- /dev/null +++ b/jscomp/others/runtime_ast_extensions.res @@ -0,0 +1,27 @@ +/* Copyright (C) 2024 Authors of ReScript + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * In addition to the permissions granted to you by the LGPL, you may combine + * or link a "work that uses the Library" with a publicly distributed version + * of this file to produce a combined library or application, then distribute + * that combined work under the terms of your choosing, with no requirement + * to comply with the obligations normally placed on you by section 4 of the + * LGPL version 3 (or the corresponding section of a later version of the LGPL + * should you choose to use a later version). + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + +@val @scope("console") external timeStart: string => unit = "time" + +@val @scope("console") external timeEnd: string => unit = "timeEnd" diff --git a/lib/es6/runtime_ast_extensions.js b/lib/es6/runtime_ast_extensions.js new file mode 100644 index 0000000000..ae1b9f17e6 --- /dev/null +++ b/lib/es6/runtime_ast_extensions.js @@ -0,0 +1 @@ +/* This output is empty. Its source's type definitions, externals and/or unused code got optimized away. */ diff --git a/lib/js/runtime_ast_extensions.js b/lib/js/runtime_ast_extensions.js new file mode 100644 index 0000000000..ae1b9f17e6 --- /dev/null +++ b/lib/js/runtime_ast_extensions.js @@ -0,0 +1 @@ +/* This output is empty. Its source's type definitions, externals and/or unused code got optimized away. */ diff --git a/packages/artifacts.txt b/packages/artifacts.txt index 228e58601c..2b8be09d5c 100644 --- a/packages/artifacts.txt +++ b/packages/artifacts.txt @@ -178,6 +178,7 @@ lib/es6/pervasives.js lib/es6/pervasivesU.js lib/es6/queue.js lib/es6/random.js +lib/es6/runtime_ast_extensions.js lib/es6/runtime_deriving.js lib/es6/runtime_promise.js lib/es6/set.js @@ -343,6 +344,7 @@ lib/js/pervasives.js lib/js/pervasivesU.js lib/js/queue.js lib/js/random.js +lib/js/runtime_ast_extensions.js lib/js/runtime_deriving.js lib/js/runtime_promise.js lib/js/set.js @@ -999,6 +1001,10 @@ lib/ocaml/random.cmt lib/ocaml/random.cmti lib/ocaml/random.res lib/ocaml/random.resi +lib/ocaml/runtime_ast_extensions.cmi +lib/ocaml/runtime_ast_extensions.cmj +lib/ocaml/runtime_ast_extensions.cmt +lib/ocaml/runtime_ast_extensions.res lib/ocaml/runtime_deriving.cmi lib/ocaml/runtime_deriving.cmj lib/ocaml/runtime_deriving.cmt