File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
src/main/java/org/truffleruby Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -542,7 +542,7 @@ public Hashing getHashing() {
542
542
543
543
public RubyLanguage getLanguageSlow () {
544
544
CompilerAsserts .neverPartOfCompilation (
545
- "Use getLanguage() or @CachedLanguage instead, so the RubyLanguage instance is constant in PE code" );
545
+ "Use getLanguage() or RubyLanguage.get(Node) instead, so the RubyLanguage instance is constant in PE code" );
546
546
return language ;
547
547
}
548
548
Original file line number Diff line number Diff line change @@ -463,13 +463,13 @@ protected void disposeContext(RubyContext context) {
463
463
}
464
464
465
465
public static RubyContext getCurrentContext () {
466
- CompilerAsserts .neverPartOfCompilation ("Use getContext() or @CachedContext instead in PE code" );
467
- return getCurrentContext ( RubyLanguage . class );
466
+ CompilerAsserts .neverPartOfCompilation ("Use getContext() or RubyContext.get(Node) instead in PE code" );
467
+ return RubyContext . get ( null );
468
468
}
469
469
470
470
public static RubyLanguage getCurrentLanguage () {
471
- CompilerAsserts .neverPartOfCompilation ("Use getLanguage() or @CachedLanguage instead in PE code" );
472
- return getCurrentLanguage ( RubyLanguage .class );
471
+ CompilerAsserts .neverPartOfCompilation ("Use getLanguage() or RubyLanguage.get(Node) instead in PE code" );
472
+ return RubyLanguage .get ( null );
473
473
}
474
474
475
475
@ Override
You can’t perform that action at this time.
0 commit comments