EntryPoints context = new EntryPoints(loader, VmUtils.getVm().getHeapManager(), 1);
X86CompilerHelper helper = new X86CompilerHelper(os, null, context, true);
CompiledMethod cm = new CompiledMethod(1);
TypeSizeInfo typeSizeInfo = loader.getArchitecture().getTypeSizeInfo();
helper.setMethod(method);
X86StackFrame stackFrame = new X86StackFrame(os, helper, method, context, cm);
X86CodeGenerator x86cg = new X86CodeGenerator(method, os, code.getLength(), typeSizeInfo, stackFrame);
generateCode(os, code, x86cg, stackFrame, arithMethod, typeSizeInfo);