(int n)
| 202 | // Shortcut for "popping" n nodes. A "pop" is basically a |
| 203 | // setDef(last,null) followed by lowering the nIns() count. |
| 204 | void popN(int n) { |
| 205 | for( int i=0; i<n; i++ ) { |
| 206 | Node old_def = _inputs.removeLast(); |
| 207 | if( old_def != null && // If it exists and |
| 208 | old_def.delUse(this) ) // If we removed the last use, the old def is now dead |
| 209 | old_def.kill(); // Kill old def |
| 210 | } |
| 211 | } |
| 212 | |
| 213 | /** |
| 214 | * Kill a Node with no <em>uses</em>, by setting all of its <em>defs</em> |
no test coverage detected