File path: /jruby-1.4.0/src/org/jruby/compiler/ir/IR_Builder.java | File path: /jruby-1.4.0/src/org/jruby/compiler/ir/IR_Builder.java | |||
Method name: Operand buildToAry(ToAryNode, IR_Scope)
|
Method name: Operand buildZSuper(ZSuperNode, IR_Scope)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | Operand array = build(node.getValue(), s);↵ | 1 | Operand block = setupCallClosure(zsuperNode.getIterNode(), s);↵ | |
2 | Variable ret = s.getNewVariable();↵ | 2 | Variable ret = s.getNewVariable();↵ | |
3 | s.addInstr(new JRUBY_IMPL_CALL_Instr(ret, MethAddr.TO_ARY, new Operand[]{array}));↵ | 3 | s.addInstr(new RUBY_INTERNALS_CALL_Instr(ret, MethAddr.SUPER, ((IR_Method)s).getCallArgs(), block));↵ | |
4 | return ret; | 4 | return ret; | |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 1 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 16 |
Number of mapped statements | 4 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | Operand array = build(node.getValue(), s); |
| 1 | Operand block = setupCallClosure(zsuperNode.getIterNode(), s); | ||||||||||||||||||||||
2 | Variable ret = s.getNewVariable(); | 2 | Variable ret = s.getNewVariable(); | |||||||||||||||||||||||
3 | s.addInstr(new JRUBY_IMPL_CALL_Instr(ret, MethAddr.TO_ARY, new Operand[] {array})); |
| 3 | s.addInstr(new RUBY_INTERNALS_CALL_Instr(ret, MethAddr.SUPER, ((IR_Method)s).getCallArgs(), block)); | ||||||||||||||||||||||
4 | return ret; | 4 | return ret; |
Row | Violation |
---|---|
1 | Expression new JRUBY_IMPL_CALL_Instr(ret,MethAddr.TO_ARY,new Operand[]{array}) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
2 | Expression new RUBY_INTERNALS_CALL_Instr(ret,MethAddr.SUPER,((IR_Method)s).getCallArgs(),block) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
3 | Expression new JRUBY_IMPL_CALL_Instr(ret,MethAddr.TO_ARY,new Operand[]{array}) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
4 | Expression new RUBY_INTERNALS_CALL_Instr(ret,MethAddr.SUPER,((IR_Method)s).getCallArgs(),block) cannot be parameterized, because it has dependencies to/from statements that will be extracted |