Enum OpcodeDispatcher.DispatchResult

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      ATHROW
      An athrow was executed; the thrown reference is on the stack and needs handler lookup.
      BRANCH
      Control transfers to the branch target the dispatcher left on the context.
      CHECKCAST
      A cast check was performed; the dispatcher already applied it, so no follow-up is needed.
      CONSTANT_DYNAMIC
      A dynamic constant was loaded and the interpreter must run its bootstrap method to produce the value.
      CONTINUE
      The instruction finished in place and the program counter already advanced; nothing more is owed by the interpreter.
      FIELD_GET
      A field read is pending and must be serviced against the heap before execution resumes.
      FIELD_PUT
      A field write is pending and must be serviced against the heap before execution resumes.
      INSTANCEOF
      A type test was performed; the dispatcher already pushed its result.
      INVOKE
      A call was reached; the interpreter must resolve the target and push a new frame.
      INVOKE_DYNAMIC
      An invokedynamic call site was reached; the interpreter must link it through its bootstrap method before the call can proceed.
      METHOD_HANDLE
      A method handle constant was loaded and the interpreter must materialize it from the handle info left on the context.
      METHOD_TYPE
      A MethodType constant was loaded and the interpreter must materialize it from the descriptor left on the context.
      NEW_ARRAY
      An array must be allocated, covering the primitive, reference, and multi-dimensional forms; the dimension counts are left on the context.
      NEW_OBJECT
      An instance must be allocated for the pending new, before its constructor runs.
      RETURN
      The current frame completes and hands its return value, if any, to the caller.
      THROW
      The interpreter must raise an exception it detected itself, such as a division by zero, rather than one the code threw explicitly.
    • Enum Constant Detail

      • CONTINUE

        public static final OpcodeDispatcher.DispatchResult CONTINUE
        The instruction finished in place and the program counter already advanced; nothing more is owed by the interpreter.
      • INVOKE_DYNAMIC

        public static final OpcodeDispatcher.DispatchResult INVOKE_DYNAMIC
        An invokedynamic call site was reached; the interpreter must link it through its bootstrap method before the call can proceed.
      • CONSTANT_DYNAMIC

        public static final OpcodeDispatcher.DispatchResult CONSTANT_DYNAMIC
        A dynamic constant was loaded and the interpreter must run its bootstrap method to produce the value.
      • METHOD_HANDLE

        public static final OpcodeDispatcher.DispatchResult METHOD_HANDLE
        A method handle constant was loaded and the interpreter must materialize it from the handle info left on the context.
      • METHOD_TYPE

        public static final OpcodeDispatcher.DispatchResult METHOD_TYPE
        A MethodType constant was loaded and the interpreter must materialize it from the descriptor left on the context.
      • THROW

        public static final OpcodeDispatcher.DispatchResult THROW
        The interpreter must raise an exception it detected itself, such as a division by zero, rather than one the code threw explicitly.
      • ATHROW

        public static final OpcodeDispatcher.DispatchResult ATHROW
        An athrow was executed; the thrown reference is on the stack and needs handler lookup.
      • FIELD_GET

        public static final OpcodeDispatcher.DispatchResult FIELD_GET
        A field read is pending and must be serviced against the heap before execution resumes.
      • FIELD_PUT

        public static final OpcodeDispatcher.DispatchResult FIELD_PUT
        A field write is pending and must be serviced against the heap before execution resumes.
      • NEW_OBJECT

        public static final OpcodeDispatcher.DispatchResult NEW_OBJECT
        An instance must be allocated for the pending new, before its constructor runs.
      • NEW_ARRAY

        public static final OpcodeDispatcher.DispatchResult NEW_ARRAY
        An array must be allocated, covering the primitive, reference, and multi-dimensional forms; the dimension counts are left on the context.
      • CHECKCAST

        public static final OpcodeDispatcher.DispatchResult CHECKCAST
        A cast check was performed; the dispatcher already applied it, so no follow-up is needed.
    • Method Detail

      • values

        public static OpcodeDispatcher.DispatchResult[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (OpcodeDispatcher.DispatchResult c : OpcodeDispatcher.DispatchResult.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static OpcodeDispatcher.DispatchResult valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null