* src/vm/jit/stack.c (DUP_SLOT): Removed code for direct coalescing.
authoredwin <none@none>
Sun, 10 Sep 2006 11:20:40 +0000 (11:20 +0000)
committeredwin <none@none>
Sun, 10 Sep 2006 11:20:40 +0000 (11:20 +0000)
(DUP coalescing will be done in simplereg, probably.)

--HG--
branch : unified_variables

src/vm/jit/stack.c

index f1a605a15274205b481f4fea6718301fdce3e35d..9d21c6fa6a4d0c36f575f9d48ed2c5041012edec 100644 (file)
@@ -30,7 +30,7 @@
             Christian Thalinger
             Christian Ullrich
 
-   $Id: stack.c 5452 2006-09-09 22:33:32Z edwin $
+   $Id: stack.c 5454 2006-09-10 11:20:40Z edwin $
 
 */
 
@@ -406,24 +406,11 @@ struct stackdata_t {
 
 /* macros for DUP elimination ***************************************/
 
-/* XXX turn off coalescing */
-#if 0
 #define DUP_SLOT(sp)                                                 \
     do {                                                             \
-        if ((sp)->varkind != TEMPVAR) {                              \
             GET_NEW_VAR(sd, new_index, (sp)->type);                  \
             NEWSTACK((sp)->type, TEMPVAR, new_index);                \
-        }                                                            \
-        else                                                         \
-            NEWSTACK((sp)->type, (sp)->varkind, (sp)->varnum);       \
     } while(0)
-#else
-#define DUP_SLOT(sp)                                                 \
-    do {                                                             \
-            GET_NEW_VAR(sd, new_index, (sp)->type);                  \
-            NEWSTACK((sp)->type, TEMPVAR, new_index);                \
-    } while(0)
-#endif
 
 /* does not check input stackdepth */
 #define MOVE_UP(sp)                                                  \