Author: leo
Date: Mon Oct 10 08:17:12 2005
New Revision: 9432

Modified:
   trunk/include/parrot/sub.h
Log:
Variable-sized reg frames 2 - adapt sub and coro structure

* make room for n_regs_used in sub structures
* remove (unused) enclosing_sub - this is dynamic, a sub can be called
  from different callers even at the same time


Modified: trunk/include/parrot/sub.h
==============================================================================
--- trunk/include/parrot/sub.h  (original)
+++ trunk/include/parrot/sub.h  Mon Oct 10 08:17:12 2005
@@ -60,9 +60,9 @@ typedef struct Parrot_sub {
     PMC      *name_space;       /* where this Sub is in */
     STRING   *name;             /* name of the sub */
     PMC      *multi_signature;  /* list of types for MMD */
+    INTVAL   n_regs_used[4];   /* INSP in PBC */
 
     PMC      *lexicals;         /* OrderedHash of Lexicals */
-    PMC      *enclosing_sub;    /* enclosing subroutine, to find lexicals */
 
     /* - end common */
 
@@ -84,9 +84,9 @@ typedef struct Parrot_coro {
     PMC      *name_space;       /* where this Sub is in */
     STRING   *name;             /* name of the sub */
     PMC      *multi_signature;  /* list of types for MMD */
+    INTVAL   n_regs_used[4];   /* INSP in PBC */
 
     PMC      *lexicals;         /* OrderedHash of Lexicals */
-    PMC      *enclosing_sub;    /* enclosing subroutine, to find lexicals */
 
     /* - end common */
 

Reply via email to