@@ -305,12 +305,11 @@ nqp::dispatch('boot-syscall', 'dispatcher-register', 'nqp-call', -> $capture {
305
305
else {
306
306
# Non-multi call; run the underlying code reference.
307
307
if $ code-constant {
308
- my $ args := nqp ::dispatch(' boot-syscall' , ' dispatcher-drop-arg' , $ capture , 0 );
309
308
# It's a constant, so just extract the do and insert it as a
310
309
# constant also.
311
310
my $ do := nqp ::getattr($ callee , $ callee . WHAT , ' $!do' );
312
- my $ delegate := nqp ::dispatch(' boot-syscall' ,
313
- ' dispatcher-insert-arg-literal-obj ' , $ args , 0 , $ do );
311
+ my $ delegate := nqp ::dispatch(' boot-syscall' , ' dispatcher-replace-arg-literal-obj ' ,
312
+ $ capture , 0 , $ do );
314
313
nqp ::dispatch(' boot-syscall' , ' dispatcher-delegate' ,
315
314
' boot-code-constant' , $ delegate );
316
315
}
@@ -332,10 +331,9 @@ nqp::dispatch('boot-syscall', 'dispatcher-register', 'nqp-call', -> $capture {
332
331
elsif $ is-regex {
333
332
# Regex, just unwrap the code handle and delegate.
334
333
if $ code-constant {
335
- my $ args := nqp ::dispatch(' boot-syscall' , ' dispatcher-drop-arg' , $ capture , 0 );
336
334
my $ do := nqp ::getattr($ callee , $ callee . WHAT , ' $!do' );
337
335
my $ delegate := nqp ::dispatch(' boot-syscall' ,
338
- ' dispatcher-insert -arg-literal-obj' , $ args , 0 , $ do );
336
+ ' dispatcher-replace -arg-literal-obj' , $ capture , 0 , $ do );
339
337
nqp ::dispatch(' boot-syscall' , ' dispatcher-delegate' ,
340
338
' boot-code-constant' , $ delegate );
341
339
}
@@ -351,10 +349,9 @@ nqp::dispatch('boot-syscall', 'dispatcher-register', 'nqp-call', -> $capture {
351
349
elsif $ is-regex-method {
352
350
# NQP regex method object.
353
351
if $ code-constant {
354
- my $ args := nqp ::dispatch(' boot-syscall' , ' dispatcher-drop-arg' , $ capture , 0 );
355
352
my $ code := nqp ::getattr($ callee , $ NQPRegexMethod , ' $!code' );
356
353
my $ delegate := nqp ::dispatch(' boot-syscall' ,
357
- ' dispatcher-insert -arg-literal-obj' , $ args , 0 , $ code );
354
+ ' dispatcher-replace -arg-literal-obj' , $ capture , 0 , $ do );
358
355
nqp ::dispatch(' boot-syscall' , ' dispatcher-delegate' ,
359
356
' boot-code-constant' , $ delegate );
360
357
}
0 commit comments