Package org.qbicc.interpreter.memory
Class ShortArrayMemory
java.lang.Object
org.qbicc.interpreter.memory.ShortArrayMemory
- All Implemented Interfaces:
Memory
A memory region which is backed by a
short array which can be directly accessed.-
Method Summary
Modifier and TypeMethodDescriptionclone()intcompareAndExchange16(long index, int expect, int update, ReadAccessMode readMode, WriteAccessMode writeMode) intcompareAndExchange32(long index, int expect, int update, ReadAccessMode readMode, WriteAccessMode writeMode) longcompareAndExchange64(long index, long expect, long update, ReadAccessMode readMode, WriteAccessMode writeMode) intcompareAndExchange8(long index, int expect, int update, ReadAccessMode readMode, WriteAccessMode writeMode) compareAndExchangePointer(long index, Pointer expect, Pointer update, ReadAccessMode readMode, WriteAccessMode writeMode) compareAndExchangeRef(long index, VmObject expect, VmObject update, ReadAccessMode readMode, WriteAccessMode writeMode) compareAndExchangeType(long index, ValueType expect, ValueType update, ReadAccessMode readMode, WriteAccessMode writeMode) copy(long newSize) short[]getArray()longgetSize()intload16(long index, ReadAccessMode mode) intload32(long index, ReadAccessMode mode) longload64(long index, ReadAccessMode mode) intload8(long index, ReadAccessMode mode) loadPointer(long index, ReadAccessMode mode) loadRef(long index, ReadAccessMode mode) loadType(long index, ReadAccessMode mode) voidstore16(long index, int value, WriteAccessMode mode) voidstore32(long index, int value, WriteAccessMode mode) voidstore64(long index, long value, WriteAccessMode mode) voidstore8(long index, int value, WriteAccessMode mode) voidstoreMemory(long destIndex, byte[] src, int srcIndex, int size) voidstoreMemory(long destIndex, Memory src, long srcIndex, long size) voidstorePointer(long index, Pointer value, WriteAccessMode mode) voidstoreRef(long index, VmObject value, WriteAccessMode mode) voidstoreType(long index, ValueType value, WriteAccessMode mode) Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.qbicc.interpreter.Memory
getAndAdd16, getAndAdd32, getAndAdd64, getAndAdd8, getAndBitwiseAnd16, getAndBitwiseAnd32, getAndBitwiseAnd64, getAndBitwiseAnd8, getAndBitwiseNand16, getAndBitwiseNand32, getAndBitwiseNand64, getAndBitwiseNand8, getAndBitwiseOr16, getAndBitwiseOr32, getAndBitwiseOr64, getAndBitwiseOr8, getAndBitwiseXor16, getAndBitwiseXor32, getAndBitwiseXor64, getAndBitwiseXor8, getAndSet16, getAndSet32, getAndSet64, getAndSet8, getAndSetMaxSigned16, getAndSetMaxSigned32, getAndSetMaxSigned64, getAndSetMaxSigned8, getAndSetMaxUnsigned16, getAndSetMaxUnsigned32, getAndSetMaxUnsigned64, getAndSetMaxUnsigned8, getAndSetMinSigned16, getAndSetMinSigned32, getAndSetMinSigned64, getAndSetMinSigned8, getAndSetMinUnsigned16, getAndSetMinUnsigned32, getAndSetMinUnsigned64, getAndSetMinUnsigned8, getAndSetPointer, getAndSetRef, getAndSetType, loadDouble, loadFloat, store32, storeDouble, storeFloat
-
Method Details
-
getArray
public short[] getArray() -
load8
-
load16
-
load32
-
load64
-
loadRef
-
loadType
-
loadPointer
- Specified by:
loadPointerin interfaceMemory
-
store8
-
store16
-
store32
-
store64
-
storeRef
-
storeType
-
storePointer
- Specified by:
storePointerin interfaceMemory
-
storeMemory
- Specified by:
storeMemoryin interfaceMemory
-
storeMemory
public void storeMemory(long destIndex, byte[] src, int srcIndex, int size) - Specified by:
storeMemoryin interfaceMemory
-
compareAndExchange8
public int compareAndExchange8(long index, int expect, int update, ReadAccessMode readMode, WriteAccessMode writeMode) - Specified by:
compareAndExchange8in interfaceMemory
-
compareAndExchange16
public int compareAndExchange16(long index, int expect, int update, ReadAccessMode readMode, WriteAccessMode writeMode) - Specified by:
compareAndExchange16in interfaceMemory
-
compareAndExchange32
public int compareAndExchange32(long index, int expect, int update, ReadAccessMode readMode, WriteAccessMode writeMode) - Specified by:
compareAndExchange32in interfaceMemory
-
compareAndExchange64
public long compareAndExchange64(long index, long expect, long update, ReadAccessMode readMode, WriteAccessMode writeMode) - Specified by:
compareAndExchange64in interfaceMemory
-
compareAndExchangeRef
public VmObject compareAndExchangeRef(long index, VmObject expect, VmObject update, ReadAccessMode readMode, WriteAccessMode writeMode) - Specified by:
compareAndExchangeRefin interfaceMemory
-
compareAndExchangeType
public ValueType compareAndExchangeType(long index, ValueType expect, ValueType update, ReadAccessMode readMode, WriteAccessMode writeMode) - Specified by:
compareAndExchangeTypein interfaceMemory
-
compareAndExchangePointer
public Pointer compareAndExchangePointer(long index, Pointer expect, Pointer update, ReadAccessMode readMode, WriteAccessMode writeMode) - Specified by:
compareAndExchangePointerin interfaceMemory
-
copy
-
clone
-
cloneZeroed
- Specified by:
cloneZeroedin interfaceMemory
-
getSize
public long getSize()
-