Skip to content

Commit 4411974

Browse files
committed
Runtime: adjust dynlink prims
1 parent d414b70 commit 4411974

File tree

7 files changed

+3
-30
lines changed

7 files changed

+3
-30
lines changed

compiler/tests-check-prim/main.output

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,6 @@ caml_bigstring_blit_string_to_ba
3434
caml_bigstring_memcmp
3535
caml_hash_mix_bigstring
3636

37-
From +dynlink.js:
38-
caml_add_debug_info
39-
caml_register_code_fragment
40-
caml_remove_debug_info
41-
4237
From +effect.js:
4338
caml_alloc_stack
4439
caml_continuation_use_and_update_handler_noexc

compiler/tests-check-prim/main.output5

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,6 @@ caml_bigstring_blit_string_to_ba
2727
caml_bigstring_memcmp
2828
caml_hash_mix_bigstring
2929

30-
From +dynlink.js:
31-
caml_add_debug_info
32-
caml_register_code_fragment
33-
caml_remove_debug_info
34-
3530
From +effect.js:
3631
jsoo_effect_not_supported
3732

compiler/tests-check-prim/unix-unix.output

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -143,11 +143,6 @@ caml_bigstring_blit_string_to_ba
143143
caml_bigstring_memcmp
144144
caml_hash_mix_bigstring
145145

146-
From +dynlink.js:
147-
caml_add_debug_info
148-
caml_register_code_fragment
149-
caml_remove_debug_info
150-
151146
From +effect.js:
152147
caml_alloc_stack
153148
caml_continuation_use_and_update_handler_noexc

compiler/tests-check-prim/unix-unix.output5

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -138,11 +138,6 @@ caml_bigstring_blit_string_to_ba
138138
caml_bigstring_memcmp
139139
caml_hash_mix_bigstring
140140

141-
From +dynlink.js:
142-
caml_add_debug_info
143-
caml_register_code_fragment
144-
caml_remove_debug_info
145-
146141
From +effect.js:
147142
jsoo_effect_not_supported
148143

compiler/tests-check-prim/unix-win32.output

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -108,11 +108,6 @@ caml_bigstring_blit_string_to_ba
108108
caml_bigstring_memcmp
109109
caml_hash_mix_bigstring
110110

111-
From +dynlink.js:
112-
caml_add_debug_info
113-
caml_register_code_fragment
114-
caml_remove_debug_info
115-
116111
From +effect.js:
117112
caml_alloc_stack
118113
caml_continuation_use_and_update_handler_noexc

compiler/tests-check-prim/unix-win32.output5

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -104,11 +104,6 @@ caml_bigstring_blit_string_to_ba
104104
caml_bigstring_memcmp
105105
caml_hash_mix_bigstring
106106

107-
From +dynlink.js:
108-
caml_add_debug_info
109-
caml_register_code_fragment
110-
caml_remove_debug_info
111-
112107
From +effect.js:
113108
jsoo_effect_not_supported
114109

runtime/js/dynlink.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,16 +73,19 @@ function caml_dynlink_get_current_libs() {
7373
}
7474

7575
//Provides: caml_register_code_fragment
76+
//Version: < 4.10
7677
function caml_register_code_fragment(code, codesize, digest) {
7778
return 0;
7879
}
7980

8081
//Provides: caml_add_debug_info
82+
//Version: < 4.13
8183
function caml_add_debug_info(code, size, events) {
8284
return 0;
8385
}
8486

8587
//Provides: caml_remove_debug_info
88+
//Version: < 4.13
8689
function caml_remove_debug_info(code) {
8790
return 0;
8891
}

0 commit comments

Comments
 (0)