Skip to content

Commit be27f2f

Browse files
committed
Runtime: adjust spacetime prims
1 parent d5f2f62 commit be27f2f

File tree

7 files changed

+3
-18
lines changed

7 files changed

+3
-18
lines changed

compiler/tests-check-prim/main.output

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -182,10 +182,7 @@ From +sys.js:
182182
caml_fatal_uncaught_exception
183183
caml_format_exception
184184
caml_is_special_exception
185-
caml_register_channel_for_spacetime
186185
caml_set_static_env
187-
caml_spacetime_enabled
188-
caml_spacetime_only_works_for_native_code
189186

190187
From +toplevel.js:
191188
caml_dynlink_get_bytecode_sections

compiler/tests-check-prim/main.output5

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,10 +160,7 @@ From +sys.js:
160160
caml_fatal_uncaught_exception
161161
caml_format_exception
162162
caml_is_special_exception
163-
caml_register_channel_for_spacetime
164163
caml_set_static_env
165-
caml_spacetime_enabled
166-
caml_spacetime_only_works_for_native_code
167164
caml_sys_const_naked_pointers_checked
168165

169166
From +toplevel.js:

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -291,10 +291,7 @@ From +sys.js:
291291
caml_fatal_uncaught_exception
292292
caml_format_exception
293293
caml_is_special_exception
294-
caml_register_channel_for_spacetime
295294
caml_set_static_env
296-
caml_spacetime_enabled
297-
caml_spacetime_only_works_for_native_code
298295

299296
From +toplevel.js:
300297
caml_dynlink_get_bytecode_sections

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -271,10 +271,7 @@ From +sys.js:
271271
caml_fatal_uncaught_exception
272272
caml_format_exception
273273
caml_is_special_exception
274-
caml_register_channel_for_spacetime
275274
caml_set_static_env
276-
caml_spacetime_enabled
277-
caml_spacetime_only_works_for_native_code
278275
caml_sys_const_naked_pointers_checked
279276

280277
From +toplevel.js:

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -256,10 +256,7 @@ From +sys.js:
256256
caml_fatal_uncaught_exception
257257
caml_format_exception
258258
caml_is_special_exception
259-
caml_register_channel_for_spacetime
260259
caml_set_static_env
261-
caml_spacetime_enabled
262-
caml_spacetime_only_works_for_native_code
263260

264261
From +toplevel.js:
265262
caml_dynlink_get_bytecode_sections

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -237,10 +237,7 @@ From +sys.js:
237237
caml_fatal_uncaught_exception
238238
caml_format_exception
239239
caml_is_special_exception
240-
caml_register_channel_for_spacetime
241240
caml_set_static_env
242-
caml_spacetime_enabled
243-
caml_spacetime_only_works_for_native_code
244241
caml_sys_const_naked_pointers_checked
245242

246243
From +toplevel.js:

runtime/js/sys.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,7 @@ function caml_ml_runtime_warnings_enabled(_unit) {
337337
}
338338

339339
//Provides: caml_spacetime_enabled const (const)
340+
//Version: < 4.12
340341
function caml_spacetime_enabled(_unit) {
341342
return 0;
342343
}
@@ -347,12 +348,14 @@ function caml_sys_const_naked_pointers_checked(_unit) {
347348
}
348349

349350
//Provides: caml_register_channel_for_spacetime const (const)
351+
//Version: < 4.12
350352
function caml_register_channel_for_spacetime(_channel) {
351353
return 0;
352354
}
353355

354356
//Provides: caml_spacetime_only_works_for_native_code
355357
//Requires: caml_failwith
358+
//Version: < 4.12
356359
function caml_spacetime_only_works_for_native_code() {
357360
caml_failwith("Spacetime profiling only works for native code");
358361
}

0 commit comments

Comments
 (0)