File tree Expand file tree Collapse file tree 8 files changed +0
-23
lines changed
src/main/java/org/truffleruby Expand file tree Collapse file tree 8 files changed +0
-23
lines changed Original file line number Diff line number Diff line change 11
11
12
12
import org .truffleruby .core .symbol .RubySymbol ;
13
13
import org .truffleruby .language .RubyBaseNode ;
14
- import org .truffleruby .language .RubyGuards ;
15
14
16
15
import com .oracle .truffle .api .dsl .Cached ;
17
16
import com .oracle .truffle .api .dsl .GenerateUncached ;
18
- import com .oracle .truffle .api .dsl .ImportStatic ;
19
17
import com .oracle .truffle .api .dsl .ReportPolymorphism ;
20
18
import com .oracle .truffle .api .dsl .Specialization ;
21
19
import com .oracle .truffle .api .profiles .ConditionProfile ;
22
20
23
21
@ GenerateUncached
24
- @ ImportStatic (RubyGuards .class )
25
22
@ ReportPolymorphism
26
23
public abstract class SymbolToIDNode extends RubyBaseNode {
27
24
Original file line number Diff line number Diff line change 21
21
import org .truffleruby .language .NotProvided ;
22
22
import org .truffleruby .language .RubyBaseNode ;
23
23
import org .truffleruby .language .RubyDynamicObject ;
24
- import org .truffleruby .language .RubyGuards ;
25
24
import org .truffleruby .language .control .RaiseException ;
26
25
27
26
import com .oracle .truffle .api .dsl .Cached ;
28
27
import com .oracle .truffle .api .dsl .GenerateUncached ;
29
- import com .oracle .truffle .api .dsl .ImportStatic ;
30
28
import com .oracle .truffle .api .dsl .Specialization ;
31
29
import com .oracle .truffle .api .library .CachedLibrary ;
32
30
import com .oracle .truffle .api .object .DynamicObjectLibrary ;
35
33
import java .lang .invoke .VarHandle ;
36
34
37
35
@ GenerateUncached
38
- @ ImportStatic (RubyGuards .class )
39
36
public abstract class WrapNode extends RubyBaseNode {
40
37
41
38
public static WrapNode create () {
Original file line number Diff line number Diff line change 10
10
package org .truffleruby .core .cast ;
11
11
12
12
import com .oracle .truffle .api .CompilerDirectives .TruffleBoundary ;
13
- import com .oracle .truffle .api .dsl .ImportStatic ;
14
13
import com .oracle .truffle .api .dsl .NodeChild ;
15
14
import com .oracle .truffle .api .dsl .Specialization ;
16
15
import org .truffleruby .core .exception .RubyException ;
17
16
import org .truffleruby .core .numeric .BigIntegerOps ;
18
17
import org .truffleruby .core .numeric .RubyBignum ;
19
18
import org .truffleruby .language .RubyBaseNodeWithExecute ;
20
- import org .truffleruby .language .RubyGuards ;
21
19
import org .truffleruby .language .control .RaiseException ;
22
20
23
21
import java .math .BigInteger ;
24
22
25
23
/** Casts a value into a BigInteger. */
26
- @ ImportStatic (RubyGuards .class )
27
24
@ NodeChild (value = "value" , type = RubyBaseNodeWithExecute .class )
28
25
public abstract class BigIntegerCastNode extends RubyBaseNodeWithExecute {
29
26
Original file line number Diff line number Diff line change 10
10
package org .truffleruby .core .cast ;
11
11
12
12
import org .truffleruby .language .RubyBaseNode ;
13
- import org .truffleruby .language .RubyGuards ;
14
13
import org .truffleruby .language .control .RaiseException ;
15
14
16
15
import com .oracle .truffle .api .dsl .GenerateUncached ;
17
- import com .oracle .truffle .api .dsl .ImportStatic ;
18
16
import com .oracle .truffle .api .dsl .Specialization ;
19
17
import org .truffleruby .utils .Utils ;
20
18
21
19
/** See {@link ToIntNode} for a comparison of different integer conversion nodes. */
22
20
@ GenerateUncached
23
- @ ImportStatic (RubyGuards .class )
24
21
public abstract class IntegerCastNode extends RubyBaseNode {
25
22
26
23
public static IntegerCastNode create () {
Original file line number Diff line number Diff line change 10
10
package org .truffleruby .core .cast ;
11
11
12
12
import org .truffleruby .language .RubyBaseNode ;
13
- import org .truffleruby .language .RubyGuards ;
14
13
import org .truffleruby .language .control .RaiseException ;
15
14
16
15
import com .oracle .truffle .api .CompilerDirectives .TruffleBoundary ;
17
16
import com .oracle .truffle .api .dsl .GenerateUncached ;
18
- import com .oracle .truffle .api .dsl .ImportStatic ;
19
17
import com .oracle .truffle .api .dsl .Specialization ;
20
18
21
19
/** See {@link ToIntNode} for a comparison of different integer conversion nodes. */
22
20
@ GenerateUncached
23
- @ ImportStatic (RubyGuards .class )
24
21
public abstract class LongCastNode extends RubyBaseNode {
25
22
26
23
public static LongCastNode create () {
Original file line number Diff line number Diff line change 43
43
import org .truffleruby .core .string .ImmutableRubyString ;
44
44
import org .truffleruby .language .Nil ;
45
45
import org .truffleruby .language .RubyBaseNode ;
46
- import org .truffleruby .language .RubyGuards ;
47
46
import org .truffleruby .language .Visibility ;
48
47
import org .truffleruby .language .control .RaiseException ;
49
48
import org .truffleruby .language .library .RubyStringLibrary ;
@@ -729,7 +728,6 @@ protected int getIndex(RubyEncoding encoding) {
729
728
730
729
// MRI: rb_enc_check_str / rb_encoding_check (with Ruby String arguments)
731
730
@ Primitive (name = "encoding_ensure_compatible_str" )
732
- @ ImportStatic (RubyGuards .class )
733
731
public abstract static class CheckStringEncodingPrimitiveNode extends PrimitiveArrayArgumentsNode {
734
732
@ Specialization (guards = {
735
733
"libFirst.isRubyString(first)" ,
Original file line number Diff line number Diff line change 12
12
import com .oracle .truffle .api .dsl .Fallback ;
13
13
import org .truffleruby .core .string .RubyString ;
14
14
import org .truffleruby .language .RubyBaseNode ;
15
- import org .truffleruby .language .RubyGuards ;
16
15
17
16
import com .oracle .truffle .api .dsl .Cached ;
18
17
import com .oracle .truffle .api .dsl .GenerateUncached ;
19
- import com .oracle .truffle .api .dsl .ImportStatic ;
20
18
import com .oracle .truffle .api .dsl .Specialization ;
21
19
22
20
@ GenerateUncached
23
- @ ImportStatic (RubyGuards .class )
24
21
public abstract class ForeignToRubyNode extends RubyBaseNode {
25
22
26
23
public static ForeignToRubyNode create () {
Original file line number Diff line number Diff line change 17
17
import org .truffleruby .core .string .StringNodes ;
18
18
import org .truffleruby .core .string .StringOperations ;
19
19
import org .truffleruby .language .RubyBaseNode ;
20
- import org .truffleruby .language .RubyGuards ;
21
20
22
21
import com .oracle .truffle .api .dsl .Cached ;
23
22
import com .oracle .truffle .api .dsl .GenerateUncached ;
24
- import com .oracle .truffle .api .dsl .ImportStatic ;
25
23
import com .oracle .truffle .api .dsl .Specialization ;
26
24
27
25
@ GenerateUncached
28
- @ ImportStatic (RubyGuards .class )
29
26
public abstract class FromJavaStringNode extends RubyBaseNode {
30
27
31
28
public static FromJavaStringNode create () {
You can’t perform that action at this time.
0 commit comments