public abstract class JSIsArrayNode extends JavaScriptBaseNode
IsArrayNode
Modifier and Type | Field and Description |
---|---|
protected static int |
MAX_JSCLASS_COUNT |
protected static int |
MAX_SHAPE_COUNT |
Modifier | Constructor and Description |
---|---|
protected |
JSIsArrayNode(boolean jsType) |
Modifier and Type | Method and Description |
---|---|
static JSIsArrayNode |
createIsArray() |
static JSIsArrayNode |
createIsArrayLike() |
protected boolean |
doForeign(Object object,
com.oracle.truffle.api.interop.InteropLibrary interop) |
protected static boolean |
doIsArrayJSClass(com.oracle.truffle.api.object.DynamicObject object,
JSClass cachedClass,
boolean cachedIsArray,
boolean cachedIsProxy) |
protected static boolean |
doIsArrayShape(com.oracle.truffle.api.object.DynamicObject object,
com.oracle.truffle.api.object.Shape cachedShape,
boolean cachedIsJSObject,
boolean cachedIsArray,
boolean cachedIsProxy) |
protected boolean |
doJSArray(com.oracle.truffle.api.object.DynamicObject object) |
protected boolean |
doJSObject(com.oracle.truffle.api.object.DynamicObject object) |
protected boolean |
doJSProxy(com.oracle.truffle.api.object.DynamicObject object) |
protected boolean |
doNotObject(Object object) |
abstract boolean |
execute(Object operand) |
copy, onReplace
accept, adoptChildren, atomic, atomic, deepCopy, getChildren, getCost, getDebugProperties, getDescription, getEncapsulatingSourceSection, getLock, getParent, getRootNode, getSourceSection, insert, insert, isAdoptable, isSafelyReplaceableBy, lookupContextReference, lookupLanguageReference, notifyInserted, replace, replace, reportPolymorphicSpecialize, toString
protected static final int MAX_SHAPE_COUNT
protected static final int MAX_JSCLASS_COUNT
public abstract boolean execute(Object operand)
protected static boolean doIsArrayShape(com.oracle.truffle.api.object.DynamicObject object, com.oracle.truffle.api.object.Shape cachedShape, boolean cachedIsJSObject, boolean cachedIsArray, boolean cachedIsProxy)
protected static boolean doIsArrayJSClass(com.oracle.truffle.api.object.DynamicObject object, JSClass cachedClass, boolean cachedIsArray, boolean cachedIsProxy)
protected boolean doJSArray(com.oracle.truffle.api.object.DynamicObject object)
protected boolean doJSProxy(com.oracle.truffle.api.object.DynamicObject object)
protected boolean doJSObject(com.oracle.truffle.api.object.DynamicObject object)
protected boolean doNotObject(Object object)
protected boolean doForeign(Object object, com.oracle.truffle.api.interop.InteropLibrary interop)
public static JSIsArrayNode createIsArrayLike()
public static JSIsArrayNode createIsArray()