final void onEnter(EventContext context, VirtualFrame frame) { try { innerOnEnter(context, frame); } catch (Throwable t) { if (!seenException) { CompilerDirectives.transferToInterpreterAndInvalidate(); seenException = true; } if (binding.isLanguageBinding()) { throw t; } else { CompilerDirectives.transferToInterpreter(); failEventForInstrumentation(binding, "onEnter", t); } } if (next != null) { next.onEnter(context, frame); } }
/** * Should get invoked before the node is invoked. * * @param frame the current frame of the execution. */ public void onEnter(VirtualFrame frame) { if (lazyUpdate(frame)) { chain.onEnter(context, frame); } }