Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Replace some v-table use with the invocation spec.
  • Loading branch information
jnthn committed Feb 1, 2013
1 parent 86d5182 commit f544686
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions src/core/NQPRoutine.pm
Expand Up @@ -49,11 +49,10 @@ my knowhow NQPRoutine {
nqp::setcodename($!do, $name);
}
}
pir::stable_publish_vtable_handler_mapping__vPP(NQPRoutine,
nqp::hash(
'invoke', nqp::list(NQPRoutine, '$!do'),
'get_string', nqp::list(NQPRoutine, '$!do')));
nqp::setinvokespec(NQPRoutine, NQPRoutine, '$!do', nqp::null);
nqp::setboolspec(NQPRoutine, 5, nqp::null());
pir::stable_publish_vtable_handler_mapping__vPP(NQPRoutine,
nqp::hash('get_string', nqp::list(NQPRoutine, '$!do')));

my knowhow NQPSignature {
has $!types;
Expand Down Expand Up @@ -136,8 +135,7 @@ my knowhow NQPRegex {
nqp::setcodename($!do, $name);
}
}
pir::stable_publish_vtable_handler_mapping__vPP(NQPRegex,
nqp::hash(
'invoke', nqp::list(NQPRegex, '$!do'),
'get_string', nqp::list(NQPRegex, '$!do')));
nqp::setinvokespec(NQPRegex, NQPRegex, '$!do', nqp::null);
nqp::setboolspec(NQPRegex, 5, nqp::null());
pir::stable_publish_vtable_handler_mapping__vPP(NQPRegex,
nqp::hash('get_string', nqp::list(NQPRegex, '$!do')));

0 comments on commit f544686

Please sign in to comment.