public final class AllocationSnippets extends SubstrateTemplates implements org.graalvm.compiler.replacements.Snippets
Modifier and Type | Class and Description |
---|---|
protected class |
AllocationSnippets.ArraysCopyOfLowering |
protected class |
AllocationSnippets.DynamicNewArrayLowering |
protected class |
AllocationSnippets.DynamicNewInstanceLowering |
protected class |
AllocationSnippets.FormatArrayLowering |
protected class |
AllocationSnippets.FormatObjectLowering |
protected class |
AllocationSnippets.NewArrayLowering |
protected class |
AllocationSnippets.NewInstanceLowering |
protected class |
AllocationSnippets.NewMultiArrayLowering |
Modifier and Type | Field and Description |
---|---|
static Object[] |
ALLOCATION_LOCATION_IDENTITIES |
Modifier and Type | Method and Description |
---|---|
static void |
addCounterArgs(org.graalvm.compiler.replacements.SnippetTemplate.Arguments args,
org.graalvm.compiler.nodes.ValueNode node,
jdk.vm.ci.meta.ResolvedJavaType type) |
static Object |
arraysCopyOfSnippet(DynamicHub hub,
Object original,
int originalLength,
int newLength,
AllocationCounter counter) |
static Object |
dynamicNewArraySnippet(DynamicHub elementType,
int length,
boolean fillContents,
AllocationCounter counter) |
static Object |
dynamicNewInstanceSnippet(DynamicHub hub,
boolean fillContents,
AllocationCounter counter) |
static Object |
fastNewArray(DynamicHub hub,
int length,
int layoutEncoding,
boolean fillContents,
AllocationCounter counter) |
static Object |
formatArraySnippet(org.graalvm.compiler.word.Word memory,
DynamicHub hub,
int length,
boolean rememberedSet,
boolean unaligned) |
static Object |
formatObjectSnippet(org.graalvm.compiler.word.Word memory,
DynamicHub hub,
boolean rememberedSet) |
static Object |
newArraySnippet(DynamicHub hub,
int length,
int layoutEncoding,
boolean fillContents,
AllocationCounter counter) |
static Object |
newInstance(DynamicHub hub,
int encoding,
boolean constantSize,
boolean fillContents,
AllocationCounter counter) |
static Object |
newMultiArraySnippet(DynamicHub hub,
int rank,
int[] dimensions,
AllocationCounter counter) |
static void |
registerForeignCalls(RuntimeConfiguration runtimeConfig,
org.graalvm.compiler.phases.util.Providers providers,
org.graalvm.compiler.api.replacements.SnippetReflectionProvider snippetReflection,
Map<SnippetRuntime.SubstrateForeignCallDescriptor,SubstrateForeignCallLinkage> foreignCalls,
boolean hosted) |
static void |
registerLowerings(org.graalvm.compiler.options.OptionValues options,
Iterable<org.graalvm.compiler.debug.DebugHandlersFactory> factories,
org.graalvm.compiler.phases.util.Providers providers,
org.graalvm.compiler.api.replacements.SnippetReflectionProvider snippetReflection,
Map<Class<? extends org.graalvm.compiler.graph.Node>,NodeLoweringProvider<?>> lowerings) |
static Object |
staticNewInstanceSnippet(DynamicHub hub,
int encoding,
boolean fillContents,
AllocationCounter counter) |
snippet, snippet, snippet, snippet
public static final Object[] ALLOCATION_LOCATION_IDENTITIES
public static Object newInstance(DynamicHub hub, int encoding, boolean constantSize, boolean fillContents, AllocationCounter counter)
public static Object staticNewInstanceSnippet(DynamicHub hub, int encoding, boolean fillContents, AllocationCounter counter)
public static Object dynamicNewInstanceSnippet(DynamicHub hub, boolean fillContents, AllocationCounter counter) throws InstantiationException
InstantiationException
public static Object newArraySnippet(DynamicHub hub, int length, int layoutEncoding, boolean fillContents, AllocationCounter counter)
public static Object fastNewArray(DynamicHub hub, int length, int layoutEncoding, boolean fillContents, AllocationCounter counter)
public static Object dynamicNewArraySnippet(DynamicHub elementType, int length, boolean fillContents, AllocationCounter counter)
public static Object formatObjectSnippet(org.graalvm.compiler.word.Word memory, DynamicHub hub, boolean rememberedSet)
public static Object formatArraySnippet(org.graalvm.compiler.word.Word memory, DynamicHub hub, int length, boolean rememberedSet, boolean unaligned)
public static Object newMultiArraySnippet(DynamicHub hub, int rank, int[] dimensions, AllocationCounter counter)
public static Object arraysCopyOfSnippet(DynamicHub hub, Object original, int originalLength, int newLength, AllocationCounter counter)
public static void registerForeignCalls(RuntimeConfiguration runtimeConfig, org.graalvm.compiler.phases.util.Providers providers, org.graalvm.compiler.api.replacements.SnippetReflectionProvider snippetReflection, Map<SnippetRuntime.SubstrateForeignCallDescriptor,SubstrateForeignCallLinkage> foreignCalls, boolean hosted)
public static void registerLowerings(org.graalvm.compiler.options.OptionValues options, Iterable<org.graalvm.compiler.debug.DebugHandlersFactory> factories, org.graalvm.compiler.phases.util.Providers providers, org.graalvm.compiler.api.replacements.SnippetReflectionProvider snippetReflection, Map<Class<? extends org.graalvm.compiler.graph.Node>,NodeLoweringProvider<?>> lowerings)
public static void addCounterArgs(org.graalvm.compiler.replacements.SnippetTemplate.Arguments args, org.graalvm.compiler.nodes.ValueNode node, jdk.vm.ci.meta.ResolvedJavaType type)