class HotSpotWordOperationPlugin extends WordOperationPlugin
WordOperationPlugin
to handle HotSpot word
operations.InlineInvokePlugin.InlineInfo
snippetReflection, wordKind, wordTypes
Constructor and Description |
---|
HotSpotWordOperationPlugin(SnippetReflectionProvider snippetReflection,
HotSpotWordTypes wordTypes) |
Modifier and Type | Method and Description |
---|---|
protected LoadIndexedNode |
createLoadIndexedNode(ValueNode array,
ValueNode index) |
boolean |
handleInvoke(GraphBuilderContext b,
ResolvedJavaMethod method,
ValueNode[] args)
Processes a call to a method if it is annotated with
Word.Operation by adding nodes to the
graph being built that implement the denoted operation. |
protected void |
processHotSpotWordOperation(GraphBuilderContext b,
ResolvedJavaMethod method,
ValueNode[] args,
HotSpotOperation operation) |
(package private) HotSpotWordTypes |
wordTypes() |
canChangeStackKind, convert, createStoreIndexedNode, fromSigned, fromUnsigned, getWordTypes, handleCheckCast, handleInstanceOf, handleLoadField, handleLoadIndexed, handleLoadStaticField, handleStoreIndexed, interceptParameter, makeAddress, notifyNotInlined, processWordOperation, readOp, readOp, toUnsigned, writeOp
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
handleStoreField, handleStoreStaticField
notifyAfterInline, notifyBeforeInline, shouldInlineInvoke
public HotSpotWordOperationPlugin(SnippetReflectionProvider snippetReflection, HotSpotWordTypes wordTypes)
HotSpotWordTypes wordTypes()
protected LoadIndexedNode createLoadIndexedNode(ValueNode array, ValueNode index)
createLoadIndexedNode
in class WordOperationPlugin
public boolean handleInvoke(GraphBuilderContext b, ResolvedJavaMethod method, ValueNode[] args)
WordOperationPlugin
Word.Operation
by adding nodes to the
graph being built that implement the denoted operation.handleInvoke
in interface NodePlugin
handleInvoke
in class WordOperationPlugin
b
- the contextmethod
- the statically bound, invoked methodargs
- the arguments of the method invocationtrue
iff method
is annotated with Word.Operation
(and was thus
processed by this method)protected void processHotSpotWordOperation(GraphBuilderContext b, ResolvedJavaMethod method, ValueNode[] args, HotSpotOperation operation)