@@ -361,73 +361,6 @@ upcall_free_shared_type_desc(type_desc *td) {
361
361
}
362
362
}
363
363
364
- /* *********************************************************************
365
- * Called to intern a task-local type descriptor into the hashtable
366
- * associated with each scheduler.
367
- */
368
-
369
- struct s_get_type_desc_args {
370
- type_desc *retval;
371
- size_t size;
372
- size_t align;
373
- size_t n_descs;
374
- type_desc const **descs;
375
- uintptr_t n_obj_params;
376
- };
377
-
378
- extern " C" CDECL void
379
- upcall_s_get_type_desc (s_get_type_desc_args *args) {
380
- rust_task *task = rust_task_thread::get_task ();
381
- LOG_UPCALL_ENTRY (task);
382
-
383
- LOG (task, cache, " upcall get_type_desc with size=%" PRIdPTR
384
- " , align=%" PRIdPTR " , %" PRIdPTR " descs" , args->size , args->align ,
385
- args->n_descs );
386
- rust_crate_cache *cache = task->get_crate_cache ();
387
- type_desc *td = cache->get_type_desc (args->size , args->align , args->n_descs ,
388
- args->descs , args->n_obj_params );
389
- LOG (task, cache, " returning tydesc 0x%" PRIxPTR, td);
390
- args->retval = td;
391
- }
392
-
393
- extern " C" CDECL type_desc *
394
- upcall_get_type_desc (void *curr_crate, // ignored, legacy compat.
395
- size_t size,
396
- size_t align,
397
- size_t n_descs,
398
- type_desc const **descs,
399
- uintptr_t n_obj_params) {
400
- s_get_type_desc_args args = {0 ,size,align,n_descs,descs,n_obj_params};
401
- UPCALL_SWITCH_STACK (&args, upcall_s_get_type_desc);
402
- return args.retval ;
403
- }
404
-
405
- /* *********************************************************************
406
- * Called to get a heap-allocated dict. These are interned and kept
407
- * around indefinitely
408
- */
409
-
410
- struct s_intern_dict_args {
411
- size_t n_fields;
412
- void ** dict;
413
- void ** res;
414
- };
415
-
416
- extern " C" CDECL void
417
- upcall_s_intern_dict (s_intern_dict_args *args) {
418
- rust_task *task = rust_task_thread::get_task ();
419
- LOG_UPCALL_ENTRY (task);
420
- rust_crate_cache *cache = task->get_crate_cache ();
421
- args->res = cache->get_dict (args->n_fields , args->dict );
422
- }
423
-
424
- extern " C" CDECL void **
425
- upcall_intern_dict (size_t n_fields, void ** dict) {
426
- s_intern_dict_args args = {n_fields, dict, 0 };
427
- UPCALL_SWITCH_STACK (&args, upcall_s_intern_dict);
428
- return args.res ;
429
- }
430
-
431
364
/* *********************************************************************/
432
365
433
366
struct s_vec_grow_args {
0 commit comments