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

bacek at svn.parrot.org bacek at svn.parrot.org
Wed Jun 3 12:01:54 UTC 2009


Author: bacek
Date: Wed Jun  3 12:01:51 2009
New Revision: 39354
URL: https://trac.parrot.org/parrot/changeset/39354

Log:
[pmc2c][cage] Avoid useless call to VTABLE_type.

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

Modified: trunk/lib/Parrot/Pmc2c/PMCEmitter.pm
==============================================================================
--- trunk/lib/Parrot/Pmc2c/PMCEmitter.pm	Wed Jun  3 11:18:53 2009	(r39353)
+++ trunk/lib/Parrot/Pmc2c/PMCEmitter.pm	Wed Jun  3 12:01:51 2009	(r39354)
@@ -983,7 +983,7 @@
 
         my $body = <<"BODY";
     INTVAL type = VTABLE_type(INTERP, value);
-    if (SELF.type() >= enum_class_core_max) /* For dynpmc fallback to MMD */
+    if (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