public abstract class SnippetStub extends Stub implements Snippets
Modifier and Type | Field and Description |
---|---|
protected ResolvedJavaMethod |
method |
static ThreadLocal<StructuredGraph> |
SnippetGraphUnderConstruction |
code, compResult, linkage, providers
Constructor and Description |
---|
SnippetStub(Class<? extends Snippets> snippetDeclaringClass,
String snippetMethodName,
HotSpotProviders providers,
HotSpotForeignCallLinkage linkage)
Creates a new snippet stub.
|
SnippetStub(String snippetMethodName,
HotSpotProviders providers,
HotSpotForeignCallLinkage linkage)
Creates a new snippet stub.
|
Modifier and Type | Method and Description |
---|---|
private static boolean |
assertionsEnabled() |
protected boolean |
checkConstArg(int index,
String expectedName) |
protected Object |
debugScopeContext()
Gets a context object for the debug scope created when producing the code for this stub.
|
protected Object |
getConstantParameterValue(int index,
String name) |
protected StructuredGraph |
getGraph()
Gets the graph that from which the code for this stub will be compiled.
|
ResolvedJavaMethod |
getInstalledCodeOwner()
Gets the method the stub's code will be associated with once installed.
|
protected Object[] |
makeConstArgs() |
String |
toString() |
getCode, getCompilationResult, getDestroyedRegisters, getLinkage, getRegisterConfig, getStubs, initDestroyedRegisters, preservesRegisters
protected final ResolvedJavaMethod method
public static final ThreadLocal<StructuredGraph> SnippetGraphUnderConstruction
public SnippetStub(String snippetMethodName, HotSpotProviders providers, HotSpotForeignCallLinkage linkage)
snippetMethodName
- name of the single Snippet
annotated method in the class of
this objectlinkage
- linkage details for a call to the stubpublic SnippetStub(Class<? extends Snippets> snippetDeclaringClass, String snippetMethodName, HotSpotProviders providers, HotSpotForeignCallLinkage linkage)
private static boolean assertionsEnabled()
protected StructuredGraph getGraph()
Stub
protected boolean checkConstArg(int index, String expectedName)
protected Object[] makeConstArgs()
protected Object getConstantParameterValue(int index, String name)
protected Object debugScopeContext()
Stub
debugScopeContext
in class Stub
public ResolvedJavaMethod getInstalledCodeOwner()
Stub
getInstalledCodeOwner
in class Stub