Package org.adoptopenjdk.jitwatch.optimizedvcall

Examples of org.adoptopenjdk.jitwatch.optimizedvcall.OptimizedVirtualCall


    operands.add("%rax");
    String firstComment = null;

    AssemblyInstruction ins = new AssemblyInstruction(annotation, address, modifier, mnemonic, operands, firstComment);

    OptimizedVirtualCall vCall = OptimizedVirtualCallFinder.findOptimizedCall(null, ins);

    assertNull(vCall);
  }
View Full Code Here


    operands.add("%rax");
    String firstComment = "; - FooClass::fooMethod@1 (line 42)";

    AssemblyInstruction ins = new AssemblyInstruction(annotation, address, modifier, mnemonic, operands, firstComment);

    OptimizedVirtualCall vCall = OptimizedVirtualCallFinder.findOptimizedCall(null, ins);

    assertNull(vCall);
  }
View Full Code Here

    AssemblyInstruction ins = new AssemblyInstruction(annotation, address, modifier, mnemonic, operands, comment1);
    ins.addCommentLine(comment2);
    ins.addCommentLine(comment3);

    OptimizedVirtualCall vCall = OptimizedVirtualCallFinder.findOptimizedCall(null, ins);

    assertNotNull(vCall);

    VirtualCallSite caller = vCall.getCaller();
    VirtualCallSite callee = vCall.getCallee();

    assertEquals("FooClass", caller.getClassName());
    assertEquals("fooMethod", caller.getMemberName());
    assertEquals(11, caller.getBytecodeOffset());
    assertEquals(76, caller.getSourceLine());
View Full Code Here

TOP

Related Classes of org.adoptopenjdk.jitwatch.optimizedvcall.OptimizedVirtualCall

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.