(int n)
| 235 | // Shortcut for "popping" n nodes. A "pop" is basically a |
| 236 | // setDef(last,null) followed by lowering the nIns() count. |
| 237 | void popN(int n) { |
| 238 | for( int i=0; i<n; i++ ) { |
| 239 | Node old_def = _inputs.removeLast(); |
| 240 | if( old_def != null && // If it exists and |
| 241 | old_def.delUse(this) ) // If we removed the last use, the old def is now dead |
| 242 | old_def.kill(); // Kill old def |
| 243 | } |
| 244 | } |
| 245 | |
| 246 | /** |
| 247 | * Kill a Node with no <em>uses</em>, by setting all of its <em>defs</em> |
no test coverage detected