Select gc root in function scope
Set frame pointer properly