@@ -712,32 +712,31 @@ JL_CALLABLE(jl_f__apply_pure)
712712 return ret ;
713713}
714714
715- // this is like `_apply` , but always runs in the newest world
716- JL_CALLABLE (jl_f__apply_latest )
715+ // this is like a regular call , but always runs in the newest world
716+ JL_CALLABLE (jl_f__call_latest )
717717{
718718 jl_ptls_t ptls = jl_get_ptls_states ();
719719 size_t last_age = ptls -> world_age ;
720720 if (!ptls -> in_pure_callback )
721721 ptls -> world_age = jl_world_counter ;
722- jl_value_t * ret = jl_f__apply ( NULL , args , nargs );
722+ jl_value_t * ret = jl_apply ( args , nargs );
723723 ptls -> world_age = last_age ;
724724 return ret ;
725725}
726726
727- // Like `_apply` , but runs in the specified world.
727+ // Like call_in_world , but runs in the specified world.
728728// If world > jl_world_counter, run in the latest world.
729- JL_CALLABLE (jl_f__apply_in_world )
729+ JL_CALLABLE (jl_f__call_in_world )
730730{
731731 JL_NARGSV (_apply_in_world , 2 );
732732 jl_ptls_t ptls = jl_get_ptls_states ();
733733 size_t last_age = ptls -> world_age ;
734734 JL_TYPECHK (_apply_in_world , ulong , args [0 ]);
735735 size_t world = jl_unbox_ulong (args [0 ]);
736736 world = world <= jl_world_counter ? world : jl_world_counter ;
737- if (!ptls -> in_pure_callback ) {
737+ if (!ptls -> in_pure_callback )
738738 ptls -> world_age = world ;
739- }
740- jl_value_t * ret = do_apply (NULL , args + 1 , nargs - 1 , NULL );
739+ jl_value_t * ret = jl_apply (& args [1 ], nargs - 1 );
741740 ptls -> world_age = last_age ;
742741 return ret ;
743742}
@@ -1555,8 +1554,8 @@ void jl_init_primitives(void) JL_GC_DISABLED
15551554 jl_builtin__expr = add_builtin_func ("_expr" , jl_f__expr );
15561555 jl_builtin_svec = add_builtin_func ("svec" , jl_f_svec );
15571556 add_builtin_func ("_apply_pure" , jl_f__apply_pure );
1558- add_builtin_func ("_apply_latest " , jl_f__apply_latest );
1559- add_builtin_func ("_apply_in_world " , jl_f__apply_in_world );
1557+ add_builtin_func ("_call_latest " , jl_f__call_latest );
1558+ add_builtin_func ("_call_in_world " , jl_f__call_in_world );
15601559 add_builtin_func ("_typevar" , jl_f__typevar );
15611560 add_builtin_func ("_structtype" , jl_f__structtype );
15621561 add_builtin_func ("_abstracttype" , jl_f__abstracttype );
0 commit comments