Home | History | Annotate | Download | only in code

Lines Matching defs:spec

91             RegisterSpec spec = specs[i];
92 int oneHash = (spec == null) ? 0 : spec.hashCode();
109 RegisterSpec spec = specs[i];
110 if (spec != null) {
116 sb.append(spec);
177 * spec, if any. This is just a convenient shorthand for
178 * {@code get(spec.getReg())}.
180 * @param spec {@code non-null;} spec with the desired register number
184 public RegisterSpec get(RegisterSpec spec) {
185 return get(spec.getReg());
189 * Returns the spec in this set that's currently associated with a
191 * none. This ignores the register number of the given spec but
194 * @param spec {@code non-null;} local to look for
197 public RegisterSpec findMatchingLocal(RegisterSpec spec) {
207 if (spec.matchesVariable(s)) {
216 * Returns the spec in this set that's currently associated with a given
226 RegisterSpec spec = specs[reg];
228 if ((spec != null) && local.equals(spec.getLocalItem())) {
229 return spec;
237 * Removes a spec from the set. Only the register number
253 * Puts the given spec into the set. If there is already an element in
256 * previous element is nullified. Finally, if the given spec is for
260 * @param spec {@code non-null;} the register spec to put in the instance
262 public void put(RegisterSpec spec) {
265 if (spec == null) {
266 throw new NullPointerException("spec == null");
272 int reg = spec.getReg();
273 specs[reg] = spec;
283 if (spec.getCategory() == 2) {
288 throw new IllegalArgumentException("spec.getReg() out of range");
301 RegisterSpec spec = set.get(i);
302 if (spec != null) {
303 put(spec);
330 RegisterSpec spec = specs[i];
332 if (spec == null) {
337 spec.intersect(otherSpecs[i], localPrimary);
338 if (intersection != spec) {
361 RegisterSpec spec = specs[i];
362 if (spec != null) {
363 result.put(spec.withOffset(delta));
386 RegisterSpec spec = specs[i];
387 if (spec != null) {
388 copy.put(spec);