fix PatchInlinedSmiCode and CodePatcher