Class JSArrayToDenseObjectArrayNode

java.lang.Object
com.oracle.truffle.api.nodes.Node
com.oracle.truffle.js.nodes.JavaScriptBaseNode
com.oracle.truffle.js.nodes.array.JSArrayToDenseObjectArrayNode
All Implemented Interfaces:
com.oracle.truffle.api.nodes.NodeInterface, Cloneable

public abstract class JSArrayToDenseObjectArrayNode extends JavaScriptBaseNode
Converts a JS array to an Object[]. If the array is sparse or has holes, it is compacted to a dense array that consists of only actual elements. Note that this node assumes that the array has only fast own elements and no prototype elements. Used by Array.prototype.sort.