Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.dynjs.runtime;
 
 
 
 public class CompilableBasicBlock extends BasicBlockDelegate {
     
     private AtomicInteger counter = new AtomicInteger();
    private String grist;
    public CompilableBasicBlock(JITBasicBlockCompiler compilerString gristBasicBlock initial) {
        super(initial);
        this. = grist;
        this. = compiler;
    }
    
    @Override
    public Completion call(ExecutionContext context) {
        if ( .incrementAndGet() == 5 ) {
            enqueueCompilationRequest(context);
        }
        return super.call(context);
    }
    
    public String getGrist() {
        return this.;
    }
    
    protected void enqueueCompilationRequest(ExecutionContext context) {
        this..requestJitCompilationcontextthis );
    }
    
    
New to GrepCode? Check out our FAQ X