Two ICMD_PUT{STATIC,FIELD}CONST bugfixes.
authortwisti <none@none>
Wed, 30 Mar 2005 20:18:18 +0000 (20:18 +0000)
committertwisti <none@none>
Wed, 30 Mar 2005 20:18:18 +0000 (20:18 +0000)
src/vm/jit/stack.c

index 03962e29060bdcf6c257444a0f0d29f41b94c47a..d205b990c505edb978cb23d6ad2ee5184a375c3c 100644 (file)
@@ -29,7 +29,7 @@
    Changes: Edwin Steiner
             Christian Thalinger
 
-   $Id: stack.c 2046 2005-03-20 14:43:04Z edwin $
+   $Id: stack.c 2163 2005-03-30 20:18:18Z twisti $
 
 */
 
@@ -953,16 +953,17 @@ methodinfo *analyse_stack(methodinfo *m, codegendata *cd, registerdata *rd)
                                                                        break;
                                                                case ICMD_PUTSTATIC:
                                                                        iptr[0].opc = ICMD_PUTSTATICCONST;
+                                                                       iptr[0].op1 = TYPE_ADR;
                                                                        SETDST;
                                                                        break;
                                                                case ICMD_PUTFIELD:
                                                                        iptr[0].opc = ICMD_PUTFIELDCONST;
+                                                                       iptr[0].op1 = TYPE_ADR;
                                                                        OP1_0(TYPE_ADR);
                                                                        break;
                                                                }
 
                                                                iptr[1].opc = ICMD_NOP;
-                                                               iptr[0].op1 = TYPE_ADR;
                                                                COUNT(count_pcmd_op);
                                                                break;
 
@@ -2561,7 +2562,7 @@ void show_icmd(instruction *iptr, bool deadcode)
 
        case ICMD_PUTSTATICCONST:
        case ICMD_PUTFIELDCONST:
-               switch (iptr[1].opc) {
+               switch (iptr[1].op1) {
                case TYPE_INT:
                        printf(" %d,", iptr->val.i);
                        break;