1 | final CallNode iVisited = (CallNode) node;↵ | | 1 | final AttrAssignNode iVisited = (AttrAssignNode) node;↵
|
2 | Object isnull = context.getNewEnding();↵ | | 2 | Object isnull = context.getNewEnding();↵
|
3 | Object ending = context.getNewEnding();↵ | | 3 | Object ending = context.getNewEnding();↵
|
4 | compileGetDefinition(iVisited.getReceiverNode(), context);↵ | | 4 | compileGetDefinition(iVisited.getReceiverNode(), context);↵
|
5 | context.ifNull(isnull);↵ | | 5 | context.ifNull(isnull);↵
|
|
6 | context.rescue(new BranchCallback() {↵ | | 6 | context.rescue(new BranchCallback() {↵
|
|
7 | public void branch(BodyCompiler context) {↵ | | 7 | public void branch(BodyCompiler context) {↵
|
8 | compile(iVisited.getReceiverNode(), context,true); //[IRubyObject]↵ | | 8 | compile(iVisited.getReceiverNode(), context,true); //[IRubyObject]↵
|
9 | context.duplicateCurrentValue(); //[IRubyObject, IRubyObject]↵ | | 9 | context.duplicateCurrentValue(); //[IRubyObject, IRubyObject]↵
|
10 | context.metaclass(); //[IRubyObject, RubyClass]↵ | | 10 | context.metaclass(); //[IRubyObject, RubyClass]↵
|
11 | context.duplicateCurrentValue(); //[IRubyObject, RubyClass, RubyClass]↵ | | 11 | context.duplicateCurrentValue(); //[IRubyObject, RubyClass, RubyClass]↵
|
12 | context.getVisibilityFor(iVisited.getName()); //[IRubyObject, RubyClass, Visibility]↵ | | 12 | context.getVisibilityFor(iVisited.getName()); //[IRubyObject, RubyClass, Visibility]↵
|
13 | context.duplicateCurrentValue(); //[IRubyObject, RubyClass, Visibility, Visibility]↵ | | 13 | context.duplicateCurrentValue(); //[IRubyObject, RubyClass, Visibility, Visibility]↵
|
14 | final Object isfalse = context.getNewEnding();↵ | | 14 | final Object isfalse = context.getNewEnding();↵
|
15 | Object isreal = context.getNewEnding();↵ | | 15 | Object isreal = context.getNewEnding();↵
|
16 | Object ending = context.getNewEnding();↵ | | 16 | Object ending = context.getNewEnding();↵
|
17 | context.isPrivate(isfalse, 3); //[IRubyObject, RubyClass, Visibility]↵ | | 17 | context.isPrivate(isfalse, 3); //[IRubyObject, RubyClass, Visibility]↵
|
18 | context.isNotProtected(isreal, 1); //[IRubyObject, RubyClass]↵ | | 18 | context.isNotProtected(isreal, 1); //[IRubyObject, RubyClass]↵
|
19 | context.selfIsKindOf(isreal); //[IRubyObject]↵ | | 19 | context.selfIsKindOf(isreal); //[IRubyObject]↵
|
20 | context.consumeCurrentValue();↵ | | 20 | context.consumeCurrentValue();↵
|
21 | context.go(isfalse);↵ | | 21 | context.go(isfalse);↵
|
22 | context.setEnding(isreal); //[]↵ | | 22 | context.setEnding(isreal); //[]↵
|
|
23 | context.isMethodBound(iVisited.getName(), new BranchCallback() {↵ | | 23 | context.isMethodBound(iVisited.getName(), new BranchCallback() {↵
|
|
24 | public void branch(BodyCompiler context) {↵ | | 24 | public void branch(BodyCompiler context) {↵
|
25 | compileGetArgumentDefinition(iVisited.getArgsNode(), context, "method");↵ | | 25 | compileGetArgumentDefinition(iVisited.getArgsNode(), context, "assignment");↵
|
26 | }↵ | | 26 | }↵
|
27 | },↵ | | 27 | },↵
|
28 | new BranchCallback() {↵ | | 28 | new BranchCallback() {↵
|
|
29 | public void branch(BodyCompiler context) {↵ | | 29 | public void branch(BodyCompiler context) {↵
|
30 | context.go(isfalse);↵ | | 30 | context.go(isfalse);↵
|
31 | }↵ | | 31 | }↵
|
32 | });↵ | | 32 | });↵
|
33 | context.go(ending);↵ | | 33 | context.go(ending);↵
|
34 | context.setEnding(isfalse);↵ | | 34 | context.setEnding(isfalse);↵
|
35 | context.pushNull();↵ | | 35 | context.pushNull();↵
|
36 | context.setEnding(ending);↵ | | 36 | context.setEnding(ending);↵
|
37 | }↵ | | 37 | }↵
|
38 | }, JumpException.class,↵ | | 38 | }, JumpException.class,↵
|
39 | new BranchCallback() {↵ | | 39 | new BranchCallback() {↵
|
|
40 | public void branch(BodyCompiler context) {↵ | | 40 | public void branch(BodyCompiler context) {↵
|
41 | context.pushNull();↵ | | 41 | context.pushNull();↵
|
42 | }↵ | | 42 | }↵
|
43 | }, String.class);↵ | | 43 | }, String.class);↵
|
|
44 | // context.swapValues();↵ | | |
|
45 | //context.consumeCurrentValue();↵ | | |
|
46 | context.go(ending);↵ | | 44 | context.go(ending);↵
|
47 | context.setEnding(isnull);↵ | | 45 | context.setEnding(isnull);↵
|
48 | context.pushNull();↵ | | 46 | context.pushNull();↵
|
49 | context.setEnding(ending);↵ | | 47 | context.setEnding(ending);↵
|
50 | break; | | 48 | break;
|