File tree Expand file tree Collapse file tree 27 files changed +23
-59
lines changed
truffle/src/main/java/org/jruby/truffle Expand file tree Collapse file tree 27 files changed +23
-59
lines changed Original file line number Diff line number Diff line change 9
9
*/
10
10
package org .jruby .truffle ;
11
11
12
- import com .oracle .truffle .api .CompilerDirectives .TruffleBoundary ;
13
- import com .oracle .truffle .api .source .Source ;
14
- import com .oracle .truffle .api .vm .PolyglotEngine ;
15
12
import org .jruby .JRubyTruffleInterface ;
16
13
import org .jruby .RubyInstanceConfig ;
17
- import org .jruby .truffle .interop .InstanceConfigWrapper ;
18
- import org .jruby .truffle .platform .graal .Graal ;
19
- import org .jruby .util .cli .Options ;
20
14
21
15
import java .io .InputStream ;
22
16
Original file line number Diff line number Diff line change 49
49
import org .jruby .util .cli .Options ;
50
50
import org .jruby .util .cli .OutputStrings ;
51
51
52
- import java .io .File ;
53
- import java .io .FileInputStream ;
54
- import java .io .FileNotFoundException ;
55
52
import java .io .InputStream ;
56
53
import java .lang .management .ManagementFactory ;
57
54
Original file line number Diff line number Diff line change 13
13
import com .oracle .truffle .api .dsl .Specialization ;
14
14
import com .oracle .truffle .api .frame .VirtualFrame ;
15
15
import com .oracle .truffle .api .object .DynamicObject ;
16
-
17
- import java .util .Set ;
18
-
19
16
import org .jcodings .Encoding ;
20
17
import org .jcodings .specific .UTF8Encoding ;
21
18
import org .jruby .ext .rbconfig .RbConfigLibrary ;
26
23
import org .jruby .truffle .core .string .StringOperations ;
27
24
import org .jruby .util .unsafe .UnsafeHolder ;
28
25
26
+ import java .util .Set ;
27
+
29
28
@ CoreClass ("Truffle::System" )
30
29
public abstract class TruffleSystemNodes {
31
30
Original file line number Diff line number Diff line change 9
9
*/
10
10
package org .jruby .truffle .core .hash ;
11
11
12
+ import com .oracle .truffle .api .CompilerDirectives ;
13
+ import com .oracle .truffle .api .frame .VirtualFrame ;
12
14
import org .jruby .truffle .core .basicobject .BasicObjectNodes .ReferenceEqualNode ;
13
15
import org .jruby .truffle .core .basicobject .BasicObjectNodesFactory .ReferenceEqualNodeFactory ;
14
16
import org .jruby .truffle .core .kernel .KernelNodes .SameOrEqlNode ;
15
17
import org .jruby .truffle .core .kernel .KernelNodesFactory .SameOrEqlNodeFactory ;
16
18
import org .jruby .truffle .language .RubyBaseNode ;
17
19
18
- import com .oracle .truffle .api .CompilerDirectives ;
19
- import com .oracle .truffle .api .frame .VirtualFrame ;
20
-
21
20
public class CompareHashKeysNode extends RubyBaseNode {
22
21
23
22
@ Child private SameOrEqlNode sameOrEqlNode ;
Original file line number Diff line number Diff line change 9
9
*/
10
10
package org .jruby .truffle .core .hash ;
11
11
12
- import org .jruby .truffle .language .RubyNode ;
13
- import org .jruby .truffle .language .dispatch .CallDispatchHeadNode ;
14
- import org .jruby .truffle .language .dispatch .DispatchHeadNodeFactory ;
15
- import org .jruby .truffle .language .objects .IsFrozenNode ;
16
- import org .jruby .truffle .language .objects .IsFrozenNodeGen ;
17
-
18
12
import com .oracle .truffle .api .CompilerDirectives ;
19
13
import com .oracle .truffle .api .dsl .NodeChild ;
20
14
import com .oracle .truffle .api .dsl .NodeChildren ;
21
15
import com .oracle .truffle .api .dsl .Specialization ;
22
16
import com .oracle .truffle .api .frame .VirtualFrame ;
23
17
import com .oracle .truffle .api .object .DynamicObject ;
18
+ import org .jruby .truffle .language .RubyNode ;
19
+ import org .jruby .truffle .language .dispatch .CallDispatchHeadNode ;
20
+ import org .jruby .truffle .language .dispatch .DispatchHeadNodeFactory ;
21
+ import org .jruby .truffle .language .objects .IsFrozenNode ;
22
+ import org .jruby .truffle .language .objects .IsFrozenNodeGen ;
24
23
25
24
@ NodeChildren ({@ NodeChild ("key" ), @ NodeChild ("compareByIdentity" )})
26
25
public abstract class FreezeHashKeyIfNeededNode extends RubyNode {
Original file line number Diff line number Diff line change 12
12
import com .oracle .truffle .api .CompilerDirectives ;
13
13
import com .oracle .truffle .api .frame .VirtualFrame ;
14
14
import com .oracle .truffle .api .profiles .ConditionProfile ;
15
-
16
15
import org .jruby .truffle .core .ObjectNodes .ObjectIDPrimitiveNode ;
17
16
import org .jruby .truffle .core .ObjectNodesFactory .ObjectIDPrimitiveNodeFactory ;
18
17
import org .jruby .truffle .language .RubyBaseNode ;
Original file line number Diff line number Diff line change 9
9
*/
10
10
package org .jruby .truffle .core .hash ;
11
11
12
- import org .jruby .truffle .Layouts ;
13
- import org .jruby .truffle .language .RubyBaseNode ;
14
-
15
12
import com .oracle .truffle .api .frame .VirtualFrame ;
16
13
import com .oracle .truffle .api .object .DynamicObject ;
17
14
import com .oracle .truffle .api .profiles .ConditionProfile ;
15
+ import org .jruby .truffle .Layouts ;
16
+ import org .jruby .truffle .language .RubyBaseNode ;
18
17
19
18
public class LookupEntryNode extends RubyBaseNode {
20
19
Original file line number Diff line number Diff line change 9
9
*/
10
10
package org .jruby .truffle .core .hash ;
11
11
12
- import org .jruby .truffle .Layouts ;
13
- import org .jruby .truffle .language .RubyNode ;
14
-
15
12
import com .oracle .truffle .api .CompilerDirectives ;
16
13
import com .oracle .truffle .api .dsl .Cached ;
17
14
import com .oracle .truffle .api .dsl .ImportStatic ;
23
20
import com .oracle .truffle .api .object .DynamicObject ;
24
21
import com .oracle .truffle .api .profiles .BranchProfile ;
25
22
import com .oracle .truffle .api .profiles .ConditionProfile ;
23
+ import org .jruby .truffle .Layouts ;
24
+ import org .jruby .truffle .language .RubyNode ;
26
25
27
26
@ ImportStatic (HashGuards .class )
28
27
@ NodeChildren ({
Original file line number Diff line number Diff line change 68
68
import org .jruby .truffle .core .cast .ToPathNodeGen ;
69
69
import org .jruby .truffle .core .cast .ToStrNode ;
70
70
import org .jruby .truffle .core .cast .ToStrNodeGen ;
71
- import org .jruby .truffle .core .encoding .EncodingOperations ;
72
71
import org .jruby .truffle .core .format .BytesResult ;
73
72
import org .jruby .truffle .core .format .FormatExceptionTranslator ;
74
73
import org .jruby .truffle .core .format .exceptions .FormatException ;
Original file line number Diff line number Diff line change 10
10
11
11
package org .jruby .truffle .core .rope ;
12
12
13
- import com .oracle .truffle .api .CompilerDirectives ;
14
13
import org .jcodings .Encoding ;
15
14
16
15
public class AsciiOnlyLeafRope extends LeafRope {
Original file line number Diff line number Diff line change 9
9
*/
10
10
package org .jruby .truffle .core .rope ;
11
11
12
- import com .oracle .truffle .api .CompilerDirectives ;
13
12
import com .oracle .truffle .api .CompilerDirectives .TruffleBoundary ;
14
13
import org .jcodings .Encoding ;
15
14
Original file line number Diff line number Diff line change 10
10
11
11
package org .jruby .truffle .core .rope ;
12
12
13
- import com .oracle .truffle .api .CompilerDirectives ;
14
13
import org .jcodings .Encoding ;
15
14
16
15
public class InvalidLeafRope extends LeafRope {
Original file line number Diff line number Diff line change 9
9
*/
10
10
package org .jruby .truffle .core .rope ;
11
11
12
- import com .oracle .truffle .api .CompilerDirectives ;
13
12
import org .jcodings .Encoding ;
14
13
import org .jcodings .specific .USASCIIEncoding ;
15
14
Original file line number Diff line number Diff line change 21
21
*/
22
22
package org .jruby .truffle .core .rope ;
23
23
24
- import com .oracle .truffle .api .CompilerDirectives ;
25
24
import com .oracle .truffle .api .CompilerDirectives .TruffleBoundary ;
26
25
import com .oracle .truffle .api .object .DynamicObject ;
27
26
import org .jcodings .Encoding ;
33
32
import org .jruby .truffle .core .encoding .EncodingManager ;
34
33
import org .jruby .truffle .core .string .StringOperations ;
35
34
import org .jruby .truffle .language .RubyGuards ;
36
- import org .jruby .truffle .language .control .RaiseException ;
37
35
import org .jruby .truffle .util .StringUtils ;
38
36
import org .jruby .util .ByteList ;
39
37
import org .jruby .util .Memo ;
Original file line number Diff line number Diff line change 10
10
11
11
package org .jruby .truffle .core .rope ;
12
12
13
- import com .oracle .truffle .api .CompilerDirectives ;
14
13
import org .jcodings .Encoding ;
15
14
16
15
public class SubstringRope extends Rope {
Original file line number Diff line number Diff line change 10
10
11
11
package org .jruby .truffle .core .rope ;
12
12
13
- import com .oracle .truffle .api .CompilerDirectives ;
14
13
import org .jcodings .Encoding ;
15
14
16
15
public class ValidLeafRope extends LeafRope {
Original file line number Diff line number Diff line change 33
33
*/
34
34
package org .jruby .truffle .core .string ;
35
35
36
- import com .oracle .truffle .api .CompilerDirectives ;
37
36
import com .oracle .truffle .api .CompilerDirectives .TruffleBoundary ;
38
37
import com .oracle .truffle .api .object .DynamicObject ;
39
38
import org .jcodings .Encoding ;
46
45
import org .jruby .truffle .core .rope .RopeOperations ;
47
46
import org .jruby .truffle .language .RubyGuards ;
48
47
import org .jruby .truffle .util .ByteListUtils ;
49
- import org .jruby .truffle .util .StringUtils ;
50
48
import org .jruby .util .ByteList ;
51
49
52
50
import java .nio .ByteBuffer ;
Original file line number Diff line number Diff line change 50
50
import com .oracle .truffle .api .object .DynamicObject ;
51
51
import com .oracle .truffle .api .profiles .BranchProfile ;
52
52
import com .oracle .truffle .api .source .SourceSection ;
53
-
54
53
import org .jcodings .specific .USASCIIEncoding ;
55
54
import org .jruby .runtime .Visibility ;
56
55
import org .jruby .truffle .Layouts ;
Original file line number Diff line number Diff line change 42
42
import jnr .constants .platform .Errno ;
43
43
import org .jcodings .Encoding ;
44
44
import org .jcodings .specific .ASCIIEncoding ;
45
- import org .joda .time .DateTime ;
46
45
import org .joda .time .Chronology ;
46
+ import org .joda .time .DateTime ;
47
47
import org .joda .time .chrono .GJChronology ;
48
48
import org .joda .time .chrono .JulianChronology ;
49
49
import org .jruby .truffle .RubyContext ;
Original file line number Diff line number Diff line change 20
20
import com .oracle .truffle .api .profiles .BranchProfile ;
21
21
import com .oracle .truffle .api .source .SourceSection ;
22
22
import com .sun .security .auth .module .UnixSystem ;
23
-
24
23
import jnr .constants .platform .Fcntl ;
25
24
import jnr .ffi .Pointer ;
26
25
import org .jcodings .specific .UTF8Encoding ;
36
35
import org .jruby .truffle .extra .ffi .PointerPrimitiveNodes ;
37
36
import org .jruby .truffle .language .SnippetNode ;
38
37
import org .jruby .truffle .language .control .RaiseException ;
39
- import org .jruby .truffle .language .objects .AllocateObjectNode ;
40
38
import org .jruby .truffle .platform .UnsafeGroup ;
41
39
import org .jruby .truffle .platform .signal .Signal ;
42
40
Original file line number Diff line number Diff line change 11
11
12
12
import com .oracle .truffle .api .interop .ForeignAccess ;
13
13
import com .oracle .truffle .api .interop .TruffleObject ;
14
- import org .jruby .Ruby ;
15
14
import org .jruby .RubyInstanceConfig ;
16
15
17
16
public class InstanceConfigWrapper implements TruffleObject {
Original file line number Diff line number Diff line change 10
10
11
11
package org .jruby .truffle .language .globals ;
12
12
13
- import org .jruby .truffle .language .RubyNode ;
14
-
15
13
import com .oracle .truffle .api .frame .VirtualFrame ;
14
+ import org .jruby .truffle .language .RubyNode ;
16
15
17
16
public class AliasGlobalVarNode extends RubyNode {
18
17
Original file line number Diff line number Diff line change 9
9
*/
10
10
package org .jruby .truffle .platform .openjdk ;
11
11
12
+ import com .oracle .truffle .api .CompilerDirectives .TruffleBoundary ;
12
13
import org .jruby .truffle .core .queue .ArrayBlockingQueueLocksConditions ;
13
14
import org .jruby .truffle .core .queue .DelegatingBlockingQueue ;
14
15
import org .jruby .truffle .language .control .JavaException ;
15
16
16
- import com .oracle .truffle .api .CompilerDirectives .TruffleBoundary ;
17
-
18
17
import java .lang .invoke .MethodHandle ;
19
18
import java .util .concurrent .ArrayBlockingQueue ;
20
19
import java .util .concurrent .locks .Condition ;
Original file line number Diff line number Diff line change 9
9
*/
10
10
package org .jruby .truffle .platform .posix ;
11
11
12
+ import com .kenai .jffi .Platform ;
13
+ import com .kenai .jffi .Platform .OS ;
12
14
import jnr .constants .platform .Fcntl ;
13
15
import jnr .constants .platform .Signal ;
14
16
import jnr .constants .platform .Sysconf ;
21
23
import jnr .posix .Times ;
22
24
import org .jruby .truffle .core .CoreLibrary ;
23
25
24
- import com .kenai .jffi .Platform ;
25
- import com .kenai .jffi .Platform .OS ;
26
-
27
26
import java .io .FileDescriptor ;
28
27
import java .nio .ByteBuffer ;
29
28
import java .util .Collection ;
Original file line number Diff line number Diff line change 11
11
package org .jruby .truffle .platform .posix ;
12
12
13
13
import jnr .ffi .Pointer ;
14
-
15
14
import org .jruby .truffle .platform .FDSet ;
16
15
import org .jruby .truffle .util .StringUtils ;
17
16
Original file line number Diff line number Diff line change 11
11
package org .jruby .truffle .platform .posix ;
12
12
13
13
import jnr .ffi .Pointer ;
14
-
15
14
import org .jruby .truffle .platform .FDSet ;
16
15
import org .jruby .truffle .util .StringUtils ;
17
16
Original file line number Diff line number Diff line change 9
9
*/
10
10
package org .jruby .truffle .platform .solaris ;
11
11
12
+ import jnr .ffi .LibraryLoader ;
13
+ import jnr .ffi .Runtime ;
14
+ import jnr .ffi .provider .MemoryManager ;
15
+ import jnr .posix .POSIX ;
16
+ import jnr .posix .POSIXFactory ;
12
17
import org .jruby .truffle .RubyContext ;
13
18
import org .jruby .truffle .core .queue .ArrayBlockingQueueLocksConditions ;
14
19
import org .jruby .truffle .core .queue .LinkedBlockingQueueLocksConditions ;
29
34
import org .jruby .truffle .platform .signal .SignalManager ;
30
35
import org .jruby .truffle .platform .sunmisc .SunMiscSignalManager ;
31
36
32
- import jnr .ffi .LibraryLoader ;
33
- import jnr .ffi .Runtime ;
34
- import jnr .ffi .provider .MemoryManager ;
35
- import jnr .posix .POSIX ;
36
- import jnr .posix .POSIXFactory ;
37
-
38
37
public class SolarisPlatform implements NativePlatform {
39
38
40
39
private final TrufflePosix posix ;
You can’t perform that action at this time.
0 commit comments