Class ScriptOptimizer

java.lang.Object
com.bradyrussell.uiscoin.script.ScriptOptimizer

@Deprecated
public class ScriptOptimizer
extends java.lang.Object
Deprecated.
  • Constructor Summary

    Constructors 
    Constructor Description
    ScriptOptimizer()
    Deprecated.
     
  • Method Summary

    Modifier and Type Method Description
    static byte[] BytecodeOptimization_BooleanPush​(byte[] UnoptimizedBytecode)
    Deprecated.
    replace 010100 and 010101 with false and true respectively
    static byte[] BytecodeOptimization_RemoveNOPs​(byte[] Script)
    Deprecated.
     
    static byte[] BytecodeOptimization_SkipUnconditionalJump​(byte[] UnoptimizedBytecode)
    Deprecated.
    detect JUMPs that will always happen and cut out anything skipped JUMPs that will always happen include : when push is called immediately before JUMP
    static java.lang.String OptimizeScriptAssembly​(java.lang.String UnoptimizedAssembly)
    Deprecated.
     
    static byte[] OptimizeScriptBytecode​(byte[] UnoptimizedBytecode)
    Deprecated.
     
    static java.lang.String OptimizeScriptHighLevel​(java.lang.String UnoptimizedHighLevel)
    Deprecated.
     
    static byte[] RewriteJumpsAfter​(byte[] Script, int StartIndex, int BytesRemoved)
    Deprecated.
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • OptimizeScriptHighLevel

      public static java.lang.String OptimizeScriptHighLevel​(java.lang.String UnoptimizedHighLevel)
      Deprecated.
    • OptimizeScriptAssembly

      public static java.lang.String OptimizeScriptAssembly​(java.lang.String UnoptimizedAssembly)
      Deprecated.
    • OptimizeScriptBytecode

      public static byte[] OptimizeScriptBytecode​(byte[] UnoptimizedBytecode)
      Deprecated.
    • BytecodeOptimization_SkipUnconditionalJump

      public static byte[] BytecodeOptimization_SkipUnconditionalJump​(byte[] UnoptimizedBytecode)
      Deprecated.
      detect JUMPs that will always happen and cut out anything skipped JUMPs that will always happen include : when push is called immediately before JUMP
    • BytecodeOptimization_BooleanPush

      public static byte[] BytecodeOptimization_BooleanPush​(byte[] UnoptimizedBytecode)
      Deprecated.
      replace 010100 and 010101 with false and true respectively
    • BytecodeOptimization_RemoveNOPs

      public static byte[] BytecodeOptimization_RemoveNOPs​(byte[] Script)
      Deprecated.
    • RewriteJumpsAfter

      public static byte[] RewriteJumpsAfter​(byte[] Script, int StartIndex, int BytesRemoved)
      Deprecated.