//TODO: does dalvik allow references to invalid registers?
final LocalInfo[] locals = new LocalInfo[registerCount];
Arrays.fill(locals, EMPTY_LOCAL_INFO);
DexBackedMethod method = methodImpl.method;
// Create a MethodParameter iterator that uses our DexReader instance to read the parameter names.
// After we have finished iterating over the parameters, reader will "point to" the beginning of the
// debug instructions
final Iterator<? extends MethodParameter> parameterIterator =
new ParameterIterator(method.getParameterTypes(),
method.getParameterAnnotations(),
getParameterNames(reader));
// first, we grab all the parameters and temporarily store them at the beginning of locals,
// disregarding any wide types
int parameterIndex = 0;