/** Set up the specialized methods for the given type */ public static void notifyTypeInstantiated(RVMType type) { for (int i = 0; i < numSpecializedMethods; i++) { if (methods[i] == null) { initializeSpecializedMethod(i); } type.setSpecializedMethod(i, methods[i].specializeMethod(type)); } }
/** Set up the specialized methods for the given type */ public static void refreshSpecializedMethods(RVMType type) { for (int i = 0; i < numSpecializedMethods; i++) { if (VM.VerifyAssertions) VM._assert(methods[i] != null, "Specialized method missing!"); type.setSpecializedMethod(i, methods[i].specializeMethod(type)); } }