private MaterializedFrame initGlobalFrame() { VirtualFrame frame = Truffle.getRuntime().createVirtualFrame(null, this.globalFrameDescriptor); addGlobalFunctions(frame); return frame.materialize(); }
/** * Forces OSR compilation for this loop. */ public final void forceOSR() { baseLoopCount = getThreshold(); RootNode rootNode = getRootNode(); VirtualFrame dummyFrame = Truffle.getRuntime().createVirtualFrame(new Object[0], rootNode != null ? rootNode.getFrameDescriptor() : new FrameDescriptor()); compileLoop(dummyFrame); }