|
13 | 13 | import com.oracle.truffle.api.dsl.GenerateNodeFactory;
|
14 | 14 | import com.oracle.truffle.api.dsl.GenerateUncached;
|
15 | 15 | import com.oracle.truffle.api.dsl.NeverDefault;
|
16 |
| -import com.oracle.truffle.api.nodes.Node; |
17 | 16 | import com.oracle.truffle.api.profiles.InlinedConditionProfile;
|
18 | 17 | import com.oracle.truffle.api.profiles.InlinedLoopConditionProfile;
|
19 | 18 | import com.oracle.truffle.api.profiles.LoopConditionProfile;
|
@@ -127,25 +126,24 @@ protected RubyIntRange eachInt(RubyIntRange range, RubyProc block,
|
127 | 126 | }
|
128 | 127 |
|
129 | 128 | @Specialization
|
130 |
| - protected static RubyLongRange eachLong(RubyLongRange range, RubyProc block, |
| 129 | + protected RubyLongRange eachLong(RubyLongRange range, RubyProc block, |
131 | 130 | @Shared @Cached InlinedConditionProfile excludedEndProfile,
|
132 | 131 | @Exclusive @Cached InlinedLoopConditionProfile loopProfile,
|
133 |
| - @Cached @Shared CallBlockNode yieldNode, |
134 |
| - @Bind("this") Node node) { |
| 132 | + @Cached @Shared CallBlockNode yieldNode) { |
135 | 133 | final long exclusiveEnd;
|
136 |
| - if (excludedEndProfile.profile(node, range.excludedEnd)) { |
| 134 | + if (excludedEndProfile.profile(this, range.excludedEnd)) { |
137 | 135 | exclusiveEnd = range.end;
|
138 | 136 | } else {
|
139 | 137 | exclusiveEnd = range.end + 1;
|
140 | 138 | }
|
141 | 139 |
|
142 | 140 | long n = range.begin;
|
143 | 141 | try {
|
144 |
| - for (; loopProfile.inject(node, n < exclusiveEnd); n++) { |
| 142 | + for (; loopProfile.inject(this, n < exclusiveEnd); n++) { |
145 | 143 | yieldNode.yield(block, n);
|
146 | 144 | }
|
147 | 145 | } finally {
|
148 |
| - profileAndReportLoopCount(node, loopProfile, n - range.begin); |
| 146 | + profileAndReportLoopCount(this, loopProfile, n - range.begin); |
149 | 147 | }
|
150 | 148 |
|
151 | 149 | return range;
|
|
0 commit comments