Class TypeNode.WriteFrameSlotTypeNode

    • Field Detail

      • slot

        protected int slot
    • Constructor Detail

      • WriteFrameSlotTypeNode

        protected WriteFrameSlotTypeNode​(com.oracle.truffle.api.source.SourceSection sourceSection)
    • Method Detail

      • getFrameSlotKind

        public final com.oracle.truffle.api.frame.FrameSlotKind getFrameSlotKind()
        Specified by:
        getFrameSlotKind in class TypeNode
      • initWriteSlotNode

        public TypeNode initWriteSlotNode​(int slot)
        Description copied from class: TypeNode
        Initializes this node's frame slot. Called if this node is a function/method parameter type. Kept separate from constructor so that TypeNode.TypeAliasTypeNode can initialize frame slot of its cloned child node.
        Specified by:
        initWriteSlotNode in class TypeNode
      • executeAndSet

        public final void executeAndSet​(com.oracle.truffle.api.frame.VirtualFrame frame,
                                        java.lang.Object value)
        Description copied from class: TypeNode
        Checks if `value` conforms to this type. If so, sets `slot` to `value`. Otherwise, throws a `VmTypeMismatchException`.
        Specified by:
        executeAndSet in class TypeNode