src/main/java/org/mvel2/optimizers/impl/asm/ASMAccessorOptimizer.java
private void _initJIT() {
    if (isAdvancedDebugging()) {
      buildLog = new StringAppender();
    }

    cw = new ClassWriter(ClassWriter.COMPUTE_MAXS + ClassWriter.COMPUTE_FRAMES);

    synchronized (Runtime.getRuntime()) {
      cw.visit(OPCODES_VERSION, Opcodes.ACC_PUBLIC + Opcodes.ACC_SUPER, className = "ASMAccessorImpl_"
          + valueOf(cw.hashCode()).replaceAll("\\-", "_") + (System.currentTimeMillis() / 10) +
          ((int) (Math.random() * 100)),
          null, "java/lang/Object", new String[]{NAMESPACE + "compiler/Accessor"});
    }

    MethodVisitor m = cw.visitMethod(ACC_PUBLIC, "<init>", "()V", null, null);

    m.visitCode();
    m.visitVarInsn(Opcodes.ALOAD, 0);
    m.visitMethodInsn(INVOKESPECIAL, "java/lang/Object",
        "<init>", "()V");
    m.visitInsn(RETURN);

    m.visitMaxs(1, 1);
    m.visitEnd();

    (mv = cw.visitMethod(ACC_PUBLIC, "getValue",
        "(Ljava/lang/Object;Ljava/lang/Object;L" + NAMESPACE
            + "integration/VariableResolverFactory;)Ljava/lang/Object;", null, null)).visitCode();
  }
/**
   * Does all the boilerplate for initiating the JIT.
   */
Does all the boilerplate for initiating the JIT.
Does all the boilerplate for initiating the JIT .
private void _initJIT() {
    if (isAdvancedDebugging()) {
      buildLog = new StringAppender();
    }
    cw = new ClassWriter(ClassWriter.COMPUTE_MAXS + ClassWriter.COMPUTE_FRAMES);
    synchronized (Runtime.getRuntime()) {
      cw.visit(OPCODES_VERSION, Opcodes.ACC_PUBLIC + Opcodes.ACC_SUPER, className = "ASMAccessorImpl_"
          + valueOf(cw.hashCode()).replaceAll("\\-", "_") + (System.currentTimeMillis() / 10) +
          ((int) (Math.random() * 100)),
          null, "java/lang/Object", new String[]{NAMESPACE + "compiler/Accessor"});
    }
    MethodVisitor m = cw.visitMethod(ACC_PUBLIC, "<init>", "()V", null, null);
    m.visitCode();
    m.visitVarInsn(Opcodes.ALOAD, 0);
    m.visitMethodInsn(INVOKESPECIAL, "java/lang/Object",
        "<init>", "()V");
    m.visitInsn(RETURN);
    m.visitMaxs(1, 1);
    m.visitEnd();
    (mv = cw.visitMethod(ACC_PUBLIC, "getValue",
        "(Ljava/lang/Object;Ljava/lang/Object;L" + NAMESPACE
            + "integration/VariableResolverFactory;)Ljava/lang/Object;", null, null)).visitCode();
  }
private void _initJIT ( ) { if ( isAdvancedDebugging ( ) ) { buildLog = new StringAppender ( ) ; } cw = new ClassWriter ( ClassWriter . COMPUTE_MAXS + ClassWriter . COMPUTE_FRAMES ) ; synchronized ( Runtime . getRuntime ( ) ) { cw . visit ( OPCODES_VERSION , Opcodes . ACC_PUBLIC + Opcodes . ACC_SUPER , className = "ASMAccessorImpl_" + valueOf ( cw . hashCode ( ) ) . replaceAll ( "\\-" , "_" ) + ( System . currentTimeMillis ( ) / 10 ) + ( ( int ) ( Math . random ( ) * 100 ) ) , null , "java/lang/Object" , new String [ ] { NAMESPACE + "compiler/Accessor" } ) ; } MethodVisitor m = cw . visitMethod ( ACC_PUBLIC , "<init>" , "()V" , null , null ) ; m . visitCode ( ) ; m . visitVarInsn ( Opcodes . ALOAD , 0 ) ; m . visitMethodInsn ( INVOKESPECIAL , "java/lang/Object" , "<init>" , "()V" ) ; m . visitInsn ( RETURN ) ; m . visitMaxs ( 1 , 1 ) ; m . visitEnd ( ) ; ( mv = cw . visitMethod ( ACC_PUBLIC , "getValue" , "(Ljava/lang/Object;Ljava/lang/Object;L" + NAMESPACE + "integration/VariableResolverFactory;)Ljava/lang/Object;" , null , null ) ) . visitCode ( ) ; }
Does all the boilerplate for initiating the JIT.
Does all the boilerplate for initiating the JIT .