File path: /jruby-1.4.0/src/org/jruby/compiler/impl/BaseBodyCompiler.java | File path: /jruby-1.4.0/src/org/jruby/compiler/impl/BaseBodyCompiler.java | |||
Method name: void assignClassVariable(String)
|
Method name: void declareClassVariable(String)
|
|||
Number of AST nodes: 9 | Number of AST nodes: 9 | |||
1 | loadThreadContext();↵ | 1 | loadThreadContext();↵ | |
2 | method.swap();↵ | 2 | method.swap();↵ | |
3 | loadRuntime();↵ | 3 | loadRuntime();↵ | |
4 | method.swap();↵ | 4 | method.swap();↵ | |
5 | loadSelf();↵ | 5 | loadSelf();↵ | |
6 | method.swap();↵ | 6 | method.swap();↵ | |
7 | method.ldc(name);↵ | 7 | method.ldc(name);↵ | |
8 | method.swap();↵ | 8 | method.swap();↵ | |
9 | invokeUtilityMethod("fastSetClassVariable", sig(IRubyObject.class, params(ThreadContext.class, Ruby.class, IRubyObject.class, String.class, IRubyObject.class))); | 9 | invokeUtilityMethod("fastDeclareClassVariable", sig(IRubyObject.class, params(ThreadContext.class, Ruby.class, IRubyObject.class, String.class, IRubyObject.class))); | |
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.0 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 41 |
Number of mapped statements | 9 |
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 | loadThreadContext(); | 1 | loadThreadContext(); | |||||||||||
2 | method.swap(); | 2 | method.swap(); | |||||||||||
3 | loadRuntime(); | 3 | loadRuntime(); | |||||||||||
4 | method.swap(); | 4 | method.swap(); | |||||||||||
5 | loadSelf(); | 5 | loadSelf(); | |||||||||||
6 | method.swap(); | 6 | method.swap(); | |||||||||||
7 | method.ldc(name); | 7 | method.ldc(name); | |||||||||||
8 | method.swap(); | 8 | method.swap(); | |||||||||||
9 | invokeUtilityMethod("fastSetClassVariable", sig(IRubyObject.class, params(ThreadContext.class, Ruby.class, IRubyObject.class, String.class, IRubyObject.class))); |
| 9 | invokeUtilityMethod("fastDeclareClassVariable", sig(IRubyObject.class, params(ThreadContext.class, Ruby.class, IRubyObject.class, String.class, IRubyObject.class))); |
Row | Violation |
---|