@Retention(value=RUNTIME)
@Target(value={METHOD,CONSTRUCTOR})
public static @interface HostCompilerDirectives.BytecodeInterpreterSwitch
Marks a method that is an implementation of a Truffle interpreter, and which should receive
additional optimization budget.
This annotation is used to annotate the root method of a bytecode interpreter, and it hints
the compiler to invest extra effort into optimizing such methods. Language implementers are
advised to inspect the IR of the interpreter when using this.
- Since:
- 21.0
- See Also:
to control the boundaries of inlining