Class SimpleArrayList<E>
java.lang.Object
com.oracle.truffle.js.runtime.util.SimpleArrayList<E>
A simple array-based quasi list. Prepared for use-cases in Graal/Truffle to avoid
TruffleBoundaries.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(E e, com.oracle.truffle.api.nodes.Node node, com.oracle.truffle.api.profiles.InlinedBranchProfile growProfile) voidaddUncached(E e) voidaddUnchecked(E e) static <E> SimpleArrayList<E> create(long maxAssumedLength) static <E> SimpleArrayList<E> get(int index) pop()voidintsize()Object[]toArray()<T> T[]toArray(T[] a) toString()
-
Constructor Details
-
SimpleArrayList
public SimpleArrayList() -
SimpleArrayList
public SimpleArrayList(int capacity)
-
-
Method Details
-
create
-
createEmpty
-
add
public void add(E e, com.oracle.truffle.api.nodes.Node node, com.oracle.truffle.api.profiles.InlinedBranchProfile growProfile) -
addUncached
-
addUnchecked
-
get
-
set
-
pop
-
size
public int size() -
toArray
-
toArray
public <T> T[] toArray(T[] a) -
toString
-