Home | History | Annotate | Download | only in evaluation

Lines Matching refs:offset

82      * Returns whether the instruction at the given offset has ever been
93 * at the given offset.
104 * at the given offset.
124 * at the given offset.
135 * at the given offset.
155 * instruction at the given offset.
166 * instruction at the given offset.
223 for (int offset = codeLength - 1; offset >= 0; offset--)
225 if (partialEvaluator.isTraced(offset))
228 InstructionOffsetValue branchTargets = partialEvaluator.branchTargets(offset);
236 alive |= isAliveAfter[offset];
239 isAliveAfter[offset] = alive;
242 codeAttribute.instructionAccept(clazz, method, offset, this);
245 alive |= isAliveBefore[offset];
248 if ((~isAliveBefore[offset] & alive) != 0L)
250 isAliveBefore[offset] = alive;
253 checkAgain |= offset < maxOffset(partialEvaluator.branchOrigins(offset));
264 for (int offset = 0; offset < codeLength; offset++)
266 if (partialEvaluator.isTraced(offset))
272 if (isAliveBefore(offset, variableIndex))
274 Value value = partialEvaluator.getVariablesBefore(offset).getValue(variableIndex);
278 setCategory2(offset, variableIndex, true);
281 setAliveBefore(offset, variableIndex + 1, true);
282 setCategory2( offset, variableIndex + 1, true);
287 if (isAliveAfter(offset, variableIndex))
289 Value value = partialEvaluator.getVariablesAfter(offset).getValue(variableIndex);
293 setCategory2(offset, variableIndex, true);
296 setAliveAfter(offset, variableIndex + 1, true);
297 setCategory2( offset, variableIndex + 1, true);
307 for (int offset = 0; offset < codeLength; offset++)
309 if (partialEvaluator.isTraced(offset))
311 long aliveBefore = isAliveBefore[offset];
312 long aliveAfter = isAliveAfter[offset];
313 long category2 = isCategory2[offset];
325 System.out.println(" "+ InstructionFactory.create(codeAttribute.code, offset).toString(offset));
345 public void visitAnyInstruction(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, Instruction instruction) {}
348 public void visitVariableInstruction(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, VariableInstruction variableInstruction)
367 isAliveAfter[offset] |= livenessMask;
373 public void visitConstantInstruction(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, ConstantInstruction constantInstruction)
377 if (offset == partialEvaluator.superInitializationOffset())
396 for (int offset = startOffset; offset < endOffset; offset++)
398 if (partialEvaluator.isTraced(offset))
400 if ((~(isAliveBefore[offset] & isAliveAfter[offset]) & alive) != 0L)
402 isAliveBefore[offset] |= alive;
403 isAliveAfter[offset] |= alive;
423 // Create new arrays for storing information at each instruction offset.
461 * Returns the minimum offset from the given instruction offsets.
470 * Returns the minimum offset from the given instruction offsets.
482 int offset = instructionOffsetValue.instructionOffset(index);
483 if (minOffset > offset)
485 minOffset = offset;
495 * Returns the maximum offset from the given instruction offsets.
504 * Returns the maximum offset from the given instruction offsets.
516 int offset = instructionOffsetValue.instructionOffset(index);
517 if (maxOffset < offset)
519 maxOffset = offset;