* src/vm/jit/jit.h (VAROP): New macro for accessing variable operands.
authoredwin <none@none>
Thu, 14 Sep 2006 18:16:06 +0000 (18:16 +0000)
committeredwin <none@none>
Thu, 14 Sep 2006 18:16:06 +0000 (18:16 +0000)
(VAR): New macro for getting a variable from a varindex.

--HG--
branch : unified_variables

src/vm/jit/jit.h

index 11ba8a2522000ecdf089b86156e39610664b5ddd..0e0d5c3150fcee6174804a74e25c1a771e232542 100644 (file)
@@ -30,7 +30,7 @@
    Changes: Christian Thalinger
                        Edwin Steiner
 
-   $Id: jit.h 5460 2006-09-11 00:30:21Z edwin $
+   $Id: jit.h 5491 2006-09-14 18:16:06Z edwin $
 
 */
 
@@ -174,6 +174,17 @@ struct jitdata {
     ((jd)->flags & JITDATA_FLAG_VERBOSECALL)
 
 
+/* macros for accessing variables *********************************************
+   Use VAROP for s1, s2, s3 and dst operands (eg. VAROP(iptr->s1)),
+   use VAR if you have the variable index (eg. VAR(iptr->sx.s23.s2.args[0])).
+
+******************************************************************************/
+
+#define VAROP(v) (jd->var + (v).varindex)
+#define VAR(i)   (jd->var + (i))
+
+
 /* stack element structure ****************************************************/
 
 /* flags */