/** * Get the total registers count. * * @return the count */ private int getRegistersSize() { return code.getInsns().getRegistersSize(); } }
/** * Get the total registers count. * * @return the count */ private int getRegistersSize() { return code.getInsns().getRegistersSize(); } }
/** * Get the total registers count. * * @return the count */ private int getRegistersSize() { return code.getInsns().getRegistersSize(); } }
/** * Get the total registers count. * * @return the count */ private int getRegistersSize() { return code.getInsns().getRegistersSize(); } }
/** * Get the total registers count. * * @return the count */ private int getRegistersSize() { return code.getInsns().getRegistersSize(); } }
/** * Get the total registers count. * * @return the count */ private int getRegistersSize() { return code.getInsns().getRegistersSize(); } }
/** * Get the total registers count. * * @return the count */ private int getRegistersSize() { return code.getInsns().getRegistersSize(); } }
/** * Get the total registers count. * * @return the count */ private int getRegistersSize() { return code.getInsns().getRegistersSize(); } }
/** * Updates the dex statistics. * * @param nonOptCode non-optimized code block * @param code optimized code block */ public static void updateDexStatistics(DalvCode nonOptCode, DalvCode code) { if (DEBUG) { System.err.println("dex insns (old/new) " + nonOptCode.getInsns().codeSize() + "/" + code.getInsns().codeSize() + " regs (o/n) " + nonOptCode.getInsns().getRegistersSize() + "/" + code.getInsns().getRegistersSize() ); } dexRunningDeltaInsns += (code.getInsns().codeSize() - nonOptCode.getInsns().codeSize()); dexRunningDeltaRegisters += (code.getInsns().getRegistersSize() - nonOptCode.getInsns().getRegistersSize()); dexRunningTotalInsns += code.getInsns().codeSize(); }
/** * Updates the dex statistics. * * @param nonOptCode non-optimized code block * @param code optimized code block */ public static void updateDexStatistics(DalvCode nonOptCode, DalvCode code) { if (DEBUG) { System.err.println("dex insns (old/new) " + nonOptCode.getInsns().codeSize() + "/" + code.getInsns().codeSize() + " regs (o/n) " + nonOptCode.getInsns().getRegistersSize() + "/" + code.getInsns().getRegistersSize() ); } dexRunningDeltaInsns += (code.getInsns().codeSize() - nonOptCode.getInsns().codeSize()); dexRunningDeltaRegisters += (code.getInsns().getRegistersSize() - nonOptCode.getInsns().getRegistersSize()); dexRunningTotalInsns += code.getInsns().codeSize(); }
/** * Validates an encoded debug info stream against data used to encode it, * throwing an exception if they do not match. Used to validate the * encoder. * * @param info encoded debug info * @param file {@code non-null;} file to refer to during decoding * @param ref {@code non-null;} method whose info is being decoded * @param code {@code non-null;} original code object that was encoded * @param isStatic whether the method is static */ public static void validateEncode(byte[] info, DexFile file, CstMethodRef ref, DalvCode code, boolean isStatic) { PositionList pl = code.getPositions(); LocalList ll = code.getLocals(); DalvInsnList insns = code.getInsns(); int codeSize = insns.codeSize(); int countRegisters = insns.getRegistersSize(); try { validateEncode0(info, codeSize, countRegisters, isStatic, ref, file, pl, ll); } catch (RuntimeException ex) { System.err.println("instructions:"); insns.debugPrint(System.err, " ", true); System.err.println("local list:"); ll.debugPrint(System.err, " "); throw ExceptionWithContext.withContext(ex, "while processing " + ref.toHuman()); } }
/** * Validates an encoded debug info stream against data used to encode it, * throwing an exception if they do not match. Used to validate the * encoder. * * @param info encoded debug info * @param file {@code non-null;} file to refer to during decoding * @param ref {@code non-null;} method whose info is being decoded * @param code {@code non-null;} original code object that was encoded * @param isStatic whether the method is static */ public static void validateEncode(byte[] info, DexFile file, CstMethodRef ref, DalvCode code, boolean isStatic) { PositionList pl = code.getPositions(); LocalList ll = code.getLocals(); DalvInsnList insns = code.getInsns(); int codeSize = insns.codeSize(); int countRegisters = insns.getRegistersSize(); try { validateEncode0(info, codeSize, countRegisters, isStatic, ref, file, pl, ll); } catch (RuntimeException ex) { System.err.println("instructions:"); insns.debugPrint(System.err, " ", true); System.err.println("local list:"); ll.debugPrint(System.err, " "); throw ExceptionWithContext.withContext(ex, "while processing " + ref.toHuman()); } }
/** * Validates an encoded debug info stream against data used to encode it, * throwing an exception if they do not match. Used to validate the * encoder. * * @param info encoded debug info * @param file {@code non-null;} file to refer to during decoding * @param ref {@code non-null;} method whose info is being decoded * @param code {@code non-null;} original code object that was encoded * @param isStatic whether the method is static */ public static void validateEncode(byte[] info, DexFile file, CstMethodRef ref, DalvCode code, boolean isStatic) { PositionList pl = code.getPositions(); LocalList ll = code.getLocals(); DalvInsnList insns = code.getInsns(); int codeSize = insns.codeSize(); int countRegisters = insns.getRegistersSize(); try { validateEncode0(info, codeSize, countRegisters, isStatic, ref, file, pl, ll); } catch (RuntimeException ex) { System.err.println("instructions:"); insns.debugPrint(System.err, " ", true); System.err.println("local list:"); ll.debugPrint(System.err, " "); throw ExceptionWithContext.withContext(ex, "while processing " + ref.toHuman()); } }
/** * Validates an encoded debug info stream against data used to encode it, * throwing an exception if they do not match. Used to validate the * encoder. * * @param info encoded debug info * @param file {@code non-null;} file to refer to during decoding * @param ref {@code non-null;} method whose info is being decoded * @param code {@code non-null;} original code object that was encoded * @param isStatic whether the method is static */ public static void validateEncode(byte[] info, DexFile file, CstMethodRef ref, DalvCode code, boolean isStatic) { PositionList pl = code.getPositions(); LocalList ll = code.getLocals(); DalvInsnList insns = code.getInsns(); int codeSize = insns.codeSize(); int countRegisters = insns.getRegistersSize(); try { validateEncode0(info, codeSize, countRegisters, isStatic, ref, file, pl, ll); } catch (RuntimeException ex) { System.err.println("instructions:"); insns.debugPrint(System.err, " ", true); System.err.println("local list:"); ll.debugPrint(System.err, " "); throw ExceptionWithContext.withContext(ex, "while processing " + ref.toHuman()); } }
/** * Validates an encoded debug info stream against data used to encode it, * throwing an exception if they do not match. Used to validate the * encoder. * * @param info encoded debug info * @param file {@code non-null;} file to refer to during decoding * @param ref {@code non-null;} method whose info is being decoded * @param code {@code non-null;} original code object that was encoded * @param isStatic whether the method is static */ public static void validateEncode(byte[] info, DexFile file, CstMethodRef ref, DalvCode code, boolean isStatic) { PositionList pl = code.getPositions(); LocalList ll = code.getLocals(); DalvInsnList insns = code.getInsns(); int codeSize = insns.codeSize(); int countRegisters = insns.getRegistersSize(); try { validateEncode0(info, codeSize, countRegisters, isStatic, ref, file, pl, ll); } catch (RuntimeException ex) { System.err.println("instructions:"); insns.debugPrint(System.err, " ", true); System.err.println("local list:"); ll.debugPrint(System.err, " "); throw ExceptionWithContext.withContext(ex, "while processing " + ref.toHuman()); } }
/** * Validates an encoded debug info stream against data used to encode it, * throwing an exception if they do not match. Used to validate the * encoder. * * @param info encoded debug info * @param file {@code non-null;} file to refer to during decoding * @param ref {@code non-null;} method whose info is being decoded * @param code {@code non-null;} original code object that was encoded * @param isStatic whether the method is static */ public static void validateEncode(byte[] info, DexFile file, CstMethodRef ref, DalvCode code, boolean isStatic) { PositionList pl = code.getPositions(); LocalList ll = code.getLocals(); DalvInsnList insns = code.getInsns(); int codeSize = insns.codeSize(); int countRegisters = insns.getRegistersSize(); try { validateEncode0(info, codeSize, countRegisters, isStatic, ref, file, pl, ll); } catch (RuntimeException ex) { System.err.println("instructions:"); insns.debugPrint(System.err, " ", true); System.err.println("local list:"); ll.debugPrint(System.err, " "); throw ExceptionWithContext.withContext(ex, "while processing " + ref.toHuman()); } }
/** * Updates the dex statistics. * * @param nonOptCode non-optimized code block * @param code optimized code block */ public void updateDexStatistics(DalvCode nonOptCode, DalvCode code) { if (DEBUG) { System.err.println("dex insns (old/new) " + nonOptCode.getInsns().codeSize() + "/" + code.getInsns().codeSize() + " regs (o/n) " + nonOptCode.getInsns().getRegistersSize() + "/" + code.getInsns().getRegistersSize() ); } dexRunningDeltaInsns += (code.getInsns().codeSize() - nonOptCode.getInsns().codeSize()); dexRunningDeltaRegisters += (code.getInsns().getRegistersSize() - nonOptCode.getInsns().getRegistersSize()); dexRunningTotalInsns += code.getInsns().codeSize(); }
/** * Updates the dex statistics. * * @param nonOptCode non-optimized code block * @param code optimized code block */ public void updateDexStatistics(DalvCode nonOptCode, DalvCode code) { if (DEBUG) { System.err.println("dex insns (old/new) " + nonOptCode.getInsns().codeSize() + "/" + code.getInsns().codeSize() + " regs (o/n) " + nonOptCode.getInsns().getRegistersSize() + "/" + code.getInsns().getRegistersSize() ); } dexRunningDeltaInsns += (code.getInsns().codeSize() - nonOptCode.getInsns().codeSize()); dexRunningDeltaRegisters += (code.getInsns().getRegistersSize() - nonOptCode.getInsns().getRegistersSize()); dexRunningTotalInsns += code.getInsns().codeSize(); }
/** * Updates the dex statistics. * * @param nonOptCode non-optimized code block * @param code optimized code block */ public static void updateDexStatistics(DalvCode nonOptCode, DalvCode code) { if (DEBUG) { System.err.println("dex insns (old/new) " + nonOptCode.getInsns().codeSize() + "/" + code.getInsns().codeSize() + " regs (o/n) " + nonOptCode.getInsns().getRegistersSize() + "/" + code.getInsns().getRegistersSize() ); } dexRunningDeltaInsns += (code.getInsns().codeSize() - nonOptCode.getInsns().codeSize()); dexRunningDeltaRegisters += (code.getInsns().getRegistersSize() - nonOptCode.getInsns().getRegistersSize()); dexRunningTotalInsns += code.getInsns().codeSize(); }
/** * Updates the dex statistics. * * @param nonOptCode non-optimized code block * @param code optimized code block */ public void updateDexStatistics(DalvCode nonOptCode, DalvCode code) { if (DEBUG) { System.err.println("dex insns (old/new) " + nonOptCode.getInsns().codeSize() + "/" + code.getInsns().codeSize() + " regs (o/n) " + nonOptCode.getInsns().getRegistersSize() + "/" + code.getInsns().getRegistersSize() ); } dexRunningDeltaInsns += (code.getInsns().codeSize() - nonOptCode.getInsns().codeSize()); dexRunningDeltaRegisters += (code.getInsns().getRegistersSize() - nonOptCode.getInsns().getRegistersSize()); dexRunningTotalInsns += code.getInsns().codeSize(); }