public abstract class SnippetStub extends Stub implements Snippets
| Modifier and Type | Field and Description |
|---|---|
protected ResolvedJavaMethod |
method |
| Constructor and Description |
|---|
SnippetStub(Class<? extends Snippets> snippetDeclaringClass,
String snippetMethodName,
OptionValues options,
HotSpotProviders providers,
HotSpotForeignCallLinkage linkage)
Creates a new snippet stub.
|
SnippetStub(String snippetMethodName,
OptionValues options,
HotSpotProviders providers,
HotSpotForeignCallLinkage linkage)
Creates a new snippet stub.
|
| Modifier and Type | Method and Description |
|---|---|
protected StructuredGraph |
buildInitialGraph(DebugContext debug,
CompilationIdentifier compilationId,
Object[] args,
BitSet nonNullParameters) |
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(DebugContext debug,
CompilationIdentifier compilationId)
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.
|
ResolvedJavaMethod |
getMethod() |
protected Object[] |
makeConstArgs(SnippetParameterInfo info) |
protected void |
registerSnippet() |
String |
toString() |
checkSafeDataReference, createLIRSuites, createSuites, getCode, getDestroyedCallerRegisters, getLinkage, getRegisterConfig, getStubCompilationId, initDestroyedCallerRegisters, shouldSaveRegistersAroundCallspublic SnippetStub(String snippetMethodName, OptionValues options, 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, OptionValues options, HotSpotProviders providers, HotSpotForeignCallLinkage linkage)
protected void registerSnippet()
protected StructuredGraph getGraph(DebugContext debug, CompilationIdentifier compilationId)
Stubprotected StructuredGraph buildInitialGraph(DebugContext debug, CompilationIdentifier compilationId, Object[] args, BitSet nonNullParameters)
protected Object[] makeConstArgs(SnippetParameterInfo info)
protected Object debugScopeContext()
StubdebugScopeContext in class Stubpublic ResolvedJavaMethod getInstalledCodeOwner()
StubgetInstalledCodeOwner in class Stubpublic ResolvedJavaMethod getMethod()