• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /openjdk10/hotspot/src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.core.common/src/org/graalvm/compiler/core/common/

Lines Matching defs:to

16  * 2 along with this work; if not, write to the Free Software Foundation,
40 * Offsets used with {@link Unsafe} to access the fields.
92 * Function enabling an object field value to be replaced with another value when being copied
101 * Copies fields from {@code from} to {@code to}, both of which must be of the same type.
104 * @param to the object to which the fields should be copied
106 public void copy(Object from, Object to) {
107 copy(from, to, null);
111 * Copies fields from {@code from} to {@code to}, both of which must be of the same type.
114 * @param to the object to which the fields should be copied
115 * @param trans function to applied to object field values as they are copied. If {@code null},
118 public void copy(Object from, Object to, ObjectTransformer trans) {
119 assert from.getClass() == to.getClass();
125 UNSAFE.putInt(to, offset, UNSAFE.getInt(from, offset));
127 UNSAFE.putLong(to, offset, UNSAFE.getLong(from, offset));
129 UNSAFE.putBoolean(to, offset, UNSAFE.getBoolean(from, offset));
131 UNSAFE.putFloat(to, offset, UNSAFE.getFloat(from, offset));
133 UNSAFE.putDouble(to, offset, UNSAFE.getDouble(from, offset));
135 UNSAFE.putShort(to, offset, UNSAFE.getShort(from, offset));
137 UNSAFE.putChar(to, offset, UNSAFE.getChar(from, offset));
139 UNSAFE.putByte(to, offset, UNSAFE.getByte(from, offset));
145 UNSAFE.putObject(to, offset, trans == null ? obj : trans.apply(index, obj));
153 * @param object the object whose field is to be read
190 * @param object the object whose field is to be read
256 * @param index the index of the field to check
257 * @param value a value that will be assigned to the field