Exemplo n.º 1
0
 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);
   }
 }
Exemplo n.º 2
0
 /**
  * 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);
   }
 }