# HG changeset patch # User Doug Simon # Date 1433535416 -7200 # Node ID 70990d30ace3ce00a0049024795244224fef99dc # Parent 14011021636ea231b4bf45b21d50677784aab1c8 added missing word operation annotations to MetaspacePointer Contributed-by: Igor Veresov diff -r 14011021636e -r 70990d30ace3 graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/word/MetaspacePointer.java --- a/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/word/MetaspacePointer.java Fri Jun 05 18:38:24 2015 +0200 +++ b/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/word/MetaspacePointer.java Fri Jun 05 22:16:56 2015 +0200 @@ -288,6 +288,7 @@ * @param locationIdentity the identity of the write (see {@link LocationNode}) * @param val the value to be written to memory */ + @Operation(opcode = Opcode.WRITE_POINTER) public abstract void writeByte(WordBase offset, byte val, LocationIdentity locationIdentity); /** @@ -302,6 +303,7 @@ * @param locationIdentity the identity of the write (see {@link LocationNode}) * @param val the value to be written to memory */ + @Operation(opcode = Opcode.WRITE_POINTER) public abstract void writeChar(WordBase offset, char val, LocationIdentity locationIdentity); /** @@ -316,6 +318,7 @@ * @param locationIdentity the identity of the write (see {@link LocationNode}) * @param val the value to be written to memory */ + @Operation(opcode = Opcode.WRITE_POINTER) public abstract void writeShort(WordBase offset, short val, LocationIdentity locationIdentity); /** @@ -330,6 +333,7 @@ * @param locationIdentity the identity of the write (see {@link LocationNode}) * @param val the value to be written to memory */ + @Operation(opcode = Opcode.WRITE_POINTER) public abstract void writeInt(WordBase offset, int val, LocationIdentity locationIdentity); /** @@ -344,6 +348,7 @@ * @param locationIdentity the identity of the write (see {@link LocationNode}) * @param val the value to be written to memory */ + @Operation(opcode = Opcode.WRITE_POINTER) public abstract void writeLong(WordBase offset, long val, LocationIdentity locationIdentity); /** @@ -358,6 +363,7 @@ * @param locationIdentity the identity of the write (see {@link LocationNode}) * @param val the value to be written to memory */ + @Operation(opcode = Opcode.WRITE_POINTER) public abstract void writeFloat(WordBase offset, float val, LocationIdentity locationIdentity); /** @@ -372,6 +378,7 @@ * @param locationIdentity the identity of the write (see {@link LocationNode}) * @param val the value to be written to memory */ + @Operation(opcode = Opcode.WRITE_POINTER) public abstract void writeDouble(WordBase offset, double val, LocationIdentity locationIdentity); /** @@ -386,6 +393,7 @@ * @param locationIdentity the identity of the write (see {@link LocationNode}) * @param val the value to be written to memory */ + @Operation(opcode = Opcode.WRITE_POINTER) public abstract void writeWord(WordBase offset, WordBase val, LocationIdentity locationIdentity); /** @@ -400,6 +408,7 @@ * @param locationIdentity the identity of the write (see {@link LocationNode}) * @param val the value to be written to memory */ + @Operation(opcode = Opcode.INITIALIZE) public abstract void initializeLong(WordBase offset, long val, LocationIdentity locationIdentity); /** @@ -414,6 +423,7 @@ * @param locationIdentity the identity of the write (see {@link LocationNode}) * @param val the value to be written to memory */ + @Operation(opcode = Opcode.WRITE_POINTER) public abstract void writeObject(WordBase offset, Object val, LocationIdentity locationIdentity); /** @@ -424,6 +434,7 @@ * @param locationIdentity the identity of the write (see {@link LocationNode}) * @param val the value to be written to memory */ + @Operation(opcode = Opcode.WRITE_POINTER) public abstract void writeByte(int offset, byte val, LocationIdentity locationIdentity); /** @@ -434,6 +445,7 @@ * @param locationIdentity the identity of the write (see {@link LocationNode}) * @param val the value to be written to memory */ + @Operation(opcode = Opcode.WRITE_POINTER) public abstract void writeChar(int offset, char val, LocationIdentity locationIdentity); /** @@ -444,6 +456,7 @@ * @param locationIdentity the identity of the write (see {@link LocationNode}) * @param val the value to be written to memory */ + @Operation(opcode = Opcode.WRITE_POINTER) public abstract void writeShort(int offset, short val, LocationIdentity locationIdentity); /** @@ -454,6 +467,7 @@ * @param locationIdentity the identity of the write (see {@link LocationNode}) * @param val the value to be written to memory */ + @Operation(opcode = Opcode.WRITE_POINTER) public abstract void writeInt(int offset, int val, LocationIdentity locationIdentity); /** @@ -464,6 +478,7 @@ * @param locationIdentity the identity of the write (see {@link LocationNode}) * @param val the value to be written to memory */ + @Operation(opcode = Opcode.WRITE_POINTER) public abstract void writeLong(int offset, long val, LocationIdentity locationIdentity); /** @@ -474,6 +489,7 @@ * @param locationIdentity the identity of the write (see {@link LocationNode}) * @param val the value to be written to memory */ + @Operation(opcode = Opcode.WRITE_POINTER) public abstract void writeFloat(int offset, float val, LocationIdentity locationIdentity); /** @@ -484,6 +500,7 @@ * @param locationIdentity the identity of the write (see {@link LocationNode}) * @param val the value to be written to memory */ + @Operation(opcode = Opcode.WRITE_POINTER) public abstract void writeDouble(int offset, double val, LocationIdentity locationIdentity); /** @@ -494,6 +511,7 @@ * @param locationIdentity the identity of the write (see {@link LocationNode}) * @param val the value to be written to memory */ + @Operation(opcode = Opcode.WRITE_POINTER) public abstract void writeWord(int offset, WordBase val, LocationIdentity locationIdentity); /** @@ -504,6 +522,7 @@ * @param locationIdentity the identity of the write (see {@link LocationNode}) * @param val the value to be written to memory */ + @Operation(opcode = Opcode.INITIALIZE) public abstract void initializeLong(int offset, long val, LocationIdentity locationIdentity); /** @@ -514,6 +533,7 @@ * @param locationIdentity the identity of the write (see {@link LocationNode}) * @param val the value to be written to memory */ + @Operation(opcode = Opcode.WRITE_POINTER) public abstract void writeObject(int offset, Object val, LocationIdentity locationIdentity); /** @@ -527,6 +547,7 @@ * @param offset the signed offset for the memory access * @return the result of the memory access */ + @Operation(opcode = Opcode.READ_POINTER) public abstract byte readByte(WordBase offset); /** @@ -540,6 +561,7 @@ * @param offset the signed offset for the memory access * @return the result of the memory access */ + @Operation(opcode = Opcode.READ_POINTER) public abstract char readChar(WordBase offset); /** @@ -553,6 +575,7 @@ * @param offset the signed offset for the memory access * @return the result of the memory access */ + @Operation(opcode = Opcode.READ_POINTER) public abstract short readShort(WordBase offset); /** @@ -566,6 +589,7 @@ * @param offset the signed offset for the memory access * @return the result of the memory access */ + @Operation(opcode = Opcode.READ_POINTER) public abstract int readInt(WordBase offset); /** @@ -579,6 +603,7 @@ * @param offset the signed offset for the memory access * @return the result of the memory access */ + @Operation(opcode = Opcode.READ_POINTER) public abstract long readLong(WordBase offset); /** @@ -592,6 +617,7 @@ * @param offset the signed offset for the memory access * @return the result of the memory access */ + @Operation(opcode = Opcode.READ_POINTER) public abstract float readFloat(WordBase offset); /** @@ -605,6 +631,7 @@ * @param offset the signed offset for the memory access * @return the result of the memory access */ + @Operation(opcode = Opcode.READ_POINTER) public abstract double readDouble(WordBase offset); /** @@ -618,6 +645,7 @@ * @param offset the signed offset for the memory access * @return the result of the memory access */ + @Operation(opcode = Opcode.READ_POINTER) public abstract Word readWord(WordBase offset); /** @@ -631,6 +659,7 @@ * @param offset the signed offset for the memory access * @return the result of the memory access */ + @Operation(opcode = Opcode.READ_POINTER) public abstract Object readObject(WordBase offset); /** @@ -646,6 +675,7 @@ * @param barrierType the type of the read barrier to be added * @return the result of the memory access */ + @Operation(opcode = Opcode.READ_POINTER) public abstract Object readObject(WordBase offset, BarrierType barrierType); /** @@ -655,6 +685,7 @@ * @param offset the signed offset for the memory access * @return the result of the memory access */ + @Operation(opcode = Opcode.READ_POINTER) public abstract byte readByte(int offset); /** @@ -664,6 +695,7 @@ * @param offset the signed offset for the memory access * @return the result of the memory access */ + @Operation(opcode = Opcode.READ_POINTER) public abstract char readChar(int offset); /** @@ -673,6 +705,7 @@ * @param offset the signed offset for the memory access * @return the result of the memory access */ + @Operation(opcode = Opcode.READ_POINTER) public abstract short readShort(int offset); /** @@ -682,6 +715,7 @@ * @param offset the signed offset for the memory access * @return the result of the memory access */ + @Operation(opcode = Opcode.READ_POINTER) public abstract int readInt(int offset); /** @@ -691,6 +725,7 @@ * @param offset the signed offset for the memory access * @return the result of the memory access */ + @Operation(opcode = Opcode.READ_POINTER) public abstract long readLong(int offset); /** @@ -700,6 +735,7 @@ * @param offset the signed offset for the memory access * @return the result of the memory access */ + @Operation(opcode = Opcode.READ_POINTER) public abstract float readFloat(int offset); /** @@ -709,6 +745,7 @@ * @param offset the signed offset for the memory access * @return the result of the memory access */ + @Operation(opcode = Opcode.READ_POINTER) public abstract double readDouble(int offset); /** @@ -718,6 +755,7 @@ * @param offset the signed offset for the memory access * @return the result of the memory access */ + @Operation(opcode = Opcode.READ_POINTER) public abstract Word readWord(int offset); /** @@ -727,6 +765,7 @@ * @param offset the signed offset for the memory access * @return the result of the memory access */ + @Operation(opcode = Opcode.READ_POINTER) public abstract Object readObject(int offset); /** @@ -738,6 +777,7 @@ * @param barrierType the type of the read barrier to be added * @return the result of the memory access */ + @Operation(opcode = Opcode.READ_POINTER) public abstract Object readObject(int offset, BarrierType barrierType); /** @@ -751,6 +791,7 @@ * @param offset the signed offset for the memory access * @param val the value to be written to memory */ + @Operation(opcode = Opcode.WRITE_POINTER) public abstract void writeByte(WordBase offset, byte val); /** @@ -764,6 +805,7 @@ * @param offset the signed offset for the memory access * @param val the value to be written to memory */ + @Operation(opcode = Opcode.WRITE_POINTER) public abstract void writeChar(WordBase offset, char val); /** @@ -777,6 +819,7 @@ * @param offset the signed offset for the memory access * @param val the value to be written to memory */ + @Operation(opcode = Opcode.WRITE_POINTER) public abstract void writeShort(WordBase offset, short val); /** @@ -790,6 +833,7 @@ * @param offset the signed offset for the memory access * @param val the value to be written to memory */ + @Operation(opcode = Opcode.WRITE_POINTER) public abstract void writeInt(WordBase offset, int val); /** @@ -803,6 +847,7 @@ * @param offset the signed offset for the memory access * @param val the value to be written to memory */ + @Operation(opcode = Opcode.WRITE_POINTER) public abstract void writeLong(WordBase offset, long val); /** @@ -816,6 +861,7 @@ * @param offset the signed offset for the memory access * @param val the value to be written to memory */ + @Operation(opcode = Opcode.WRITE_POINTER) public abstract void writeFloat(WordBase offset, float val); /** @@ -829,6 +875,7 @@ * @param offset the signed offset for the memory access * @param val the value to be written to memory */ + @Operation(opcode = Opcode.WRITE_POINTER) public abstract void writeDouble(WordBase offset, double val); /** @@ -842,6 +889,7 @@ * @param offset the signed offset for the memory access * @param val the value to be written to memory */ + @Operation(opcode = Opcode.WRITE_POINTER) public abstract void writeWord(WordBase offset, WordBase val); /** @@ -855,6 +903,7 @@ * @param offset the signed offset for the memory access * @param val the value to be written to memory */ + @Operation(opcode = Opcode.WRITE_POINTER) public abstract void writeObject(WordBase offset, Object val); /** @@ -864,6 +913,7 @@ * @param offset the signed offset for the memory access * @param val the value to be written to memory */ + @Operation(opcode = Opcode.WRITE_POINTER) public abstract void writeByte(int offset, byte val); /** @@ -873,6 +923,7 @@ * @param offset the signed offset for the memory access * @param val the value to be written to memory */ + @Operation(opcode = Opcode.WRITE_POINTER) public abstract void writeChar(int offset, char val); /** @@ -882,6 +933,7 @@ * @param offset the signed offset for the memory access * @param val the value to be written to memory */ + @Operation(opcode = Opcode.WRITE_POINTER) public abstract void writeShort(int offset, short val); /** @@ -891,6 +943,7 @@ * @param offset the signed offset for the memory access * @param val the value to be written to memory */ + @Operation(opcode = Opcode.WRITE_POINTER) public abstract void writeInt(int offset, int val); /** @@ -900,6 +953,7 @@ * @param offset the signed offset for the memory access * @param val the value to be written to memory */ + @Operation(opcode = Opcode.WRITE_POINTER) public abstract void writeLong(int offset, long val); /** @@ -909,6 +963,7 @@ * @param offset the signed offset for the memory access * @param val the value to be written to memory */ + @Operation(opcode = Opcode.WRITE_POINTER) public abstract void writeFloat(int offset, float val); /** @@ -918,6 +973,7 @@ * @param offset the signed offset for the memory access * @param val the value to be written to memory */ + @Operation(opcode = Opcode.WRITE_POINTER) public abstract void writeDouble(int offset, double val); /** @@ -927,6 +983,7 @@ * @param offset the signed offset for the memory access * @param val the value to be written to memory */ + @Operation(opcode = Opcode.WRITE_POINTER) public abstract void writeWord(int offset, WordBase val); /** @@ -936,5 +993,6 @@ * @param offset the signed offset for the memory access * @param val the value to be written to memory */ + @Operation(opcode = Opcode.WRITE_POINTER) public abstract void writeObject(int offset, Object val); }