Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Move $!real_self setting from actions.pm into !fixup_routine_type.
  • Loading branch information
pmichaud committed Aug 26, 2009
1 parent bd7533f commit 3a4cc55
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 6 additions & 0 deletions src/builtins/guts.pir
Expand Up @@ -1341,6 +1341,12 @@ Reblesses a sub into a new type.
$P0 = new_type.'new'()
$P0 = typeof $P0
rebless_subclass sub, $P0
# We also make sure the Parrot-level sub has a backlink to the
# Rakudo-level object, since interpinfo only gives us the
# Parrot-level sub.
$P0 = getattribute sub, ['Sub'], 'proxy'
setprop $P0, '$!real_self', sub
.end
Expand Down
6 changes: 0 additions & 6 deletions src/parser/actions.pm
Expand Up @@ -3148,12 +3148,6 @@ sub set_block_type($block, $type) {
$type
);
$block<block_class_type> := $set_type;
# The following is to make sure the Parrot-level sub has a backlink
# to the Rakudo-level object, since it's all that we can find from
# interpinfo.
$block.loadinit().unshift(PAST::Op.new(
:inline(" $P0 = getattribute block, ['Sub'], 'proxy'",
" setprop $P0, '$!real_self', block") ) );
$block.loadinit().unshift($set_type);
}
}
Expand Down

0 comments on commit 3a4cc55

Please sign in to comment.