public class NewArrayStub extends SnippetStub
Modifier and Type | Field and Description |
---|---|
static ForeignCallDescriptor |
NEW_ARRAY_C |
method, SnippetGraphUnderConstruction
code, compResult, linkage, providers
Constructor and Description |
---|
NewArrayStub(HotSpotProviders providers,
HotSpotForeignCallLinkage linkage) |
Modifier and Type | Method and Description |
---|---|
private static boolean |
logging() |
protected Object[] |
makeConstArgs() |
private static Object |
newArray(KlassPointer hub,
int length,
KlassPointer intArrayHub,
Register threadRegister)
Re-attempts allocation after an initial TLAB allocation failed or was skipped (e.g., due to
-XX:-UseTLAB).
|
static void |
newArrayC(ForeignCallDescriptor newArrayC,
Word thread,
KlassPointer hub,
int length) |
checkConstArg, debugScopeContext, getConstantParameterValue, getGraph, getInstalledCodeOwner, toString
getCode, getCompilationResult, getDestroyedRegisters, getLinkage, getRegisterConfig, getStubs, initDestroyedRegisters, preservesRegisters
public static final ForeignCallDescriptor NEW_ARRAY_C
public NewArrayStub(HotSpotProviders providers, HotSpotForeignCallLinkage linkage)
protected Object[] makeConstArgs()
makeConstArgs
in class SnippetStub
private static boolean logging()
private static Object newArray(KlassPointer hub, int length, KlassPointer intArrayHub, Register threadRegister)
hub
- the hub of the object to be allocatedlength
- the length of the arrayintArrayHub
- the hub for int[].class
public static void newArrayC(ForeignCallDescriptor newArrayC, Word thread, KlassPointer hub, int length)