Skip to content

Commit 76e8ac7

Browse files
committed
Small cleanups for clarity
1 parent 26da569 commit 76e8ac7

File tree

4 files changed

+6
-9
lines changed

4 files changed

+6
-9
lines changed

src/main/java/org/truffleruby/core/array/ArrayDupNode.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,9 @@ protected RubyArray dupProfiledSize(RubyArray from,
4747
}
4848

4949
@ExplodeLoop
50-
private RubyArray copyArraySmall(RubyLanguage language, ArrayStoreLibrary fromStores, ArrayStoreLibrary toStores,
50+
private RubyArray copyArraySmall(RubyLanguage language,
51+
ArrayStoreLibrary fromStores,
52+
ArrayStoreLibrary toStores,
5153
RubyArray from,
5254
int cachedSize) {
5355
final Object original = from.store;

src/main/java/org/truffleruby/core/hash/HashLiteralNode.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
*/
1010
package org.truffleruby.core.hash;
1111

12-
1312
import org.truffleruby.RubyLanguage;
1413
import org.truffleruby.core.cast.BooleanCastNode;
1514
import org.truffleruby.language.RubyContextSourceNode;
@@ -21,7 +20,6 @@
2120
import com.oracle.truffle.api.nodes.ExplodeLoop;
2221
import com.oracle.truffle.api.profiles.BranchProfile;
2322

24-
2523
public abstract class HashLiteralNode extends RubyContextSourceNode {
2624

2725
@Children protected final RubyNode[] keyValues;

src/main/java/org/truffleruby/core/hash/HashOperations.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,13 @@
99
*/
1010
package org.truffleruby.core.hash;
1111

12-
12+
import com.oracle.truffle.api.CompilerDirectives.TruffleBoundary;
1313
import org.truffleruby.RubyContext;
1414
import org.truffleruby.RubyLanguage;
1515
import org.truffleruby.core.string.StringUtils;
1616
import org.truffleruby.language.Nil;
1717
import org.truffleruby.language.objects.shared.SharedObjects;
1818

19-
2019
public abstract class HashOperations {
2120

2221
public static RubyHash newEmptyHash(RubyContext context) {
@@ -34,6 +33,7 @@ public static RubyHash newEmptyHash(RubyContext context) {
3433
false);
3534
}
3635

36+
@TruffleBoundary
3737
public static boolean verifyStore(RubyContext context, RubyHash hash) {
3838
final Object store = hash.store;
3939
final int size = hash.size;

src/main/java/org/truffleruby/debug/MetricsInternalRootNode.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,7 @@ class MetricsInternalRootNode extends RubyBaseRootNode implements InternalRootNo
3030

3131
@Child private RubyNode body;
3232

33-
public MetricsInternalRootNode(
34-
RubyContext context,
35-
String name,
36-
RubyNode body) {
33+
public MetricsInternalRootNode(RubyContext context, String name, RubyNode body) {
3734
super(context.getLanguageSlow(), context.getCoreLibrary().emptyDescriptor, REQUIRE_METRICS_SOURCE_SECTION);
3835
assert body != null;
3936

0 commit comments

Comments
 (0)