[svn:parrot] r39256 - trunk/lib/Parrot/Pmc2c

bacek at svn.parrot.org bacek at svn.parrot.org
Sat May 30 01:44:18 UTC 2009


Author: bacek
Date: Sat May 30 01:44:18 2009
New Revision: 39256
URL: https://trac.parrot.org/parrot/changeset/39256

Log:
[pmc2c] Fallback to MMD for non-core PMCs.

Modified:
   trunk/lib/Parrot/Pmc2c/PMCEmitter.pm

Modified: trunk/lib/Parrot/Pmc2c/PMCEmitter.pm
==============================================================================
--- trunk/lib/Parrot/Pmc2c/PMCEmitter.pm	Sat May 30 01:39:49 2009	(r39255)
+++ trunk/lib/Parrot/Pmc2c/PMCEmitter.pm	Sat May 30 01:44:18 2009	(r39256)
@@ -983,6 +983,8 @@
         
         my $body = <<"BODY";
     INTVAL type = VTABLE_type(INTERP, value);
+    if (SELF.type() > enum_class_core_max) /* For dynpmc fallback to MMD */
+        type = enum_class_core_max;
     switch(type) {
 $cases
     }


More information about the parrot-commits mailing list