Skip to content

Commit 00439ff

Browse files
committed
Replace usages of getContext().getLanguageSlow() with just getLanguage()
1 parent b92dfbb commit 00439ff

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2178,8 +2178,8 @@ protected RubyArray sortVeryShort(VirtualFrame frame, RubyArray array, NotProvid
21782178
"!isSmall(array)",
21792179
"stores.isPrimitive(array.store)" },
21802180
assumptions = {
2181-
"getContext().getLanguageSlow().coreMethodAssumptions.integerCmpAssumption",
2182-
"getContext().getLanguageSlow().coreMethodAssumptions.floatCmpAssumption" },
2181+
"getLanguage().coreMethodAssumptions.integerCmpAssumption",
2182+
"getLanguage().coreMethodAssumptions.floatCmpAssumption" },
21832183
limit = "storageStrategyLimit()")
21842184
protected Object sortPrimitiveArrayNoBlock(RubyArray array, NotProvided block,
21852185
@CachedLibrary("array.store") ArrayStoreLibrary stores,

src/main/java/org/truffleruby/stdlib/ObjSpaceNodes.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public abstract static class TraceAllocationsStartNode extends CoreMethodArrayAr
106106
@TruffleBoundary
107107
@Specialization
108108
protected Object traceAllocationsStart() {
109-
getContext().getObjectSpaceManager().traceAllocationsStart(getContext().getLanguageSlow());
109+
getContext().getObjectSpaceManager().traceAllocationsStart(getLanguage());
110110
return nil;
111111
}
112112

@@ -118,7 +118,7 @@ public abstract static class TraceAllocationsStopNode extends CoreMethodArrayArg
118118
@TruffleBoundary
119119
@Specialization
120120
protected Object traceAllocationsStop() {
121-
getContext().getObjectSpaceManager().traceAllocationsStop(getContext().getLanguageSlow());
121+
getContext().getObjectSpaceManager().traceAllocationsStop(getLanguage());
122122
return nil;
123123
}
124124

0 commit comments

Comments
 (0)