Permalink
Browse files

[pmc2c] rip out DYNSUPER, which isn't needed now that it and SUPER ac…

…t the same

git-svn-id: https://svn.parrot.org/parrot/trunk@40316 d31e2699-5ff4-0310-a27c-f18f2fbe73fe
  • Loading branch information...
1 parent 1647787 commit ddce55eeabc2278a88d217ffe4f66a364ba78054 @cotto cotto committed Jul 28, 2009
Showing with 3 additions and 16 deletions.
  1. +1 −5 docs/pmc2c.pod
  2. +2 −11 lib/Parrot/Pmc2c/MethodEmitter.pm
View
@@ -185,11 +185,7 @@ C<OtherClass>.
=item C<SUPER(a,b,c)>
Calls the overridden implementation of the current method in the nearest
-superclass, using the static type of C<SELF>.
-
-=item C<DYNSUPER(a,b,c)>
-
-As above, but uses the actual dynamic type of C<SELF>.
+superclass, using the type of C<SELF>.
=back
@@ -189,7 +189,7 @@ sub rewrite_nci_method {
# Rewrite SELF.other_method(args...)
$body->subst(
qr{
- \bSELF\b # Macro: SELF
+ \bSELF\b # Macro: SELF
\.(\w+) # other_method
\(\s*(.*?)\) # capture argument list
}x,
@@ -199,7 +199,7 @@ sub rewrite_nci_method {
# Rewrite STATICSELF.other_method(args...)
$body->subst(
qr{
- \bSTATICSELF\b # Macro STATICSELF
+ \bSTATICSELF\b # Macro STATICSELF
\.(\w+) # other_method
\(\s*(.*?)\) # capture argument list
}x,
@@ -242,15 +242,6 @@ sub rewrite_vtable_method {
die "$pmcname defines unknown vtable method '$name'\n" unless defined $super_table->{$name};
my $supermethod = "Parrot_" . $super_table->{$name} . "_$name";
- # Rewrite DYNSUPER(args)
- $body->subst(
- qr{
- \bDYNSUPER\b # Macro: DYNSUPER
- \(\s*(.*?)\) # capture argument list
- }x,
- sub { "interp->vtables[$supertype]->$name(" . full_arguments($1) . ')' }
- );
-
# Rewrite OtherClass.SUPER(args...)
$body->subst(
qr{

0 comments on commit ddce55e

Please sign in to comment.