public void caseDefinitionStmt(DefinitionStmt s) { inDefinitionStmt(s); /* * March 18th, 2006 introducing level of indirection decideCaseExprOrRef(s.getRightOp()); * decideCaseExprOrRef(s.getLeftOp()); */ caseExprOrRefValueBox(s.getRightOpBox()); caseExprOrRefValueBox(s.getLeftOpBox()); outDefinitionStmt(s); }
ValueBox leftBox = ds.getLeftOpBox();
ValueBox lhsLocalBox = defStmt.getLeftOpBox(); Local lhsLocal = (Local) lhsValue;
DArrayInitExpr tempExpr = new DArrayInitExpr(array, arrayType); DArrayInitValueBox tempValueBox = new DArrayInitValueBox(tempExpr); DAssignStmt newStmt = new DAssignStmt(ds.getLeftOpBox(), tempValueBox);
DArrayInitExpr tempExpr = new DArrayInitExpr(array, arrayType); DArrayInitValueBox tempValueBox = new DArrayInitValueBox(tempExpr); DAssignStmt newStmt = new DAssignStmt(ds.getLeftOpBox(), tempValueBox);
Unit u = src.getUnit(prevOp.insn); DefinitionStmt as = (DefinitionStmt) (u instanceof UnitContainer ? ((UnitContainer) u).getFirstUnit() : u); ValueBox lvb = as.getLeftOpBox(); assert lvb.getValue() == prevOp.stack : "Invalid stack local!"; lvb.setValue(stack); Unit u = src.getUnit(newOp.insn); DefinitionStmt as = (DefinitionStmt) (u instanceof UnitContainer ? ((UnitContainer) u).getFirstUnit() : u); ValueBox lvb = as.getLeftOpBox(); assert lvb.getValue() == newOp.stack : "Invalid stack local!"; lvb.setValue(stack);
javafy(ds.getLeftOpBox());