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

bacek at svn.parrot.org bacek at svn.parrot.org
Wed Jun 3 13:31:59 UTC 2009


Author: bacek
Date: Wed Jun  3 13:31:59 2009
New Revision: 39356
URL: https://trac.parrot.org/parrot/changeset/39356

Log:
[pmc2c] Fallback to MMD even harder from switch-based MULTI optimiser.

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

Modified: trunk/lib/Parrot/Pmc2c/PMCEmitter.pm
==============================================================================
--- trunk/lib/Parrot/Pmc2c/PMCEmitter.pm	Wed Jun  3 12:12:12 2009	(r39355)
+++ trunk/lib/Parrot/Pmc2c/PMCEmitter.pm	Wed Jun  3 13:31:59 2009	(r39356)
@@ -983,7 +983,8 @@
 
         my $body = <<"BODY";
     INTVAL type = VTABLE_type(INTERP, value);
-    if (type >= enum_class_core_max) /* For dynpmc fallback to MMD */
+    /* For dynpmc fallback to MMD */
+    if ((type >= enum_class_core_max) || (SELF.type() >= enum_class_core_max))
         type = enum_class_core_max;
     switch(type) {
 $cases


More information about the parrot-commits mailing list