Christmas came early this year - an API from V8 to determine is function optimized or not.