def lookup_func(val): funcid = val.cast(T('HPHP::FuncId')) return idx.atomic_vector_at(V('HPHP::s_funcVec'), funcid)