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