# HG changeset patch # User Thomas Wuerthinger # Date 1297865614 -3600 # Node ID eed52202caea7d3c3ae2c21d20c6ed861e3638da # Parent 9569fdf936ffd0dc775c084d84e6cb31da5d97ea Added parameter to array store exception runtime call (new in HotSpot). diff -r 9569fdf936ff -r eed52202caea c1x4hotspotsrc/HotSpotVM/src/com/sun/hotspot/c1x/HotSpotXirGenerator.java --- a/c1x4hotspotsrc/HotSpotVM/src/com/sun/hotspot/c1x/HotSpotXirGenerator.java Wed Feb 16 14:21:52 2011 +0100 +++ b/c1x4hotspotsrc/HotSpotVM/src/com/sun/hotspot/c1x/HotSpotXirGenerator.java Wed Feb 16 15:13:34 2011 +0100 @@ -996,6 +996,8 @@ asm.bindOutOfLine(slowStoreCheck); checkSubtype(asm, temp, valueHub, compHub); asm.jneq(store, temp, asm.w(0)); + XirOperand scratch = asm.createRegisterTemp("scratch", CiKind.Object, AMD64.r10); + asm.mov(scratch, valueHub); asm.callRuntime(config.throwArrayStoreException, null); asm.jmp(store); } @@ -1084,6 +1086,8 @@ asm.bindOutOfLine(slowStoreCheck); checkSubtype(asm, temp, valueHub, compHub); asm.jneq(store, temp, asm.w(0)); + XirOperand scratch = asm.createRegisterTemp("scratch", CiKind.Object, AMD64.r10); + asm.mov(scratch, valueHub); asm.callRuntime(config.throwArrayStoreException, null); asm.jmp(store); }