retrieve line number information
[cacao.git] / src / vm / jit / jit.h
index c59ba67bab468d7c4a081a22c19318d77c304d0f..d72017db9875fe578c93eb29a078db4f25c1e477 100644 (file)
@@ -29,7 +29,7 @@
 
    Changes: Christian Thalinger
 
-   $Id: jit.h 938 2004-03-06 00:56:43Z twisti $
+   $Id: jit.h 941 2004-03-06 17:27:56Z jowenn $
 
 */
 
@@ -110,9 +110,10 @@ struct instruction {
        u2  opc;                    /* opcode of intermediate code command        */
        s4  op1;                    /* first operand, usually variable number     */
        imm_union val;              /* immediate constant                         */
-       void *target;                           /* used for targets of branches and jumps         */
-                                                               /* and as address for list of targets for         */
-                                                               /* statements                                                             */
+       void *target;                   /* used for targets of branches and jumps         */
+                                       /* and as address for list of targets for         */
+                                       /* statements                                   */
+       u2 line                         /* line number in source file */
 };
 
 
@@ -895,6 +896,8 @@ extern int maxstack;            /* maximal JavaVM stack size                  */
 extern int maxlocals;           /* maximal number of local JavaVM variables   */
 extern int jcodelength;         /* length of JavaVM-codes                     */
 extern u1 *jcode;               /* pointer to start of JavaVM-code            */
+lineinfo *jlinenumbers;         /* line information array                     */
+u2 jlinenumbercount;            /* number of entries in the linenumber array  */
 extern int exceptiontablelength;/* length of exception table                  */
 extern xtable *extable;         /* pointer to start of exception table        */
 extern exceptiontable *raw_extable;