Migration to new decompiler API. Patch made by Roman Shevchenko.