File path: /jruby-1.4.0/src/org/jruby/internal/runtime/methods/JittedMethod.java | File path: /jruby-1.4.0/src/org/jruby/internal/runtime/methods/JittedMethod.java | |||
Method name: IRubyObject call(ThreadContext, IRubyObject, RubyModule, String, IRubyObject, IRubyObject, IRubyObject, Block)
|
Method name: IRubyObject call(ThreadContext, IRubyObject, RubyModule, String, IRubyObject, IRubyObject)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | Ruby runtime = context.getRuntime();↵ | 1 | Ruby runtime = context.getRuntime();↵ | |
2 | try {↵ | 2 | try {↵ | |
3 | pre(context, self, name, block, 3);↵ | 3 | pre(context, self, name, Block.NULL_BLOCK, 2);↵ | |
4 | return jitCompiledScript.__file__(context, self, arg0, arg1, arg2, block);↵ | 4 | return jitCompiledScript.__file__(context, self, arg0, arg1, Block.NULL_BLOCK);↵ | |
5 | } catch (JumpException.ReturnJump rj) {↵ | 5 | } catch (JumpException.ReturnJump rj) {↵ | |
6 | return handleReturn(context, rj);↵ | 6 | return handleReturn(context, rj);↵ | |
7 | } catch (JumpException.RedoJump rj) {↵ | 7 | } catch (JumpException.RedoJump rj) {↵ | |
8 | return handleRedo(runtime);↵ | 8 | return handleRedo(runtime);↵ | |
9 | } finally {↵ | 9 | } finally {↵ | |
10 | post(runtime, context, name);↵ | 10 | post(runtime, context, name);↵ | |
11 | } | 11 |
| |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 1 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.3 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 10 |
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) | 18.8 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | Ruby runtime = context.getRuntime(); | 1 | Ruby runtime = context.getRuntime(); | ||||||||||||||
2 | try | 2 | try | ||||||||||||||
3 | pre(context, self, name, block, 3); |
| 3 | pre(context, self, name, Block.NULL_BLOCK, 2); | |||||||||||||
4 | return jitCompiledScript.__file__(context, self, arg0, arg1, arg2, block); |
| 4 | return jitCompiledScript.__file__(context, self, arg0, arg1, Block.NULL_BLOCK); |
Row | Violation |
---|