PR144 (aligned patchers on x86_64)
[cacao.git] / src / vm / jit / patcher-common.hpp
index 684b41c13a8c28f846aa398237af6ea390da78bd..1c6f7b7c62674f129e48f776817dc74cf20a7368 100644 (file)
@@ -1,6 +1,6 @@
 /* src/vm/jit/patcher-common.hpp - architecture independent code patching stuff
 
-   Copyright (C) 2007, 2008, 2009
+   Copyright (C) 1996-2011
    CACAOVM - Verein zur Foerderung der freien virtuellen Maschine CACAO
 
    This file is part of CACAO.
@@ -51,7 +51,8 @@ struct patchref_t {
        uintptr_t    mpc;           /* absolute position in code segment          */
        uintptr_t    datap;         /* absolute position in data segment          */
        int32_t      disp;          /* displacement of ref in the data segment    */
-       int32_t      disp_mb;       /* auxiliary code displacement (for membar)   */
+       int16_t      disp_mb;       /* auxiliary code displacement (for membar)   */
+       int16_t      patch_align;   /* auxiliary displacement for alignment       */
        functionptr  patcher;       /* patcher function to call                   */
        void*        ref;           /* reference passed                           */
        uint32_t     mcode;         /* machine code to be patched back in         */