Skip to content

Commit c9b00c0

Browse files
committed
Runtime: adjust runtime for 4.14
1 parent b7903e8 commit c9b00c0

File tree

5 files changed

+43
-59
lines changed

5 files changed

+43
-59
lines changed

compiler/tests-check-prim/dune

Lines changed: 36 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,12 @@
2323
(action
2424
(with-stdout-to
2525
%{targets}
26-
(run %{bin:js_of_ocaml} check-runtime +dynlink.js +toplevel.js %{dep:main.bc}))))
26+
(run
27+
%{bin:js_of_ocaml}
28+
check-runtime
29+
+dynlink.js
30+
+toplevel.js
31+
%{dep:main.bc}))))
2732

2833
(rule
2934
(targets unix-unix.output)
@@ -36,7 +41,12 @@
3641
(action
3742
(with-stdout-to
3843
%{targets}
39-
(run %{bin:js_of_ocaml} check-runtime +dynlink.js +toplevel.js %{dep:unix.bc}))))
44+
(run
45+
%{bin:js_of_ocaml}
46+
check-runtime
47+
+dynlink.js
48+
+toplevel.js
49+
%{dep:unix.bc}))))
4050

4151
(rule
4252
(targets unix-win32.output)
@@ -49,7 +59,12 @@
4959
(action
5060
(with-stdout-to
5161
%{targets}
52-
(run %{bin:js_of_ocaml} check-runtime +dynlink.js +toplevel.js %{dep:unix.bc}))))
62+
(run
63+
%{bin:js_of_ocaml}
64+
check-runtime
65+
+dynlink.js
66+
+toplevel.js
67+
%{dep:unix.bc}))))
5368

5469
(rule
5570
(targets main.output5)
@@ -60,7 +75,12 @@
6075
(action
6176
(with-stdout-to
6277
%{targets}
63-
(run %{bin:js_of_ocaml} check-runtime +dynlink.js +toplevel.js %{dep:main.bc}))))
78+
(run
79+
%{bin:js_of_ocaml}
80+
check-runtime
81+
+dynlink.js
82+
+toplevel.js
83+
%{dep:main.bc}))))
6484

6585
(rule
6686
(targets unix-unix.output5)
@@ -73,7 +93,12 @@
7393
(action
7494
(with-stdout-to
7595
%{targets}
76-
(run %{bin:js_of_ocaml} check-runtime +dynlink.js +toplevel.js %{dep:unix.bc}))))
96+
(run
97+
%{bin:js_of_ocaml}
98+
check-runtime
99+
+dynlink.js
100+
+toplevel.js
101+
%{dep:unix.bc}))))
77102

78103
(rule
79104
(targets unix-win32.output5)
@@ -86,4 +111,9 @@
86111
(action
87112
(with-stdout-to
88113
%{targets}
89-
(run %{bin:js_of_ocaml} check-runtime +dynlink.js +toplevel.js %{dep:unix.bc}))))
114+
(run
115+
%{bin:js_of_ocaml}
116+
check-runtime
117+
+dynlink.js
118+
+toplevel.js
119+
%{dep:unix.bc}))))

compiler/tests-check-prim/main.output

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ caml_atomic_cas
3939
caml_atomic_exchange
4040
caml_atomic_fetch_add
4141
caml_atomic_load
42-
caml_atomic_make_contended
4342
caml_domain_dls
4443
caml_domain_dls_get
4544
caml_domain_dls_set
@@ -75,7 +74,6 @@ jsoo_create_file
7574
jsoo_create_file_extern
7675

7776
From +gc.js:
78-
caml_memprof_discard
7977
caml_memprof_set
8078

8179
From +graphics.js:
@@ -136,8 +134,6 @@ caml_mod
136134

137135
From +io.js:
138136
caml_input_value_to_outside_heap
139-
caml_ml_input_bigarray
140-
caml_ml_output_bigarray
141137

142138
From +jslib.js:
143139
caml_is_js
@@ -175,18 +171,6 @@ caml_obj_is_block
175171
caml_obj_is_shared
176172
caml_obj_update_tag
177173

178-
From +runtime_events.js:
179-
caml_custom_event_index
180-
caml_ml_runtime_events_pause
181-
caml_ml_runtime_events_resume
182-
caml_ml_runtime_events_start
183-
caml_runtime_events_create_cursor
184-
caml_runtime_events_free_cursor
185-
caml_runtime_events_read_poll
186-
caml_runtime_events_user_register
187-
caml_runtime_events_user_resolve
188-
caml_runtime_events_user_write
189-
190174
From +stdlib.js:
191175
caml_build_symbols
192176
caml_is_printable
@@ -218,7 +202,6 @@ caml_register_channel_for_spacetime
218202
caml_set_static_env
219203
caml_spacetime_enabled
220204
caml_spacetime_only_works_for_native_code
221-
caml_sys_is_regular_file
222205

223206
From +toplevel.js:
224207
caml_dynlink_get_bytecode_sections

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

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,6 @@ caml_atomic_cas
148148
caml_atomic_exchange
149149
caml_atomic_fetch_add
150150
caml_atomic_load
151-
caml_atomic_make_contended
152151
caml_domain_dls
153152
caml_domain_dls_get
154153
caml_domain_dls_set
@@ -184,7 +183,6 @@ jsoo_create_file
184183
jsoo_create_file_extern
185184

186185
From +gc.js:
187-
caml_memprof_discard
188186
caml_memprof_set
189187

190188
From +graphics.js:
@@ -245,8 +243,6 @@ caml_mod
245243

246244
From +io.js:
247245
caml_input_value_to_outside_heap
248-
caml_ml_input_bigarray
249-
caml_ml_output_bigarray
250246

251247
From +jslib.js:
252248
caml_is_js
@@ -284,18 +280,6 @@ caml_obj_is_block
284280
caml_obj_is_shared
285281
caml_obj_update_tag
286282

287-
From +runtime_events.js:
288-
caml_custom_event_index
289-
caml_ml_runtime_events_pause
290-
caml_ml_runtime_events_resume
291-
caml_ml_runtime_events_start
292-
caml_runtime_events_create_cursor
293-
caml_runtime_events_free_cursor
294-
caml_runtime_events_read_poll
295-
caml_runtime_events_user_register
296-
caml_runtime_events_user_resolve
297-
caml_runtime_events_user_write
298-
299283
From +stdlib.js:
300284
caml_build_symbols
301285
caml_is_printable
@@ -327,7 +311,6 @@ caml_register_channel_for_spacetime
327311
caml_set_static_env
328312
caml_spacetime_enabled
329313
caml_spacetime_only_works_for_native_code
330-
caml_sys_is_regular_file
331314

332315
From +toplevel.js:
333316
caml_dynlink_get_bytecode_sections

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

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,6 @@ jsoo_create_file
149149
jsoo_create_file_extern
150150

151151
From +gc.js:
152-
caml_memprof_discard
153152
caml_memprof_set
154153

155154
From +graphics.js:
@@ -210,8 +209,6 @@ caml_mod
210209

211210
From +io.js:
212211
caml_input_value_to_outside_heap
213-
caml_ml_input_bigarray
214-
caml_ml_output_bigarray
215212

216213
From +jslib.js:
217214
caml_is_js
@@ -249,18 +246,6 @@ caml_obj_is_block
249246
caml_obj_is_shared
250247
caml_obj_update_tag
251248

252-
From +runtime_events.js:
253-
caml_custom_event_index
254-
caml_ml_runtime_events_pause
255-
caml_ml_runtime_events_resume
256-
caml_ml_runtime_events_start
257-
caml_runtime_events_create_cursor
258-
caml_runtime_events_free_cursor
259-
caml_runtime_events_read_poll
260-
caml_runtime_events_user_register
261-
caml_runtime_events_user_resolve
262-
caml_runtime_events_user_write
263-
264249
From +stdlib.js:
265250
caml_build_symbols
266251
caml_is_printable
@@ -292,7 +277,6 @@ caml_register_channel_for_spacetime
292277
caml_set_static_env
293278
caml_spacetime_enabled
294279
caml_spacetime_only_works_for_native_code
295-
caml_sys_is_regular_file
296280

297281
From +toplevel.js:
298282
caml_dynlink_get_bytecode_sections

runtime/js/runtime_events.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ function caml_runtime_events_user_write(event, event_content) {
1717
}
1818

1919
//Provides: caml_runtime_events_user_resolve
20+
//Version: >= 5.0
2021
function caml_runtime_events_user_resolve() {
2122
return 0;
2223
}
@@ -28,7 +29,7 @@ function caml_ml_runtime_events_start() {
2829
}
2930

3031
//Provides: caml_runtime_events_start
31-
//Version: < 5.2
32+
//Version: >= 5.0, < 5.2
3233
function caml_runtime_events_start() {
3334
return 0;
3435
}
@@ -40,7 +41,7 @@ function caml_ml_runtime_events_pause() {
4041
}
4142

4243
//Provides: caml_runtime_events_pause
43-
//Version: < 5.2
44+
//Version: >= 5.0, < 5.2
4445
function caml_runtime_events_pause() {
4546
return 0;
4647
}
@@ -52,7 +53,7 @@ function caml_ml_runtime_events_are_active() {
5253
}
5354

5455
//Provides: caml_runtime_events_resume
55-
//Version: < 5.2
56+
//Version: >=5.0, < 5.2
5657
function caml_runtime_events_resume() {
5758
return 0;
5859
}
@@ -64,16 +65,19 @@ function caml_ml_runtime_events_resume() {
6465
}
6566

6667
//Provides: caml_runtime_events_create_cursor
68+
//Version: >= 5.0
6769
function caml_runtime_events_create_cursor(target) {
6870
return {};
6971
}
7072

7173
//Provides: caml_runtime_events_free_cursor
74+
//Version: >= 5.0
7275
function caml_runtime_events_free_cursor(cursor) {
7376
return 0;
7477
}
7578

7679
//Provides: caml_runtime_events_read_poll
80+
//Version: >= 5.0
7781
function caml_runtime_events_read_poll(cursor, callbacks, num) {
7882
return 0;
7983
}

0 commit comments

Comments
 (0)