Extracted main bytecode generation steps
Making ASMGen static