Exemplo n.º 1
0
  protected void assignObjectToImpl(ReferenceVariable lhs, AbstractObject obj) {
    AllocNode objNode =
        pag.makeAllocNode(new Pair("AbstractObject", obj.getType()), obj.getType(), null);

    VarNode var;
    if (lhs instanceof FieldRefNode) {
      var = pag.makeGlobalVarNode(objNode, objNode.getType());
      pag.addEdge((Node) lhs, var);
    } else {
      var = (VarNode) lhs;
    }
    pag.addEdge(objNode, var);
  }
Exemplo n.º 2
0
 ContextAllocNode(Context ctxt, AllocNode node) {
   super(ctxt, node);
   node.addContext(this);
   PaddleNumberers.v().contextAllocNodeNumberer().add(this);
 }