Home | History | Annotate | Download | only in code

Lines Matching defs:spec

92             RegisterSpec spec = specs[i];
93 int oneHash = (spec == null) ? 0 : spec.hashCode();
110 RegisterSpec spec = specs[i];
111 if (spec != null) {
117 sb.append(spec);
178 * spec, if any. This is just a convenient shorthand for
179 * {@code get(spec.getReg())}.
181 * @param spec {@code non-null;} spec with the desired register number
185 public RegisterSpec get(RegisterSpec spec) {
186 return get(spec.getReg());
190 * Returns the spec in this set that's currently associated with a
192 * none. This ignores the register number of the given spec but
195 * @param spec {@code non-null;} local to look for
198 public RegisterSpec findMatchingLocal(RegisterSpec spec) {
208 if (spec.matchesVariable(s)) {
217 * Returns the spec in this set that's currently associated with a given
227 RegisterSpec spec = specs[reg];
229 if ((spec != null) && local.equals(spec.getLocalItem())) {
230 return spec;
238 * Removes a spec from the set. Only the register number
254 * Puts the given spec into the set. If there is already an element in
257 * previous element is nullified. Finally, if the given spec is for
261 * @param spec {@code non-null;} the register spec to put in the instance
263 public void put(RegisterSpec spec) {
266 if (spec == null) {
267 throw new NullPointerException("spec == null");
273 int reg = spec.getReg();
274 specs[reg] = spec;
284 if (spec.getCategory() == 2) {
289 throw new IllegalArgumentException("spec.getReg() out of range");
302 RegisterSpec spec = set.get(i);
303 if (spec != null) {
304 put(spec);
331 RegisterSpec spec = specs[i];
333 if (spec == null) {
338 spec.intersect(otherSpecs[i], localPrimary);
339 if (intersection != spec) {
362 RegisterSpec spec = specs[i];
363 if (spec != null) {
364 result.put(spec.withOffset(delta));
387 RegisterSpec spec = specs[i];
388 if (spec != null) {
389 copy.put(spec);