[svn:parrot] r44138 - trunk/src/pmc

NotFound at svn.parrot.org NotFound at svn.parrot.org
Thu Feb 18 17:21:44 UTC 2010


Author: NotFound
Date: Thu Feb 18 17:21:43 2010
New Revision: 44138
URL: https://trac.parrot.org/parrot/changeset/44138

Log:
method op_count in Opcode PMC

Modified:
   trunk/src/pmc/opcode.pmc

Modified: trunk/src/pmc/opcode.pmc
==============================================================================
--- trunk/src/pmc/opcode.pmc	Thu Feb 18 16:59:14 2010	(r44137)
+++ trunk/src/pmc/opcode.pmc	Thu Feb 18 17:21:43 2010	(r44138)
@@ -80,6 +80,12 @@
         }
         return attrs->full_name_cache;
     }
+
+    METHOD op_count() {
+        Parrot_Opcode_attributes * const attrs = PARROT_OPCODE(SELF);
+        INTVAL count = attrs->info->op_count;
+        RETURN(INTVAL count);
+    }
 }
 
 /*


More information about the parrot-commits mailing list