harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dlyd...@apache.org
Subject svn commit: r565164 - /harmony/enhanced/sandbox/bootjvm/bootJVM/jvm/src/jvmreg.h
Date Sun, 12 Aug 2007 21:50:26 GMT
Author: dlydick
Date: Sun Aug 12 14:50:25 2007
New Revision: 565164

URL: http://svn.apache.org/viewvc?view=rev&rev=565164
Log:
Corrected frame access of local vars by 1 word.

(Parenthesized) several expressions for clarity.

Modified:
    harmony/enhanced/sandbox/bootjvm/bootJVM/jvm/src/jvmreg.h

Modified: harmony/enhanced/sandbox/bootjvm/bootJVM/jvm/src/jvmreg.h
URL: http://svn.apache.org/viewvc/harmony/enhanced/sandbox/bootjvm/bootJVM/jvm/src/jvmreg.h?view=diff&rev=565164&r1=565163&r2=565164
==============================================================================
--- harmony/enhanced/sandbox/bootjvm/bootJVM/jvm/src/jvmreg.h (original)
+++ harmony/enhanced/sandbox/bootjvm/bootJVM/jvm/src/jvmreg.h Sun Aug 12 14:50:25 2007
@@ -166,19 +166,19 @@
                                     JVMREG_STACK_LS_HEIGHT)
 
 /*! Offsets from current FP of local storage size word */
-#define JVMREG_STACK_LS_OFFSET JVMREG_STACK_LS_HEIGHT
+#define JVMREG_STACK_LS_OFFSET (JVMREG_STACK_LS_HEIGHT)
 
 /*! Offsets from current FP of garbage collection pointer */
-#define JVMREG_STACK_GC_OFFSET JVMREG_STACK_LS_OFFSET \
-                               + JVMREG_STACK_GC_HEIGHT
+#define JVMREG_STACK_GC_OFFSET (JVMREG_STACK_LS_OFFSET \
+                                + JVMREG_STACK_GC_HEIGHT)
 
 /*! Offsets from current FP of old frame pointer */
-#define JVMREG_STACK_FP_OFFSET JVMREG_STACK_GC_OFFSET \
-                               + JVMREG_STACK_FP_HEIGHT
+#define JVMREG_STACK_FP_OFFSET (JVMREG_STACK_GC_OFFSET \
+                                + JVMREG_STACK_FP_HEIGHT)
 
 /*! Offsets from current FP of program counter */
-#define JVMREG_STACK_PC_OFFSET JVMREG_STACK_FP_OFFSET \
-                               + JVMREG_STACK_PC_HEIGHT
+#define JVMREG_STACK_PC_OFFSET (JVMREG_STACK_FP_OFFSET \
+                                + JVMREG_STACK_PC_HEIGHT)
 
 /*!
  * Offsets from current FP of top of stack frame,
@@ -551,7 +551,7 @@
     (GET_FP(thridx) + JVMREG_STACK_FP_OFFSET)
 
 #define JVMREG_FRAME_CURRENT_LOCAL_VAR_AREA(thridx) \
-    (GET_FP(thridx) /* + 1 */ - \
+    (GET_FP(thridx) + 1 - \
      STACK(thridx, JVMREG_FRAME_CURRENT_LOCAL_STORAGE_SIZE(thridx)))
 
 /*@} */ /* End of grouped definitions */



Mime
View raw message