use of com.oracle.truffle.espresso.impl.Field in project graal by oracle.
the class JniEnv method SetStaticCharField.
@JniImpl
public void SetStaticCharField(@SuppressWarnings("unused") @JavaType(Class.class) StaticObject unused, @Handle(Field.class) long fieldId, char val) {
Field field = fieldIds.getObject(fieldId);
assert field.isStatic();
field.set(field.getDeclaringKlass().tryInitializeAndGetStatics(), val);
}
use of com.oracle.truffle.espresso.impl.Field in project graal by oracle.
the class JniEnv method SetObjectField.
// endregion SetStatic*Field
// region Set*Field
@JniImpl
public void SetObjectField(@JavaType(Object.class) StaticObject obj, @Handle(Field.class) long fieldId, @JavaType(Object.class) StaticObject val) {
Field field = fieldIds.getObject(fieldId);
field.set(obj, val);
}
use of com.oracle.truffle.espresso.impl.Field in project graal by oracle.
the class JniEnv method SetStaticLongField.
@JniImpl
public void SetStaticLongField(@SuppressWarnings("unused") @JavaType(Class.class) StaticObject unused, @Handle(Field.class) long fieldId, long val) {
Field field = fieldIds.getObject(fieldId);
assert field.isStatic();
field.set(field.getDeclaringKlass().tryInitializeAndGetStatics(), val);
}
use of com.oracle.truffle.espresso.impl.Field in project graal by oracle.
the class JniEnv method SetByteField.
@JniImpl
public void SetByteField(@JavaType(Object.class) StaticObject obj, @Handle(Field.class) long fieldId, byte val) {
Field field = fieldIds.getObject(fieldId);
field.set(obj, val);
}
use of com.oracle.truffle.espresso.impl.Field in project graal by oracle.
the class JniEnv method SetShortField.
@JniImpl
public void SetShortField(@JavaType(Object.class) StaticObject obj, @Handle(Field.class) long fieldId, short val) {
Field field = fieldIds.getObject(fieldId);
field.set(obj, val);
}
Aggregations