[svn:parrot] r39756 - branches/tt761_keys_revamp/lib/Parrot/Pmc2c
bacek at svn.parrot.org
bacek at svn.parrot.org
Wed Jun 24 10:25:08 UTC 2009
Author: bacek
Date: Wed Jun 24 10:25:08 2009
New Revision: 39756
URL: https://trac.parrot.org/parrot/changeset/39756
Log:
[pmc2c] Provide PMC* return value in generated switch-optimised VTABLE for MULTIs instead of relying on arguments.
Modified:
branches/tt761_keys_revamp/lib/Parrot/Pmc2c/PMCEmitter.pm
Modified: branches/tt761_keys_revamp/lib/Parrot/Pmc2c/PMCEmitter.pm
==============================================================================
--- branches/tt761_keys_revamp/lib/Parrot/Pmc2c/PMCEmitter.pm Wed Jun 24 10:24:47 2009 (r39755)
+++ branches/tt761_keys_revamp/lib/Parrot/Pmc2c/PMCEmitter.pm Wed Jun 24 10:25:08 2009 (r39756)
@@ -1036,9 +1036,9 @@
elsif ($letter eq 'P') {
return (
'PPP->P',
- '',
- ", &$parameters[1]",
- "return $parameters[1];",
+ 'PMC *retval;',
+ ", &retval",
+ "return retval;",
);
}
elsif ($letter eq 'v') {
More information about the parrot-commits
mailing list