if no mptr was specified and the call is dynamically dispatched.
* src/vm/jit/sparc64/md.c: Likewise.
* src/vm/jit/alpha/md.c: Likewise.
* src/vm/jit/mips/md.c: Likewise.
* src/vm/jit/i386/md.c: Likewise.
* src/vm/jit/powerpc64/md.c: Likewise.
* src/vm/jit/x86_64/md.c: Likewise.
Christian Thalinger
Edwin Steiner
- $Id: md.c 5948 2006-11-11 16:56:48Z twisti $
+ $Id: md.c 6140 2006-12-07 22:45:09Z edwin $
*/
if ((mcode >> 16) == 0xa77c) {
/* in this case we use the passed method pointer */
+ /* return NULL if no mptr was specified (used for replacement) */
+
+ if (mptr == NULL)
+ return NULL;
+
pa = mptr + offset;
} else {
Authors: Christian Thalinger
Edwin Steiner
- $Id: md.c 5962 2006-11-12 13:39:50Z edwin $
+ $Id: md.c 6140 2006-12-07 22:45:09Z edwin $
*/
else if (mcode == 0xd2) {
/* INVOKEVIRTUAL/INTERFACE */
+ /* return NULL if no mptr was specified (used for replacement) */
+
+ if (mptr == NULL)
+ return NULL;
+
/* Get the offset from the instruction (the offset address is
4-bytes before the call instruction). */
Changes: Edwin Steiner
- $Id: md.c 5929 2006-11-06 17:13:40Z twisti $
+ $Id: md.c 6140 2006-12-07 22:45:09Z edwin $
*/
#endif
/* in this case we use the passed method pointer */
+ /* return NULL if no mptr was specified (used for replacement) */
+
+ if (mptr == NULL)
+ return NULL;
+
pa = mptr + offset;
}
else {
Authors: Christian Thalinger
Edwin Steiner
- $Id: md.c 5942 2006-11-09 10:52:34Z twisti $
+ $Id: md.c 6140 2006-12-07 22:45:09Z edwin $
*/
} else if ((mcode >> 16) == 0x81ac) {
/* in this case we use the passed method pointer */
+ /* return NULL if no mptr was specified (used for replacement) */
+
+ if (mptr == NULL)
+ return NULL;
+
pa = mptr + offset;
} else {
Changes: Edwin Steiner
- $Id: md.c 5940 2006-11-09 09:59:28Z tbfg $
+ $Id: md.c 6140 2006-12-07 22:45:09Z edwin $
*/
} else if ((mcode >> 16) == 0xe9cc) {
/* in this case we use the passed method pointer */
+ /* return NULL if no mptr was specified (used for replacement) */
+
+ if (mptr == NULL)
+ return NULL;
+
pa = mptr + offset;
} else {
if (mcode_masked == 0x0602c5) {
/* in this case we use the passed method pointer */
+ /* return NULL if no mptr was specified (used for replacement) */
+
+ if (mptr == NULL)
+ return NULL;
+
pa = mptr + offset;
} else {
Changes: Edwin Steiner
- $Id: md.c 5944 2006-11-10 12:32:01Z twisti $
+ $Id: md.c 6140 2006-12-07 22:45:09Z edwin $
*/
else if (mcode == 0xd3) {
/* INVOKEVIRTUAL/INTERFACE */
+ /* return NULL if no mptr was specified (used for replacement) */
+
+ if (mptr == NULL)
+ return NULL;
+
/* Get the offset from the instruction (the offset address is
4-bytes before the call instruction). */