Ruby runtime = context.getRuntime();
try {
pre(context, self, name, block, 2);
return jitCompiledScript.__file__(context, self, arg0, arg1, block);
} catch (JumpException.ReturnJump rj) {
return handleReturn(context, rj);
} catch (JumpException.RedoJump rj) {
return handleRedo(runtime);
} finally {
post(runtime, context, name);
}
Ruby runtime = context.getRuntime();
try {
pre(context, self, name, Block.NULL_BLOCK, 1);
return jitCompiledScript.__file__(context, self, arg0, Block.NULL_BLOCK);
} catch (JumpException.ReturnJump rj) {
return handleReturn(context, rj);
} catch (JumpException.RedoJump rj) {
return handleRedo(runtime);
} finally {
post(runtime, context, name);
}
Clone fragments detected by clone detection tool
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, Block)
|
|
Method name: IRubyObject call(ThreadContext, IRubyObject, RubyModule, String, 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, 2);↵ | | 3 | pre(context, self, name, Block.NULL_BLOCK, 1);↵
|
|
4 | return jitCompiledScript.__file__(context, self, arg0, arg1, block);↵ | | 4 | return jitCompiledScript.__file__(context, self, arg0, 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 |
Summary
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 |
-
{Refactorable}
Mapping Summary
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) | 1.1 |
Clone type | Type 2 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
1 | Ruby runtime = context.getRuntime(); | | 1 | Ruby runtime = context.getRuntime(); |
2 | try | | 2 | try |
3 | pre(context, self, name, block, 2); | | 3 | pre(context, self, name, Block.NULL_BLOCK, 1); |
4 | return jitCompiledScript.__file__(context, self, arg0, arg1, block); | | 4 | return jitCompiledScript.__file__(context, self, arg0, Block.NULL_BLOCK); |
Precondition Violations (0)
Row |
Violation |