Skip to content

Commit 2143524

Browse files
committed
Runtime: adjust runtime for 5.1
1 parent a1c6cc9 commit 2143524

File tree

4 files changed

+25
-3
lines changed

4 files changed

+25
-3
lines changed

runtime/js/domain.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ function caml_atomic_exchange(ref, v) {
5151
}
5252

5353
//Provides: caml_atomic_make_contended
54+
//Version: >= 5.2
5455
function caml_atomic_make_contended(a) {
5556
return [0, a];
5657
}

runtime/js/gc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ function caml_memprof_stop(unit) {
9292
}
9393

9494
//Provides: caml_memprof_discard
95+
//Version: >= 5.2
9596
function caml_memprof_discard(t) {
9697
return 0;
9798
}

runtime/js/io.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,7 @@ function caml_ml_input(chanid, b, i, l) {
338338
//Provides: caml_ml_input_bigarray
339339
//Requires: caml_ml_input_block
340340
//Requires: caml_ba_to_typed_array
341+
//Version: >= 5.2
341342
function caml_ml_input_bigarray(chanid, b, i, l) {
342343
var ba = caml_ba_to_typed_array(b);
343344
return caml_ml_input_block(chanid, ba, i, l);
@@ -584,6 +585,7 @@ function caml_ml_output_bytes(chanid, buffer, offset, len) {
584585

585586
//Provides: caml_ml_output_bigarray
586587
//Requires: caml_ba_to_typed_array, caml_ml_output_ta
588+
//Version: >= 5.2
587589
function caml_ml_output_bigarray(chanid, buffer, offset, len) {
588590
var buffer = caml_ba_to_typed_array(buffer);
589591
return caml_ml_output_ta(chanid, buffer, offset, len);

runtime/js/runtime_events.js

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,25 +19,43 @@ function caml_runtime_events_user_resolve() {
1919
}
2020

2121
//Provides: caml_ml_runtime_events_start
22-
//Alias: caml_runtime_events_start
22+
//Version: >= 5.2
2323
function caml_ml_runtime_events_start() {
2424
return 0;
2525
}
2626

27+
//Provides: caml_runtime_events_start
28+
//Version: < 5.2
29+
function caml_runtime_events_start() {
30+
return 0;
31+
}
32+
2733
//Provides: caml_ml_runtime_events_pause
28-
//Alias: caml_runtime_events_pause
34+
//Version: >= 5.2
2935
function caml_ml_runtime_events_pause() {
3036
return 0;
3137
}
3238

39+
//Provides: caml_runtime_events_pause
40+
//Version: < 5.2
41+
function caml_runtime_events_pause() {
42+
return 0;
43+
}
44+
3345
//Provides: caml_ml_runtime_events_are_active
3446
//Version: >= 5.2
3547
function caml_ml_runtime_events_are_active() {
3648
return 0;
3749
}
3850

51+
//Provides: caml_runtime_events_resume
52+
//Version: < 5.2
53+
function caml_runtime_events_resume() {
54+
return 0;
55+
}
56+
3957
//Provides: caml_ml_runtime_events_resume
40-
//Alias: caml_runtime_events_resume
58+
//Version: >= 5.2
4159
function caml_ml_runtime_events_resume() {
4260
return 0;
4361
}

0 commit comments

Comments
 (0)