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

public abstract static class DynamicObject.UpdateShapeNode extends Node
Ensures the object's shape is up-to-date.
Since:
25.1
See Also:
  • Method Details

    • execute

      public abstract boolean execute(DynamicObject receiver)
      Ensures the object's shape is up-to-date. If the object's shape has been marked as invalid, this method will attempt to bring the object into a valid shape again. If the object's shape is already valid, 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:
      true if the object's shape was changed, otherwise false.
    • create

      public static DynamicObject.UpdateShapeNode create()
      Since:
      25.1
    • getUncached

      public static DynamicObject.UpdateShapeNode getUncached()
      Since:
      25.1