[svn:parrot] r43253 - in trunk: include/parrot src

cotto at svn.parrot.org cotto at svn.parrot.org
Sat Dec 26 21:41:29 UTC 2009


Author: cotto
Date: Sat Dec 26 21:41:28 2009
New Revision: 43253
URL: https://trac.parrot.org/parrot/changeset/43253

Log:
[packfile] remove some long-unused slice enums

Modified:
   trunk/include/parrot/packfile.h
   trunk/src/packfile.c

Modified: trunk/include/parrot/packfile.h
==============================================================================
--- trunk/include/parrot/packfile.h	Sat Dec 26 20:46:41 2009	(r43252)
+++ trunk/include/parrot/packfile.h	Sat Dec 26 21:41:28 2009	(r43253)
@@ -245,15 +245,6 @@
 
 /* &end_gen */
 
-enum PF_VARTYPE {                  /* s. also imcc/symreg.h */
-    PF_VT_START_SLICE = 1 << 10,   /* x .. y slice range */
-    PF_VT_END_SLICE   = 1 << 11,
-    PF_VT_START_ZERO  = 1 << 12,   /* .. y 0..start */
-    PF_VT_END_INF     = 1 << 13,   /* x..  start..inf */
-    PF_VT_SLICE_BITS  = PF_VT_START_SLICE | PF_VT_END_SLICE |
-                        PF_VT_START_ZERO | PF_VT_END_INF
-};
-
 typedef struct PackFile_ConstTable {
     PackFile_Segment           base;
     opcode_t                   const_count;

Modified: trunk/src/packfile.c
==============================================================================
--- trunk/src/packfile.c	Sat Dec 26 20:46:41 2009	(r43252)
+++ trunk/src/packfile.c	Sat Dec 26 21:41:28 2009	(r43253)
@@ -4038,11 +4038,8 @@
 
     while (components-- > 0) {
         opcode_t       type       = PF_fetch_opcode(pf, &cursor);
-        const opcode_t slice_bits = type & PF_VT_SLICE_BITS;
         opcode_t        op;
 
-        type &= ~PF_VT_SLICE_BITS;
-
         if (tail) {
             SETATTR_Key_next_key(interp, tail, constant_pmc_new(interp, pmc_enum));
             GETATTR_Key_next_key(interp, tail, tail);


More information about the parrot-commits mailing list