@Override public InterpreterContext ensureInstrsReady() { // AbstractIRMethod.getMethodData() calls this and we want IC since we have not eliminated any get/put fields. return method.getInterpreterContext(); } }
@Override public InterpreterContext ensureInstrsReady() { // AbstractIRMethod.getMethodData() calls this and we want IC since we have not eliminated any get/put fields. return method.getInterpreterContext(); } }
@Override public InterpreterContext ensureInstrsReady() { // FIXME: duplicated from MixedModeIRMethod if (method instanceof IRMethod) { return ((IRMethod) method).lazilyAcquireInterpreterContext(); } InterpreterContext ic = method.getInterpreterContext(); return ic; }
@Override public InterpreterContext ensureInstrsReady() { // FIXME: duplicated from MixedModeIRMethod if (method instanceof IRMethod) { return ((IRMethod) method).lazilyAcquireInterpreterContext(); } InterpreterContext ic = method.getInterpreterContext(); return ic; }
@Override public void startEncodingScopeInstrs(IRScope scope) { addScopeInstructionOffset(scope); // Record offset so we add this value to scope headers entry encode(scope.getInterpreterContext().getInstructions().length); // Allows us to right-size when reconstructing instr list. }
@Override public void startEncodingScopeInstrs(IRScope scope) { addScopeInstructionOffset(scope); // Record offset so we add this value to scope headers entry encode(scope.getInterpreterContext().getInstructions().length); // Allows us to right-size when reconstructing instr list. }
public InterpreterContext ensureInstrsReady() { if (method instanceof IRMethod) { return ((IRMethod) method).lazilyAcquireInterpreterContext(); } InterpreterContext ic = method.getInterpreterContext(); if (IRRuntimeHelpers.shouldPrintIR(implementationClass.getRuntime())) { ByteArrayOutputStream baos = IRDumper.printIR(method, false); LOG.info("Printing simple IR for " + method.getId() + ":\n" + new String(baos.toByteArray())); } return ic; }
public InterpreterContext ensureInstrsReady() { if (method instanceof IRMethod) { return ((IRMethod) method).lazilyAcquireInterpreterContext(); } InterpreterContext ic = method.getInterpreterContext(); if (IRRuntimeHelpers.shouldPrintIR(implementationClass.getRuntime())) { ByteArrayOutputStream baos = IRDumper.printIR(method, false); LOG.info("Printing simple IR for " + method.getId() + ":\n" + new String(baos.toByteArray())); } return ic; }
@Override public InterpreterContext ensureInstrsReady() { if (interpreterContext == null) { if (method instanceof IRMethod) { interpreterContext = ((IRMethod) method).lazilyAcquireInterpreterContext(); } interpreterContext = method.getInterpreterContext(); if (IRRuntimeHelpers.shouldPrintIR(implementationClass.getRuntime())) { ByteArrayOutputStream baos = IRDumper.printIR(method, false, true); LOG.info("Printing simple IR for " + method.getId() + ":\n" + new String(baos.toByteArray())); } } return interpreterContext; }
@Override public InterpreterContext ensureInstrsReady() { if (interpreterContext == null) { if (method instanceof IRMethod) { interpreterContext = ((IRMethod) method).lazilyAcquireInterpreterContext(); } interpreterContext = method.getInterpreterContext(); if (IRRuntimeHelpers.shouldPrintIR(implementationClass.getRuntime())) { ByteArrayOutputStream baos = IRDumper.printIR(method, false, true); LOG.info("Printing simple IR for " + method.getId() + ":\n" + new String(baos.toByteArray())); } } return interpreterContext; }
Instr[] instrs = tgtMethod.getInterpreterContext().getInstructions();
Instr[] instrs = tgtMethod.getInterpreterContext().getInstructions();
private static void persistScopeInstrs(IRWriterEncoder file, IRScope scope) { file.startEncodingScopeInstrs(scope); // Currently methods are only lazy scopes so we need to build them if we decide to persist them. if (scope instanceof IRMethod && !scope.hasBeenBuilt()) { ((IRMethod) scope).lazilyAcquireInterpreterContext(); } for (Instr instr: scope.getInterpreterContext().getInstructions()) { file.encode(instr); } file.endEncodingScopeInstrs(scope); }
private static void persistScopeInstrs(IRWriterEncoder file, IRScope scope) { file.startEncodingScopeInstrs(scope); // Currently methods are only lazy scopes so we need to build them if we decide to persist them. if (scope instanceof IRMethod && !scope.hasBeenBuilt()) { ((IRMethod) scope).lazilyAcquireInterpreterContext(); } for (Instr instr: scope.getInterpreterContext().getInstructions()) { file.encode(instr); } file.endEncodingScopeInstrs(scope); }
public void visit(IRScope scope, boolean full, boolean recurse) { println("begin " + scope.getScopeType().name() + "<" + scope.getId() + ">"); InterpreterContext ic = full ? scope.getFullInterpreterContext() : scope.getInterpreterContext();
public void visit(IRScope scope, boolean full, boolean recurse) { println("begin " + scope.getScopeType().name() + "<" + scope.getId() + ">"); InterpreterContext ic = full ? scope.getFullInterpreterContext() : scope.getInterpreterContext();