public abstract class JSArrayFactory extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
JSArrayFactory(JSContext context) |
| Modifier and Type | Method and Description |
|---|---|
com.oracle.truffle.api.object.DynamicObject |
createWithPrototype(JSRealm realm,
com.oracle.truffle.api.object.DynamicObject prototype,
ScriptArray arrayType,
Object array,
ArrayAllocationSite site,
long length,
int usedLength,
int indexOffset,
int arrayOffset,
int holeCount) |
com.oracle.truffle.api.object.DynamicObject |
createWithRealm(JSRealm realm,
ScriptArray arrayType,
Object array,
ArrayAllocationSite site,
long length,
int usedLength,
int indexOffset,
int arrayOffset,
int holeCount) |
protected abstract com.oracle.truffle.api.object.DynamicObject |
getPrototype(JSRealm realm) |
protected abstract com.oracle.truffle.api.object.Shape |
getShape(JSRealm realm,
com.oracle.truffle.api.object.DynamicObject prototype) |
protected boolean |
isInObjectProto() |
protected com.oracle.truffle.api.object.DynamicObject |
newInstance(com.oracle.truffle.api.object.Shape shape,
ScriptArray arrayType,
Object array,
ArrayAllocationSite site,
long length,
int usedLength,
int indexOffset,
int arrayOffset,
int holeCount) |
protected void |
setPrototype(com.oracle.truffle.api.object.DynamicObject obj,
com.oracle.truffle.api.object.DynamicObject prototype) |
protected final JSContext context
protected JSArrayFactory(JSContext context)
public final com.oracle.truffle.api.object.DynamicObject createWithRealm(JSRealm realm, ScriptArray arrayType, Object array, ArrayAllocationSite site, long length, int usedLength, int indexOffset, int arrayOffset, int holeCount)
public final com.oracle.truffle.api.object.DynamicObject createWithPrototype(JSRealm realm, com.oracle.truffle.api.object.DynamicObject prototype, ScriptArray arrayType, Object array, ArrayAllocationSite site, long length, int usedLength, int indexOffset, int arrayOffset, int holeCount)
protected com.oracle.truffle.api.object.DynamicObject newInstance(com.oracle.truffle.api.object.Shape shape,
ScriptArray arrayType,
Object array,
ArrayAllocationSite site,
long length,
int usedLength,
int indexOffset,
int arrayOffset,
int holeCount)
protected abstract com.oracle.truffle.api.object.DynamicObject getPrototype(JSRealm realm)
protected abstract com.oracle.truffle.api.object.Shape getShape(JSRealm realm, com.oracle.truffle.api.object.DynamicObject prototype)
protected final void setPrototype(com.oracle.truffle.api.object.DynamicObject obj,
com.oracle.truffle.api.object.DynamicObject prototype)
protected final boolean isInObjectProto()