Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Uncomment a bunch more of NQPRoutine code.
  • Loading branch information
jnthn committed Feb 1, 2013
1 parent 0c369f7 commit ce11ca6
Showing 1 changed file with 27 additions and 27 deletions.
54 changes: 27 additions & 27 deletions nqp-src/NQPCORE.setting
Expand Up @@ -40,41 +40,41 @@ my knowhow NQPRoutine {
method is_dispatcher() {
nqp::defined($!dispatchees)
}
# method derive_dispatcher() {
# # Clone the underlying VM code ref.
# my $do := nqp::clone($!do);
#
# # Clone and attach the code object.
# my $der := nqp::clone(self);
# nqp::bindattr($der, NQPRoutine, '$!do', $do);
# nqp::bindattr($der, NQPRoutine, '$!dispatchees', nqp::clone($!dispatchees));
# nqp::setcodeobj($do, $der);
#
# # If needed, arrange for a fixup of the cloned code-ref.
method derive_dispatcher() {
# Clone the underlying VM code ref.
my $do := nqp::clone($!do);

# Clone and attach the code object.
my $der := nqp::clone(self);
nqp::bindattr($der, NQPRoutine, '$!do', $do);
nqp::bindattr($der, NQPRoutine, '$!dispatchees', nqp::clone($!dispatchees));
nqp::setcodeobj($do, $der);

# If needed, arrange for a fixup of the cloned code-ref.
# my $clone_callback := pir::getprop__PPs($!do, 'CLONE_CALLBACK');
# if nqp::defined($clone_callback) {
# $clone_callback($!do, $do, $der);
# }
#
# $der
# }
# method clone() {
# # Clone the underlying VM code ref.
# my $do := nqp::clone($!do);
#
# # Clone and attach the code object.
# my $der := nqp::clone(self);
# nqp::bindattr($der, NQPRoutine, '$!do', $do);
# nqp::setcodeobj($do, $der);
#
# # If needed, arrange for a fixup of the cloned code-ref.

$der
}
method clone() {
# Clone the underlying VM code ref.
my $do := nqp::clone($!do);

# Clone and attach the code object.
my $der := nqp::clone(self);
nqp::bindattr($der, NQPRoutine, '$!do', $do);
nqp::setcodeobj($do, $der);

# If needed, arrange for a fixup of the cloned code-ref.
# my $clone_callback := pir::getprop__PPs($!do, 'CLONE_CALLBACK');
# if nqp::defined($clone_callback) {
# $clone_callback($!do, $do, $der);
# }
#
# $der
# }

$der
}
method !set_name($name) {
nqp::setcodename($!do, $name);
}
Expand Down

0 comments on commit ce11ca6

Please sign in to comment.