* src/vm/jit/arm/codegen.c (codegen_emit): Moved ICMD_POP and
authorChristian Thalinger <twisti@complang.tuwien.ac.at>
Mon, 22 Oct 2007 13:19:41 +0000 (15:19 +0200)
committerChristian Thalinger <twisti@complang.tuwien.ac.at>
Mon, 22 Oct 2007 13:19:41 +0000 (15:19 +0200)
ICMD_POP2 to ICMD_NOP case.

src/vm/jit/arm/codegen.c

index 21cb0d0ab625c0538ace7f05b9a44c418ff9b3e3..d27d81e61a7cab2a4d375d1e389392ee036ed809 100644 (file)
@@ -385,12 +385,15 @@ bool codegen_emit(jitdata *jd)
 
                        MCODECHECK(64);   /* an instruction usually needs < 64 words      */
 
-                       /* the big switch */
-                       switch (iptr->opc) {
-               case ICMD_NOP:        /* ... ==> ...                                  */
+               /* the big switch */
+               switch (iptr->opc) {
+
+               case ICMD_NOP:        /* ...  ==> ...                                 */
+               case ICMD_POP:        /* ..., value  ==> ...                          */
+               case ICMD_POP2:       /* ..., value, value  ==> ...                   */
                        break;
 
-       /* constant operations ************************************************/
+               /* constant operations ************************************************/
 
                case ICMD_ICONST:     /* ...  ==> ..., constant                       */
 
@@ -468,19 +471,11 @@ bool codegen_emit(jitdata *jd)
                        break;
 
                case ICMD_ASTORE:
+
                        if (!(iptr->flags.bits & INS_FLAG_RETADDR))
                                emit_copy(jd, iptr);
                        break;
 
-               /* pop operations *****************************************************/
-
-               /* attention: double and longs are only one entry in CACAO ICMDs      */
-
-               case ICMD_POP:        /* ..., value  ==> ...                          */
-               case ICMD_POP2:       /* ..., value, value  ==> ...                   */
-
-                       break;
-
 
                /* integer operations *************************************************/