Commit ed81a68f authored by Lubomir Bulej's avatar Lubomir Bulej

DiSL: CodeSC in guard test: don't copy instructions just to determine code size

parent c6f9aec9
......@@ -2,11 +2,11 @@ package ch.usi.dag.disl.test.guard;
import ch.usi.dag.disl.staticcontext.AbstractStaticContext;
public class CodeSC extends AbstractStaticContext {
public int codeLength() {
return staticContextData.getMethodNode().instructions.toArray()
.length;
}
public int codeLength () {
return staticContextData.getMethodNode ().instructions.size ();
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment