Search in sources :

Example 1 with DeoptimizationSourcePositionEncoder

use of com.oracle.svm.core.code.DeoptimizationSourcePositionEncoder in project graal by oracle.

the class InstalledCodeBuilder method createCodeChunkInfos.

private void createCodeChunkInfos() {
    CodeInfoEncoder codeInfoEncoder = new CodeInfoEncoder(new FrameInfoEncoder.NamesFromImage(), metaInfoAllocator);
    codeInfoEncoder.addMethod(method, compilation, 0);
    codeInfoEncoder.encodeAll();
    codeInfoEncoder.install(runtimeMethodInfo);
    assert codeInfoEncoder.verifyMethod(compilation, 0);
    DeoptimizationSourcePositionEncoder sourcePositionEncoder = new DeoptimizationSourcePositionEncoder(metaInfoAllocator);
    sourcePositionEncoder.encode(compilation.getDeoptimzationSourcePositions());
    sourcePositionEncoder.install(runtimeMethodInfo);
}
Also used : DeoptimizationSourcePositionEncoder(com.oracle.svm.core.code.DeoptimizationSourcePositionEncoder) CodeInfoEncoder(com.oracle.svm.core.code.CodeInfoEncoder) FrameInfoEncoder(com.oracle.svm.core.code.FrameInfoEncoder)

Aggregations

CodeInfoEncoder (com.oracle.svm.core.code.CodeInfoEncoder)1 DeoptimizationSourcePositionEncoder (com.oracle.svm.core.code.DeoptimizationSourcePositionEncoder)1 FrameInfoEncoder (com.oracle.svm.core.code.FrameInfoEncoder)1