(int n)
| 220 | // Shortcut for "popping" n nodes. A "pop" is basically a |
| 221 | // setDef(last,null) followed by lowering the nIns() count. |
| 222 | void popN(int n) { |
| 223 | unlock(); |
| 224 | for( int i=0; i<n; i++ ) { |
| 225 | Node old_def = _inputs.removeLast(); |
| 226 | if( old_def != null && // If it exists and |
| 227 | old_def.delUse(this) ) // If we removed the last use, the old def is now dead |
| 228 | old_def.kill(); // Kill old def |
| 229 | } |
| 230 | } |
| 231 | |
| 232 | /** |
| 233 | * Kill a Node with no <em>uses</em>, by setting all of its <em>defs</em> |
no test coverage detected