[svn:parrot] r39365 - branches/pmc_i_ops/lib/Parrot/Pmc2c

bacek at svn.parrot.org bacek at svn.parrot.org
Wed Jun 3 13:35:37 UTC 2009


Author: bacek
Date: Wed Jun  3 13:35:36 2009
New Revision: 39365
URL: https://trac.parrot.org/parrot/changeset/39365

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

Modified:
   branches/pmc_i_ops/lib/Parrot/Pmc2c/PMCEmitter.pm

Modified: branches/pmc_i_ops/lib/Parrot/Pmc2c/PMCEmitter.pm
==============================================================================
--- branches/pmc_i_ops/lib/Parrot/Pmc2c/PMCEmitter.pm	Wed Jun  3 13:35:16 2009	(r39364)
+++ branches/pmc_i_ops/lib/Parrot/Pmc2c/PMCEmitter.pm	Wed Jun  3 13:35:36 2009	(r39365)
@@ -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