Class DynamicObject.UpdateShapeNode
java.lang.Object
com.oracle.truffle.api.nodes.Node
com.oracle.truffle.api.object.DynamicObject.UpdateShapeNode
- All Implemented Interfaces:
NodeInterface, Cloneable
- Enclosing class:
DynamicObject
Ensures the object's shape is up-to-date.
- Since:
- 25.1
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class Node
Node.Child, Node.Children -
Method Summary
Modifier and TypeMethodDescriptioncreate()abstract booleanexecute(DynamicObject receiver) Ensures the object's shape is up-to-date.Methods inherited from class Node
accept, adoptChildren, atomic, atomic, copy, deepCopy, getChildren, getCost, getDebugProperties, getDescription, getEncapsulatingSourceSection, getLock, getParent, getRootNode, getSourceSection, insert, insert, isAdoptable, isSafelyReplaceableBy, notifyInserted, onReplace, replace, replace, reportPolymorphicSpecialize, reportReplace, toString
-
Method Details
-
execute
Ensures the object's shape is up-to-date. If the object's shape has been marked asinvalid, this method will attempt to bring the object into a valid shape again. If the object's shape is alreadyvalid, this method will have no effect.This method does not need to be called normally; all the messages in this library will work on invalid shapes as well, but it can be useful in some cases to avoid such shapes being cached which can cause unnecessary cache polymorphism and invalidations.
- Returns:
trueif the object's shape was changed, otherwisefalse.
-
create
- Since:
- 25.1
-
getUncached
- Since:
- 25.1
-