@Override protected Object callProfiled(CallTarget target, Object... args) { return super.callProfiled(target, args); }
@Override protected DumpSupport dumpSupport() { return super.dumpSupport(); }
@Override protected EngineSupport engineSupport() { return super.engineSupport(); }
throw new IllegalStateException(); API = this.languageSupport(); } else if (simpleName.endsWith("Nodes")) { if (NODES != null) { throw new IllegalStateException(); NODES = this.nodes(); } else if (simpleName.endsWith("InstrumentHandler")) { if (INSTRUMENTHANDLER != null) { throw new IllegalStateException(); INSTRUMENTHANDLER = this.instrumentSupport(); } else if (simpleName.endsWith("Frames")) { if (FRAMES != null) { throw new IllegalStateException(); FRAMES = this.framesSupport(); } else if (simpleName.endsWith("SourceAccessor")) { SOURCE = this.sourceSupport(); } else if (simpleName.endsWith("DumpAccessor")) { DUMP = this.dumpSupport(); } else if (simpleName.endsWith("InteropAccessor")) { INTEROP = this.interopSupport(); } else if (simpleName.endsWith("ScopeAccessor")) { SPI = this.engineSupport();
API = this.languageSupport(); } else if (this.getClass().getSimpleName().endsWith("Nodes")) { if (NODES != null) { throw new IllegalStateException(); NODES = this.nodes(); } else if (this.getClass().getSimpleName().endsWith("InstrumentHandler")) { if (INSTRUMENTHANDLER != null) { throw new IllegalStateException(); INSTRUMENTHANDLER = this.instrumentSupport(); } else if (this.getClass().getSimpleName().endsWith("Frames")) { if (FRAMES != null) { throw new IllegalStateException(); FRAMES = this.framesSupport(); } else if (this.getClass().getSimpleName().endsWith("SourceAccessor")) { SOURCE = this; } else if (this.getClass().getSimpleName().endsWith("DumpAccessor")) { DUMP = this.dumpSupport(); } else if (this.getClass().getSimpleName().endsWith("JavaInteropAccessor")) { JAVAINTEROP = this.javaInteropSupport(); } else if (this.getClass().getSimpleName().endsWith("InteropAccessor")) { INTEROP = this.interopSupport(); } else if (this.getClass().getSimpleName().endsWith("ScopeAccessor")) { SPI = this.engineSupport();
protected <T> T getOrCreateRuntimeData(RootNode rootNode, Supplier<T> constructor) { Objects.requireNonNull(constructor); final Accessor.Nodes nodesAccess = Accessor.nodesAccess(); final EngineSupport engineAccess = Accessor.engineAccess(); if (rootNode != null && nodesAccess != null && engineAccess != null) { final Object sourceVM = nodesAccess.getSourceVM(rootNode); if (sourceVM != null) { final T runtimeData = engineAccess.getOrCreateRuntimeData(sourceVM, constructor); if (runtimeData != null) { return runtimeData; } } } return getOrCreateFallbackEngineData(constructor); }
/** * Makes sure the <code>rootNode</code> is initialized. * * @param rootNode * @since 0.12 */ protected void onFirstExecution(RootNode rootNode) { final Accessor.InstrumentSupport accessor = Accessor.instrumentAccess(); if (accessor != null) { accessor.onFirstExecution(rootNode); } }
/** * Accessor for non-public state in {@link FrameDescriptor}. * * @since 0.14 */ protected boolean getFrameMaterializeCalled(FrameDescriptor descriptor) { return Accessor.framesAccess().getMaterializeCalled(descriptor); }
/** * Invoked when a call target is invoked to find out its option values. * {@link OptionValues#getDescriptors()} must match the value returned by * {@link #getCompilerOptionDescriptors()}. * * @since 0.27 */ protected OptionValues getCompilerOptionValues(RootNode rootNode) { EngineSupport engine = Accessor.engineAccess(); return engine != null ? engine.getCompilerOptionValues(rootNode) : null; }
@Override protected OptionDescriptors getCompilerOptions() { return super.getCompilerOptions(); }
@Override protected void initializeProfile(CallTarget target, Class<?>[] argmentTypes) { super.initializeProfile(target, argmentTypes); }
@Override protected InstrumentSupport instrumentSupport() { return super.instrumentSupport(); }
@Override protected Frames framesSupport() { return super.framesSupport(); }
protected <T> T getOrCreateRuntimeData(RootNode rootNode, Supplier<T> constructor) { Objects.requireNonNull(constructor); final Accessor.Nodes nodesAccess = Accessor.nodesAccess(); final EngineSupport engineAccess = Accessor.engineAccess(); if (rootNode != null && nodesAccess != null && engineAccess != null) { final Object sourceVM = nodesAccess.getSourceVM(rootNode); if (sourceVM != null) { final T runtimeData = engineAccess.getOrCreateRuntimeData(sourceVM, constructor); if (runtimeData != null) { return runtimeData; } } } return getOrCreateFallbackEngineData(constructor); }
/** * Reports when a new root node is loaded into the system. * * @since 0.15 */ protected void onLoad(RootNode rootNode) { InstrumentSupport support = Accessor.instrumentAccess(); if (support != null) { support.onLoad(rootNode); } }
/** * Accessor for non-public state in {@link FrameDescriptor}. * * @since 0.14 */ protected void markFrameMaterializeCalled(FrameDescriptor descriptor) { Accessor.framesAccess().markMaterializeCalled(descriptor); }
/** * Invoked when a call target is invoked to find out its option values. * {@link OptionValues#getDescriptors()} must match the value returned by * {@link #getCompilerOptionDescriptors()}. * * @since 0.27 */ protected OptionValues getCompilerOptionValues(RootNode rootNode) { EngineSupport engine = Accessor.engineAccess(); return engine != null ? engine.getCompilerOptionValues(rootNode) : null; }
@Override protected OptionDescriptors getCompilerOptions() { return super.getCompilerOptions(); }
@Override protected void initializeProfile(CallTarget target, Class<?>[] argmentTypes) { super.initializeProfile(target, argmentTypes); }
@Override protected InstrumentSupport instrumentSupport() { return super.instrumentSupport(); }