예제 #1
0
 public Stamp getReturnStamp() {
   Stamp returnStamp = null;
   for (ReturnNode returnNode : getNodes(ReturnNode.TYPE)) {
     ValueNode result = returnNode.result();
     if (result != null) {
       if (returnStamp == null) {
         returnStamp = result.stamp();
       } else {
         returnStamp = returnStamp.meet(result.stamp());
       }
     }
   }
   return returnStamp;
 }
예제 #2
0
 public GuardedValueNode(ValueNode object, GuardingNode guard) {
   this(object, guard, object.stamp());
 }