public class org.jruby.ext.stringio.StringIO extends org.jruby.RubyObject implements org.jruby.runtime.encoding.EncodingCapable, org.jruby.runtime.marshal.DataType
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.jruby.ext.stringio.StringIO
super_class: org.jruby.RubyObject
{
org.jruby.ext.stringio.StringIO$StringIOData ptr;
descriptor: Lorg/jruby/ext/stringio/StringIO$StringIOData;
flags: (0x0000)
private static final int STRIO_READABLE;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final int STRIO_WRITABLE;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final int STRIO_READWRITE;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static org.jruby.runtime.ObjectAllocator STRINGIO_ALLOCATOR;
descriptor: Lorg/jruby/runtime/ObjectAllocator;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private static final int CHAR_BIT;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 8
private static final org.jruby.util.io.Getline$Callback<org.jruby.ext.stringio.StringIO, org.jruby.runtime.builtin.IRubyObject> GETLINE;
descriptor: Lorg/jruby/util/io/Getline$Callback;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Lorg/jruby/util/io/Getline$Callback<Lorg/jruby/ext/stringio/StringIO;Lorg/jruby/runtime/builtin/IRubyObject;>;
private static final org.jruby.util.io.Getline$Callback<org.jruby.ext.stringio.StringIO, org.jruby.ext.stringio.StringIO> GETLINE_YIELD;
descriptor: Lorg/jruby/util/io/Getline$Callback;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Lorg/jruby/util/io/Getline$Callback<Lorg/jruby/ext/stringio/StringIO;Lorg/jruby/ext/stringio/StringIO;>;
private static final org.jruby.util.io.Getline$Callback<org.jruby.ext.stringio.StringIO, org.jruby.RubyArray> GETLINE_ARY;
descriptor: Lorg/jruby/util/io/Getline$Callback;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Lorg/jruby/util/io/Getline$Callback<Lorg/jruby/ext/stringio/StringIO;Lorg/jruby/RubyArray;>;
public static final org.jruby.util.ByteList NEWLINE;
descriptor: Lorg/jruby/util/ByteList;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: getstatic org.jruby.ObjectFlags.STRIO_READABLE:I
putstatic org.jruby.ext.stringio.StringIO.STRIO_READABLE:I
1: getstatic org.jruby.ObjectFlags.STRIO_WRITABLE:I
putstatic org.jruby.ext.stringio.StringIO.STRIO_WRITABLE:I
2: getstatic org.jruby.ext.stringio.StringIO.STRIO_READABLE:I
getstatic org.jruby.ext.stringio.StringIO.STRIO_WRITABLE:I
ior
putstatic org.jruby.ext.stringio.StringIO.STRIO_READWRITE:I
3: new org.jruby.ext.stringio.StringIO$1
dup
invokespecial org.jruby.ext.stringio.StringIO$1.<init>:()V
putstatic org.jruby.ext.stringio.StringIO.STRINGIO_ALLOCATOR:Lorg/jruby/runtime/ObjectAllocator;
4: new org.jruby.ext.stringio.StringIO$2
dup
invokespecial org.jruby.ext.stringio.StringIO$2.<init>:()V
putstatic org.jruby.ext.stringio.StringIO.GETLINE:Lorg/jruby/util/io/Getline$Callback;
5: new org.jruby.ext.stringio.StringIO$3
dup
invokespecial org.jruby.ext.stringio.StringIO$3.<init>:()V
putstatic org.jruby.ext.stringio.StringIO.GETLINE_YIELD:Lorg/jruby/util/io/Getline$Callback;
6: new org.jruby.ext.stringio.StringIO$4
dup
invokespecial org.jruby.ext.stringio.StringIO$4.<init>:()V
putstatic org.jruby.ext.stringio.StringIO.GETLINE_ARY:Lorg/jruby/util/io/Getline$Callback;
7: ldc "\n"
invokestatic org.jruby.util.ByteList.create:(Ljava/lang/CharSequence;)Lorg/jruby/util/ByteList;
putstatic org.jruby.ext.stringio.StringIO.NEWLINE:Lorg/jruby/util/ByteList;
return
LocalVariableTable:
Start End Slot Name Signature
public static org.jruby.RubyClass createStringIOClass(org.jruby.Ruby);
descriptor: (Lorg/jruby/Ruby;)Lorg/jruby/RubyClass;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=4, args_size=1
start local 0 0: aload 0
1: ldc "StringIO"
aload 0
invokevirtual org.jruby.Ruby.getData:()Lorg/jruby/RubyClass;
getstatic org.jruby.ext.stringio.StringIO.STRINGIO_ALLOCATOR:Lorg/jruby/runtime/ObjectAllocator;
2: invokevirtual org.jruby.Ruby.defineClass:(Ljava/lang/String;Lorg/jruby/RubyClass;Lorg/jruby/runtime/ObjectAllocator;)Lorg/jruby/RubyClass;
astore 1
start local 1 3: aload 1
ldc Lorg/jruby/ext/stringio/StringIO;
invokevirtual org.jruby.RubyClass.defineAnnotatedMethods:(Ljava/lang/Class;)V
4: aload 1
aload 0
invokevirtual org.jruby.Ruby.getEnumerable:()Lorg/jruby/RubyModule;
invokevirtual org.jruby.RubyClass.includeModule:(Lorg/jruby/runtime/builtin/IRubyObject;)V
5: aload 0
invokevirtual org.jruby.Ruby.getObject:()Lorg/jruby/RubyClass;
ldc "Java"
invokevirtual org.jruby.RubyClass.isConstantDefined:(Ljava/lang/String;)Z
ifeq 7
6: aload 1
ldc Lorg/jruby/java/addons/IOJavaAddons$AnyIO;
invokevirtual org.jruby.RubyClass.defineAnnotatedMethods:(Ljava/lang/Class;)V
7: StackMap locals: org.jruby.RubyClass
StackMap stack:
aload 0
invokevirtual org.jruby.Ruby.getIO:()Lorg/jruby/RubyClass;
ldc "GenericReadable"
invokevirtual org.jruby.RubyClass.defineOrGetModuleUnder:(Ljava/lang/String;)Lorg/jruby/RubyModule;
astore 2
start local 2 8: aload 2
ldc Lorg/jruby/ext/stringio/StringIO$GenericReadable;
invokevirtual org.jruby.RubyModule.defineAnnotatedMethods:(Ljava/lang/Class;)V
9: aload 1
aload 2
invokevirtual org.jruby.RubyClass.includeModule:(Lorg/jruby/runtime/builtin/IRubyObject;)V
10: aload 0
invokevirtual org.jruby.Ruby.getIO:()Lorg/jruby/RubyClass;
ldc "GenericWritable"
invokevirtual org.jruby.RubyClass.defineOrGetModuleUnder:(Ljava/lang/String;)Lorg/jruby/RubyModule;
astore 3
start local 3 11: aload 3
ldc Lorg/jruby/ext/stringio/StringIO$GenericWritable;
invokevirtual org.jruby.RubyModule.defineAnnotatedMethods:(Ljava/lang/Class;)V
12: aload 1
aload 3
invokevirtual org.jruby.RubyClass.includeModule:(Lorg/jruby/runtime/builtin/IRubyObject;)V
13: aload 1
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 runtime Lorg/jruby/Ruby;
3 14 1 stringIOClass Lorg/jruby/RubyClass;
8 14 2 genericReadable Lorg/jruby/RubyModule;
11 14 3 genericWritable Lorg/jruby/RubyModule;
MethodParameters:
Name Flags
runtime final
public org.jcodings.Encoding getEncoding();
descriptor: ()Lorg/jcodings/Encoding;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.ext.stringio.StringIO.ptr:Lorg/jruby/ext/stringio/StringIO$StringIOData;
getfield org.jruby.ext.stringio.StringIO$StringIOData.enc:Lorg/jcodings/Encoding;
ifnull 1
aload 0
getfield org.jruby.ext.stringio.StringIO.ptr:Lorg/jruby/ext/stringio/StringIO$StringIOData;
getfield org.jruby.ext.stringio.StringIO$StringIOData.enc:Lorg/jcodings/Encoding;
goto 2
StackMap locals:
StackMap stack:
1: aload 0
getfield org.jruby.ext.stringio.StringIO.ptr:Lorg/jruby/ext/stringio/StringIO$StringIOData;
getfield org.jruby.ext.stringio.StringIO$StringIOData.string:Lorg/jruby/RubyString;
invokevirtual org.jruby.RubyString.getEncoding:()Lorg/jcodings/Encoding;
StackMap locals:
StackMap stack: org.jcodings.Encoding
2: areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/ext/stringio/StringIO;
public void setEncoding(org.jcodings.Encoding);
descriptor: (Lorg/jcodings/Encoding;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.jruby.ext.stringio.StringIO.ptr:Lorg/jruby/ext/stringio/StringIO$StringIOData;
aload 1
putfield org.jruby.ext.stringio.StringIO$StringIOData.enc:Lorg/jcodings/Encoding;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/ext/stringio/StringIO;
0 2 1 enc Lorg/jcodings/Encoding;
MethodParameters:
Name Flags
enc
public static org.jruby.runtime.builtin.IRubyObject newInstance(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject[], org.jruby.runtime.Block);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;[Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
aload 2
aload 3
invokestatic org.jruby.RubyIO.newInstance:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;[Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 context Lorg/jruby/runtime/ThreadContext;
0 1 1 recv Lorg/jruby/runtime/builtin/IRubyObject;
0 1 2 args [Lorg/jruby/runtime/builtin/IRubyObject;
0 1 3 block Lorg/jruby/runtime/Block;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"new"}, rest = true, meta = true)
MethodParameters:
Name Flags
context
recv
args
block
public static org.jruby.runtime.builtin.IRubyObject open(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject[], org.jruby.runtime.Block);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;[Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=7, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
checkcast org.jruby.RubyClass
aload 0
aload 2
getstatic org.jruby.runtime.Block.NULL_BLOCK:Lorg/jruby/runtime/Block;
invokevirtual org.jruby.RubyClass.newInstance:(Lorg/jruby/runtime/ThreadContext;[Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
checkcast org.jruby.ext.stringio.StringIO
astore 4
start local 4 1: aload 4
astore 5
start local 5 2: aload 3
invokevirtual org.jruby.runtime.Block.isGiven:()Z
ifeq 11
3: aload 3
aload 0
aload 4
invokevirtual org.jruby.runtime.Block.yield:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
astore 5
4: goto 9
StackMap locals: org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject org.jruby.runtime.builtin.IRubyObject[] org.jruby.runtime.Block org.jruby.ext.stringio.StringIO org.jruby.runtime.builtin.IRubyObject
StackMap stack: java.lang.Throwable
5: astore 6
6: aload 4
getfield org.jruby.ext.stringio.StringIO.ptr:Lorg/jruby/ext/stringio/StringIO$StringIOData;
aconst_null
putfield org.jruby.ext.stringio.StringIO$StringIOData.string:Lorg/jruby/RubyString;
7: aload 4
dup
getfield org.jruby.ext.stringio.StringIO.flags:I
getstatic org.jruby.ext.stringio.StringIO.STRIO_READWRITE:I
iconst_m1
ixor
iand
putfield org.jruby.ext.stringio.StringIO.flags:I
8: aload 6
athrow
9: StackMap locals:
StackMap stack:
aload 4
getfield org.jruby.ext.stringio.StringIO.ptr:Lorg/jruby/ext/stringio/StringIO$StringIOData;
aconst_null
putfield org.jruby.ext.stringio.StringIO$StringIOData.string:Lorg/jruby/RubyString;
10: aload 4
dup
getfield org.jruby.ext.stringio.StringIO.flags:I
getstatic org.jruby.ext.stringio.StringIO.STRIO_READWRITE:I
iconst_m1
ixor
iand
putfield org.jruby.ext.stringio.StringIO.flags:I
11: StackMap locals:
StackMap stack:
aload 5
areturn
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 context Lorg/jruby/runtime/ThreadContext;
0 12 1 recv Lorg/jruby/runtime/builtin/IRubyObject;
0 12 2 args [Lorg/jruby/runtime/builtin/IRubyObject;
0 12 3 block Lorg/jruby/runtime/Block;
1 12 4 strio Lorg/jruby/ext/stringio/StringIO;
2 12 5 val Lorg/jruby/runtime/builtin/IRubyObject;
Exception table:
from to target type
3 5 5 any
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(meta = true, rest = true)
MethodParameters:
Name Flags
context
recv
args
block
protected void <init>(org.jruby.Ruby, org.jruby.RubyClass);
descriptor: (Lorg/jruby/Ruby;Lorg/jruby/RubyClass;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
invokespecial org.jruby.RubyObject.<init>:(Lorg/jruby/Ruby;Lorg/jruby/RubyClass;)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/ext/stringio/StringIO;
0 2 1 runtime Lorg/jruby/Ruby;
0 2 2 klass Lorg/jruby/RubyClass;
MethodParameters:
Name Flags
runtime
klass
public org.jruby.runtime.builtin.IRubyObject initialize(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject[]);
descriptor: (Lorg/jruby/runtime/ThreadContext;[Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.jruby.ext.stringio.StringIO.ptr:Lorg/jruby/ext/stringio/StringIO$StringIOData;
ifnonnull 2
1: aload 0
new org.jruby.ext.stringio.StringIO$StringIOData
dup
invokespecial org.jruby.ext.stringio.StringIO$StringIOData.<init>:()V
putfield org.jruby.ext.stringio.StringIO.ptr:Lorg/jruby/ext/stringio/StringIO$StringIOData;
2: StackMap locals:
StackMap stack:
aload 0
aload 1
aload 2
invokevirtual org.jruby.ext.stringio.StringIO.strioInit:(Lorg/jruby/runtime/ThreadContext;[Lorg/jruby/runtime/builtin/IRubyObject;)V
3: aload 0
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/jruby/ext/stringio/StringIO;
0 4 1 context Lorg/jruby/runtime/ThreadContext;
0 4 2 args [Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(optional = 2, visibility = org.jruby.runtime.Visibility.PRIVATE:Lorg/jruby/runtime/Visibility;)
MethodParameters:
Name Flags
context
args
private void strioInit(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject[]);
descriptor: (Lorg/jruby/runtime/ThreadContext;[Lorg/jruby/runtime/builtin/IRubyObject;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=10, args_size=3
start local 0 start local 1 start local 2 0: aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
astore 3
start local 3 1: aload 0
getfield org.jruby.ext.stringio.StringIO.ptr:Lorg/jruby/ext/stringio/StringIO$StringIOData;
astore 6
start local 6 2: aload 6
dup
astore 7
monitorenter
3: aload 2
arraylength
tableswitch { // 0 - 2
0: 28
1: 23
2: 4
default: 31
}
4: StackMap locals: org.jruby.ext.stringio.StringIO org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject[] org.jruby.Ruby top top org.jruby.ext.stringio.StringIO$StringIOData org.jruby.ext.stringio.StringIO$StringIOData
StackMap stack:
aload 2
iconst_1
aaload
astore 5
start local 5 5: aload 5
instanceof org.jruby.RubyFixnum
ifeq 12
6: aload 5
invokestatic org.jruby.RubyFixnum.fix2int:(Lorg/jruby/runtime/builtin/IRubyObject;)I
istore 9
start local 9 7: aload 6
iload 9
invokestatic org.jruby.util.io.ModeFlags.getOpenFileFlagsFor:(I)I
putfield org.jruby.ext.stringio.StringIO$StringIOData.flags:I
8: iload 9
getstatic org.jruby.util.io.ModeFlags.TRUNC:I
iand
ifeq 9
iconst_1
goto 10
StackMap locals: org.jruby.ext.stringio.StringIO org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject[] org.jruby.Ruby top org.jruby.runtime.builtin.IRubyObject org.jruby.ext.stringio.StringIO$StringIOData org.jruby.ext.stringio.StringIO$StringIOData top int
StackMap stack:
9: iconst_0
StackMap locals:
StackMap stack: int
10: istore 8
end local 9 start local 8 11: goto 17
end local 8 12: StackMap locals: org.jruby.ext.stringio.StringIO org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject[] org.jruby.Ruby top org.jruby.runtime.builtin.IRubyObject org.jruby.ext.stringio.StringIO$StringIOData org.jruby.ext.stringio.StringIO$StringIOData
StackMap stack:
aload 2
iconst_1
aaload
invokeinterface org.jruby.runtime.builtin.IRubyObject.convertToString:()Lorg/jruby/RubyString;
invokevirtual org.jruby.RubyString.toString:()Ljava/lang/String;
astore 9
start local 9 13: aload 6
aload 3
aload 9
invokestatic org.jruby.util.io.OpenFile.ioModestrFmode:(Lorg/jruby/Ruby;Ljava/lang/String;)I
putfield org.jruby.ext.stringio.StringIO$StringIOData.flags:I
14: aload 9
invokevirtual java.lang.String.length:()I
ifle 15
aload 9
iconst_0
invokevirtual java.lang.String.charAt:(I)C
bipush 119
if_icmpne 15
iconst_1
goto 16
StackMap locals: org.jruby.ext.stringio.StringIO org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject[] org.jruby.Ruby top org.jruby.runtime.builtin.IRubyObject org.jruby.ext.stringio.StringIO$StringIOData org.jruby.ext.stringio.StringIO$StringIOData top java.lang.String
StackMap stack:
15: iconst_0
StackMap locals:
StackMap stack: int
16: istore 8
end local 9 start local 8 17: StackMap locals: org.jruby.ext.stringio.StringIO org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject[] org.jruby.Ruby top org.jruby.runtime.builtin.IRubyObject org.jruby.ext.stringio.StringIO$StringIOData org.jruby.ext.stringio.StringIO$StringIOData int
StackMap stack:
aload 2
iconst_0
aaload
invokeinterface org.jruby.runtime.builtin.IRubyObject.convertToString:()Lorg/jruby/RubyString;
astore 4
start local 4 18: aload 6
getfield org.jruby.ext.stringio.StringIO$StringIOData.flags:I
iconst_2
iand
ifeq 20
aload 4
invokevirtual org.jruby.RubyString.isFrozen:()Z
ifeq 20
19: aload 3
ldc "Permission denied"
invokevirtual org.jruby.Ruby.newErrnoEACCESError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
20: StackMap locals: org.jruby.ext.stringio.StringIO org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject[] org.jruby.Ruby org.jruby.RubyString org.jruby.runtime.builtin.IRubyObject org.jruby.ext.stringio.StringIO$StringIOData org.jruby.ext.stringio.StringIO$StringIOData int
StackMap stack:
iload 8
ifeq 32
21: aload 4
iconst_0
invokevirtual org.jruby.RubyString.resize:(I)V
22: goto 32
end local 8 end local 5 end local 4 23: StackMap locals: org.jruby.ext.stringio.StringIO org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject[] org.jruby.Ruby top top org.jruby.ext.stringio.StringIO$StringIOData org.jruby.ext.stringio.StringIO$StringIOData
StackMap stack:
aload 2
iconst_0
aaload
invokeinterface org.jruby.runtime.builtin.IRubyObject.convertToString:()Lorg/jruby/RubyString;
astore 4
start local 4 24: aload 6
aload 4
invokevirtual org.jruby.RubyString.isFrozen:()Z
ifeq 25
iconst_1
goto 26
StackMap locals: org.jruby.ext.stringio.StringIO org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject[] org.jruby.Ruby org.jruby.RubyString top org.jruby.ext.stringio.StringIO$StringIOData org.jruby.ext.stringio.StringIO$StringIOData
StackMap stack: org.jruby.ext.stringio.StringIO$StringIOData
25: iconst_3
StackMap locals: org.jruby.ext.stringio.StringIO org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject[] org.jruby.Ruby org.jruby.RubyString top org.jruby.ext.stringio.StringIO$StringIOData org.jruby.ext.stringio.StringIO$StringIOData
StackMap stack: org.jruby.ext.stringio.StringIO$StringIOData int
26: putfield org.jruby.ext.stringio.StringIO$StringIOData.flags:I
27: goto 32
end local 4 28: StackMap locals: org.jruby.ext.stringio.StringIO org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject[] org.jruby.Ruby top top org.jruby.ext.stringio.StringIO$StringIOData org.jruby.ext.stringio.StringIO$StringIOData
StackMap stack:
aload 3
aload 3
invokevirtual org.jruby.Ruby.getDefaultExternalEncoding:()Lorg/jcodings/Encoding;
invokestatic org.jruby.RubyString.newEmptyString:(Lorg/jruby/Ruby;Lorg/jcodings/Encoding;)Lorg/jruby/RubyString;
astore 4
start local 4 29: aload 6
iconst_3
putfield org.jruby.ext.stringio.StringIO$StringIOData.flags:I
30: goto 32
end local 4 31: StackMap locals:
StackMap stack:
aload 3
aload 2
arraylength
iconst_2
invokevirtual org.jruby.Ruby.newArgumentError:(II)Lorg/jruby/exceptions/RaiseException;
athrow
start local 4 32: StackMap locals: org.jruby.ext.stringio.StringIO org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject[] org.jruby.Ruby org.jruby.RubyString top org.jruby.ext.stringio.StringIO$StringIOData org.jruby.ext.stringio.StringIO$StringIOData
StackMap stack:
aload 6
aload 4
putfield org.jruby.ext.stringio.StringIO$StringIOData.string:Lorg/jruby/RubyString;
33: aload 6
aconst_null
putfield org.jruby.ext.stringio.StringIO$StringIOData.enc:Lorg/jcodings/Encoding;
34: aload 6
iconst_0
putfield org.jruby.ext.stringio.StringIO$StringIOData.pos:I
35: aload 6
iconst_0
putfield org.jruby.ext.stringio.StringIO$StringIOData.lineno:I
36: aload 0
dup
getfield org.jruby.ext.stringio.StringIO.flags:I
aload 6
getfield org.jruby.ext.stringio.StringIO$StringIOData.flags:I
iconst_3
iand
getstatic org.jruby.ext.stringio.StringIO.STRIO_READABLE:I
iconst_1
idiv
imul
ior
putfield org.jruby.ext.stringio.StringIO.flags:I
37: aload 7
monitorexit
38: goto 41
end local 4 StackMap locals: org.jruby.ext.stringio.StringIO org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject[] org.jruby.Ruby top top org.jruby.ext.stringio.StringIO$StringIOData org.jruby.ext.stringio.StringIO$StringIOData
StackMap stack: java.lang.Throwable
39: aload 7
monitorexit
40: athrow
start local 4 41: StackMap locals: org.jruby.ext.stringio.StringIO org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject[] org.jruby.Ruby org.jruby.RubyString top org.jruby.ext.stringio.StringIO$StringIOData
StackMap stack:
return
end local 6 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 42 0 this Lorg/jruby/ext/stringio/StringIO;
0 42 1 context Lorg/jruby/runtime/ThreadContext;
0 42 2 args [Lorg/jruby/runtime/builtin/IRubyObject;
1 42 3 runtime Lorg/jruby/Ruby;
18 23 4 string Lorg/jruby/RubyString;
24 28 4 string Lorg/jruby/RubyString;
29 31 4 string Lorg/jruby/RubyString;
32 39 4 string Lorg/jruby/RubyString;
41 42 4 string Lorg/jruby/RubyString;
5 23 5 mode Lorg/jruby/runtime/builtin/IRubyObject;
2 42 6 ptr Lorg/jruby/ext/stringio/StringIO$StringIOData;
11 12 8 trunc Z
17 23 8 trunc Z
7 11 9 flags I
13 17 9 m Ljava/lang/String;
Exception table:
from to target type
3 38 39 any
39 40 39 any
MethodParameters:
Name Flags
context
args
public org.jruby.runtime.builtin.IRubyObject initialize_copy(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 2
1: aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
ldc "StringIO"
invokevirtual org.jruby.Ruby.getClass:(Ljava/lang/String;)Lorg/jruby/RubyClass;
ldc "to_strio"
2: invokestatic org.jruby.util.TypeConverter.convertToType:(Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/RubyClass;Ljava/lang/String;)Lorg/jruby/runtime/builtin/IRubyObject;
checkcast org.jruby.ext.stringio.StringIO
astore 3
start local 3 3: aload 0
aload 3
if_acmpne 4
aload 0
areturn
4: StackMap locals: org.jruby.ext.stringio.StringIO
StackMap stack:
aload 0
aload 3
getfield org.jruby.ext.stringio.StringIO.ptr:Lorg/jruby/ext/stringio/StringIO$StringIOData;
putfield org.jruby.ext.stringio.StringIO.ptr:Lorg/jruby/ext/stringio/StringIO$StringIOData;
5: aload 0
aload 3
invokevirtual org.jruby.ext.stringio.StringIO.infectBy:(Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
pop
6: aload 0
dup
getfield org.jruby.ext.stringio.StringIO.flags:I
getstatic org.jruby.ext.stringio.StringIO.STRIO_READWRITE:I
iconst_m1
ixor
iand
putfield org.jruby.ext.stringio.StringIO.flags:I
7: aload 0
dup
getfield org.jruby.ext.stringio.StringIO.flags:I
aload 3
getfield org.jruby.ext.stringio.StringIO.flags:I
getstatic org.jruby.ext.stringio.StringIO.STRIO_READWRITE:I
iand
ior
putfield org.jruby.ext.stringio.StringIO.flags:I
8: aload 0
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/jruby/ext/stringio/StringIO;
0 9 1 context Lorg/jruby/runtime/ThreadContext;
0 9 2 other Lorg/jruby/runtime/builtin/IRubyObject;
3 9 3 otherIO Lorg/jruby/ext/stringio/StringIO;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(visibility = org.jruby.runtime.Visibility.PRIVATE:Lorg/jruby/runtime/Visibility;)
MethodParameters:
Name Flags
context
other
public org.jruby.runtime.builtin.IRubyObject binmode(org.jruby.runtime.ThreadContext);
descriptor: (Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.jruby.ext.stringio.StringIO.ptr:Lorg/jruby/ext/stringio/StringIO$StringIOData;
aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
invokestatic org.jruby.util.io.EncodingUtils.ascii8bitEncoding:(Lorg/jruby/Ruby;)Lorg/jcodings/Encoding;
putfield org.jruby.ext.stringio.StringIO$StringIOData.enc:Lorg/jcodings/Encoding;
1: aload 0
invokevirtual org.jruby.ext.stringio.StringIO.writable:()Z
ifeq 2
aload 0
getfield org.jruby.ext.stringio.StringIO.ptr:Lorg/jruby/ext/stringio/StringIO$StringIOData;
getfield org.jruby.ext.stringio.StringIO$StringIOData.string:Lorg/jruby/RubyString;
aload 0
getfield org.jruby.ext.stringio.StringIO.ptr:Lorg/jruby/ext/stringio/StringIO$StringIOData;
getfield org.jruby.ext.stringio.StringIO$StringIOData.enc:Lorg/jcodings/Encoding;
invokevirtual org.jruby.RubyString.setEncoding:(Lorg/jcodings/Encoding;)V
2: StackMap locals:
StackMap stack:
aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/ext/stringio/StringIO;
0 3 1 context Lorg/jruby/runtime/ThreadContext;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod()
MethodParameters:
Name Flags
context
public org.jruby.runtime.builtin.IRubyObject strio_self();
descriptor: ()Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ext/stringio/StringIO;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"flush"})
public org.jruby.runtime.builtin.IRubyObject strio_unimpl(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject[]);
descriptor: (Lorg/jruby/runtime/ThreadContext;[Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
ldc ""
invokevirtual org.jruby.Ruby.newNotImplementedError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ext/stringio/StringIO;
0 1 1 context Lorg/jruby/runtime/ThreadContext;
0 1 2 args [Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"fcntl"}, rest = true)
MethodParameters:
Name Flags
context
args
public org.jruby.runtime.builtin.IRubyObject strioZero(org.jruby.runtime.ThreadContext);
descriptor: (Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
invokestatic org.jruby.RubyFixnum.zero:(Lorg/jruby/Ruby;)Lorg/jruby/RubyFixnum;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ext/stringio/StringIO;
0 1 1 context Lorg/jruby/runtime/ThreadContext;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"fsync"})
MethodParameters:
Name Flags
context
public org.jruby.runtime.builtin.IRubyObject strioFirst(org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.jruby.ext.stringio.StringIO.checkInitialized:()V
1: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/ext/stringio/StringIO;
0 2 1 arg Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"sync="})
MethodParameters:
Name Flags
arg
public org.jruby.runtime.builtin.IRubyObject strioFalse(org.jruby.runtime.ThreadContext);
descriptor: (Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 1
getfield org.jruby.runtime.ThreadContext.fals:Lorg/jruby/RubyBoolean;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ext/stringio/StringIO;
0 1 1 context Lorg/jruby/runtime/ThreadContext;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"isatty", "tty?"})
MethodParameters:
Name Flags
context
public org.jruby.runtime.builtin.IRubyObject strioNil(org.jruby.runtime.ThreadContext);
descriptor: (Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 1
getfield org.jruby.runtime.ThreadContext.nil:Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ext/stringio/StringIO;
0 1 1 context Lorg/jruby/runtime/ThreadContext;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"pid", "fileno"})
MethodParameters:
Name Flags
context
public org.jruby.runtime.builtin.IRubyObject close(org.jruby.runtime.ThreadContext);
descriptor: (Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.jruby.ext.stringio.StringIO.checkInitialized:()V
1: aload 0
invokevirtual org.jruby.ext.stringio.StringIO.closed:()Z
ifeq 2
aload 1
getfield org.jruby.runtime.ThreadContext.nil:Lorg/jruby/runtime/builtin/IRubyObject;
areturn
2: StackMap locals:
StackMap stack:
aload 0
dup
getfield org.jruby.ext.stringio.StringIO.flags:I
getstatic org.jruby.ext.stringio.StringIO.STRIO_READWRITE:I
iconst_m1
ixor
iand
putfield org.jruby.ext.stringio.StringIO.flags:I
3: aload 1
getfield org.jruby.runtime.ThreadContext.nil:Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/jruby/ext/stringio/StringIO;
0 4 1 context Lorg/jruby/runtime/ThreadContext;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod()
MethodParameters:
Name Flags
context
public org.jruby.runtime.builtin.IRubyObject closed_p();
descriptor: ()Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.jruby.ext.stringio.StringIO.checkInitialized:()V
1: aload 0
invokevirtual org.jruby.ext.stringio.StringIO.getRuntime:()Lorg/jruby/Ruby;
aload 0
invokevirtual org.jruby.ext.stringio.StringIO.closed:()Z
invokevirtual org.jruby.Ruby.newBoolean:(Z)Lorg/jruby/RubyBoolean;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/ext/stringio/StringIO;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"closed?"})
public org.jruby.runtime.builtin.IRubyObject close_read(org.jruby.runtime.ThreadContext);
descriptor: (Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.jruby.ext.stringio.StringIO.checkInitialized:()V
1: aload 0
getfield org.jruby.ext.stringio.StringIO.ptr:Lorg/jruby/ext/stringio/StringIO$StringIOData;
getfield org.jruby.ext.stringio.StringIO$StringIOData.flags:I
iconst_1
iand
ifne 3
2: aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
ldc "not opened for reading"
invokevirtual org.jruby.Ruby.newIOError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
3: StackMap locals:
StackMap stack:
aload 0
getfield org.jruby.ext.stringio.StringIO.flags:I
getstatic org.jruby.ext.stringio.StringIO.STRIO_READABLE:I
iand
ifeq 5
4: aload 0
dup
getfield org.jruby.ext.stringio.StringIO.flags:I
getstatic org.jruby.ext.stringio.StringIO.STRIO_READABLE:I
iconst_m1
ixor
iand
putfield org.jruby.ext.stringio.StringIO.flags:I
5: StackMap locals:
StackMap stack:
aload 1
getfield org.jruby.runtime.ThreadContext.nil:Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/jruby/ext/stringio/StringIO;
0 6 1 context Lorg/jruby/runtime/ThreadContext;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod()
MethodParameters:
Name Flags
context
public org.jruby.runtime.builtin.IRubyObject closed_read_p();
descriptor: ()Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.jruby.ext.stringio.StringIO.checkInitialized:()V
1: aload 0
invokevirtual org.jruby.ext.stringio.StringIO.getRuntime:()Lorg/jruby/Ruby;
aload 0
invokevirtual org.jruby.ext.stringio.StringIO.readable:()Z
ifeq 2
iconst_0
goto 3
StackMap locals:
StackMap stack: org.jruby.Ruby
2: iconst_1
StackMap locals: org.jruby.ext.stringio.StringIO
StackMap stack: org.jruby.Ruby int
3: invokevirtual org.jruby.Ruby.newBoolean:(Z)Lorg/jruby/RubyBoolean;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/jruby/ext/stringio/StringIO;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"closed_read?"})
public org.jruby.runtime.builtin.IRubyObject close_write(org.jruby.runtime.ThreadContext);
descriptor: (Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.jruby.ext.stringio.StringIO.checkInitialized:()V
1: aload 0
getfield org.jruby.ext.stringio.StringIO.ptr:Lorg/jruby/ext/stringio/StringIO$StringIOData;
getfield org.jruby.ext.stringio.StringIO$StringIOData.flags:I
iconst_2
iand
ifne 3
2: aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
ldc "not opened for writing"
invokevirtual org.jruby.Ruby.newIOError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
3: StackMap locals:
StackMap stack:
aload 0
getfield org.jruby.ext.stringio.StringIO.flags:I
getstatic org.jruby.ext.stringio.StringIO.STRIO_WRITABLE:I
iand
ifeq 5
4: aload 0
dup
getfield org.jruby.ext.stringio.StringIO.flags:I
getstatic org.jruby.ext.stringio.StringIO.STRIO_WRITABLE:I
iconst_m1
ixor
iand
putfield org.jruby.ext.stringio.StringIO.flags:I
5: StackMap locals:
StackMap stack:
aload 1
getfield org.jruby.runtime.ThreadContext.nil:Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/jruby/ext/stringio/StringIO;
0 6 1 context Lorg/jruby/runtime/ThreadContext;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod()
MethodParameters:
Name Flags
context
public org.jruby.runtime.builtin.IRubyObject closed_write_p();
descriptor: ()Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.jruby.ext.stringio.StringIO.checkInitialized:()V
1: aload 0
invokevirtual org.jruby.ext.stringio.StringIO.getRuntime:()Lorg/jruby/Ruby;
aload 0
invokevirtual org.jruby.ext.stringio.StringIO.writable:()Z
ifeq 2
iconst_0
goto 3
StackMap locals:
StackMap stack: org.jruby.Ruby
2: iconst_1
StackMap locals: org.jruby.ext.stringio.StringIO
StackMap stack: org.jruby.Ruby int
3: invokevirtual org.jruby.Ruby.newBoolean:(Z)Lorg/jruby/RubyBoolean;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/jruby/ext/stringio/StringIO;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"closed_write?"})
public org.jruby.runtime.builtin.IRubyObject each(org.jruby.runtime.ThreadContext, org.jruby.runtime.Block);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=9, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 2
invokevirtual org.jruby.runtime.Block.isGiven:()Z
ifne 1
aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
aload 0
ldc "each"
invokestatic org.jruby.RubyEnumerator.enumeratorize:(Lorg/jruby/Ruby;Lorg/jruby/runtime/builtin/IRubyObject;Ljava/lang/String;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
1: StackMap locals:
StackMap stack:
aload 1
getstatic org.jruby.ext.stringio.StringIO.GETLINE_YIELD:Lorg/jruby/util/io/Getline$Callback;
aload 0
aload 0
invokevirtual org.jruby.ext.stringio.StringIO.getEncoding:()Lorg/jcodings/Encoding;
iconst_0
aconst_null
aconst_null
aconst_null
aload 2
invokestatic org.jruby.util.io.Getline.getlineCall:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/util/io/Getline$Callback;Ljava/lang/Object;Lorg/jcodings/Encoding;ILorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/ext/stringio/StringIO;
0 2 1 context Lorg/jruby/runtime/ThreadContext;
0 2 2 block Lorg/jruby/runtime/Block;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"each"}, writes = {org.jruby.anno.FrameField.LASTLINE:Lorg/jruby/anno/FrameField;})
MethodParameters:
Name Flags
context
block
public org.jruby.runtime.builtin.IRubyObject each(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.Block);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=9, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 3
invokevirtual org.jruby.runtime.Block.isGiven:()Z
ifne 1
aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
aload 0
ldc "each"
aload 2
invokestatic org.jruby.RubyEnumerator.enumeratorize:(Lorg/jruby/Ruby;Lorg/jruby/runtime/builtin/IRubyObject;Ljava/lang/String;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
1: StackMap locals:
StackMap stack:
aload 1
getstatic org.jruby.ext.stringio.StringIO.GETLINE_YIELD:Lorg/jruby/util/io/Getline$Callback;
aload 0
aload 0
invokevirtual org.jruby.ext.stringio.StringIO.getEncoding:()Lorg/jcodings/Encoding;
iconst_1
aload 2
aconst_null
aconst_null
aload 3
invokestatic org.jruby.util.io.Getline.getlineCall:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/util/io/Getline$Callback;Ljava/lang/Object;Lorg/jcodings/Encoding;ILorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/ext/stringio/StringIO;
0 2 1 context Lorg/jruby/runtime/ThreadContext;
0 2 2 arg0 Lorg/jruby/runtime/builtin/IRubyObject;
0 2 3 block Lorg/jruby/runtime/Block;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"each"}, writes = {org.jruby.anno.FrameField.LASTLINE:Lorg/jruby/anno/FrameField;})
MethodParameters:
Name Flags
context
arg0
block
public org.jruby.runtime.builtin.IRubyObject each(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.Block);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=9, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 4
invokevirtual org.jruby.runtime.Block.isGiven:()Z
ifne 1
aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
aload 0
ldc "each"
iconst_2
anewarray org.jruby.runtime.builtin.IRubyObject
dup
iconst_0
aload 2
aastore
dup
iconst_1
aload 3
aastore
invokestatic org.jruby.runtime.Helpers.arrayOf:([Ljava/lang/Object;)[Ljava/lang/Object;
checkcast org.jruby.runtime.builtin.IRubyObject[]
invokestatic org.jruby.RubyEnumerator.enumeratorize:(Lorg/jruby/Ruby;Lorg/jruby/runtime/builtin/IRubyObject;Ljava/lang/String;[Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
1: StackMap locals:
StackMap stack:
aload 1
getstatic org.jruby.ext.stringio.StringIO.GETLINE_YIELD:Lorg/jruby/util/io/Getline$Callback;
aload 0
aload 0
invokevirtual org.jruby.ext.stringio.StringIO.getEncoding:()Lorg/jcodings/Encoding;
iconst_2
aload 2
aload 3
aconst_null
aload 4
invokestatic org.jruby.util.io.Getline.getlineCall:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/util/io/Getline$Callback;Ljava/lang/Object;Lorg/jcodings/Encoding;ILorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/ext/stringio/StringIO;
0 2 1 context Lorg/jruby/runtime/ThreadContext;
0 2 2 arg0 Lorg/jruby/runtime/builtin/IRubyObject;
0 2 3 arg1 Lorg/jruby/runtime/builtin/IRubyObject;
0 2 4 block Lorg/jruby/runtime/Block;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"each"}, writes = {org.jruby.anno.FrameField.LASTLINE:Lorg/jruby/anno/FrameField;})
MethodParameters:
Name Flags
context
arg0
arg1
block
public org.jruby.runtime.builtin.IRubyObject each(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.Block);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=9, locals=6, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: aload 5
invokevirtual org.jruby.runtime.Block.isGiven:()Z
ifne 1
aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
aload 0
ldc "each"
iconst_3
anewarray org.jruby.runtime.builtin.IRubyObject
dup
iconst_0
aload 2
aastore
dup
iconst_1
aload 3
aastore
dup
iconst_2
aload 4
aastore
invokestatic org.jruby.runtime.Helpers.arrayOf:([Ljava/lang/Object;)[Ljava/lang/Object;
checkcast org.jruby.runtime.builtin.IRubyObject[]
invokestatic org.jruby.RubyEnumerator.enumeratorize:(Lorg/jruby/Ruby;Lorg/jruby/runtime/builtin/IRubyObject;Ljava/lang/String;[Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
1: StackMap locals:
StackMap stack:
aload 1
getstatic org.jruby.ext.stringio.StringIO.GETLINE_YIELD:Lorg/jruby/util/io/Getline$Callback;
aload 0
aload 0
invokevirtual org.jruby.ext.stringio.StringIO.getEncoding:()Lorg/jcodings/Encoding;
iconst_3
aload 2
aload 3
aload 4
aload 5
invokestatic org.jruby.util.io.Getline.getlineCall:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/util/io/Getline$Callback;Ljava/lang/Object;Lorg/jcodings/Encoding;ILorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/ext/stringio/StringIO;
0 2 1 context Lorg/jruby/runtime/ThreadContext;
0 2 2 arg0 Lorg/jruby/runtime/builtin/IRubyObject;
0 2 3 arg1 Lorg/jruby/runtime/builtin/IRubyObject;
0 2 4 arg2 Lorg/jruby/runtime/builtin/IRubyObject;
0 2 5 block Lorg/jruby/runtime/Block;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"each"})
MethodParameters:
Name Flags
context
arg0
arg1
arg2
block
public org.jruby.runtime.builtin.IRubyObject each(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject[], org.jruby.runtime.Block);
descriptor: (Lorg/jruby/runtime/ThreadContext;[Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 3
invokevirtual org.jruby.runtime.Block.isGiven:()Z
ifne 1
aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
aload 0
ldc "each"
aload 2
invokestatic org.jruby.RubyEnumerator.enumeratorize:(Lorg/jruby/Ruby;Lorg/jruby/runtime/builtin/IRubyObject;Ljava/lang/String;[Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
1: StackMap locals:
StackMap stack:
aload 2
arraylength
tableswitch { // 0 - 3
0: 2
1: 3
2: 4
3: 5
default: 6
}
2: StackMap locals:
StackMap stack:
aload 0
aload 1
aload 3
invokevirtual org.jruby.ext.stringio.StringIO.each:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
3: StackMap locals:
StackMap stack:
aload 0
aload 1
aload 2
iconst_0
aaload
aload 3
invokevirtual org.jruby.ext.stringio.StringIO.each:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
4: StackMap locals:
StackMap stack:
aload 0
aload 1
aload 2
iconst_0
aaload
aload 2
iconst_1
aaload
aload 3
invokevirtual org.jruby.ext.stringio.StringIO.each:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
5: StackMap locals:
StackMap stack:
aload 0
aload 1
aload 2
iconst_0
aaload
aload 2
iconst_1
aaload
aload 2
iconst_2
aaload
aload 3
invokevirtual org.jruby.ext.stringio.StringIO.each:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
6: StackMap locals:
StackMap stack:
aload 1
aload 2
arraylength
iconst_0
iconst_3
invokestatic org.jruby.runtime.Arity.raiseArgumentError:(Lorg/jruby/runtime/ThreadContext;III)V
7: new java.lang.AssertionError
dup
ldc "BUG"
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/jruby/ext/stringio/StringIO;
0 8 1 context Lorg/jruby/runtime/ThreadContext;
0 8 2 args [Lorg/jruby/runtime/builtin/IRubyObject;
0 8 3 block Lorg/jruby/runtime/Block;
MethodParameters:
Name Flags
context
args
block
public org.jruby.runtime.builtin.IRubyObject each_line(org.jruby.runtime.ThreadContext, org.jruby.runtime.Block);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 2
invokevirtual org.jruby.runtime.Block.isGiven:()Z
ifne 1
aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
aload 0
ldc "each_line"
invokestatic org.jruby.RubyEnumerator.enumeratorize:(Lorg/jruby/Ruby;Lorg/jruby/runtime/builtin/IRubyObject;Ljava/lang/String;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
1: StackMap locals:
StackMap stack:
aload 0
aload 1
aload 2
invokevirtual org.jruby.ext.stringio.StringIO.each:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/ext/stringio/StringIO;
0 2 1 context Lorg/jruby/runtime/ThreadContext;
0 2 2 block Lorg/jruby/runtime/Block;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"each_line"})
MethodParameters:
Name Flags
context
block
public org.jruby.runtime.builtin.IRubyObject each_line(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.Block);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 3
invokevirtual org.jruby.runtime.Block.isGiven:()Z
ifne 1
aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
aload 0
ldc "each_line"
aload 2
invokestatic org.jruby.RubyEnumerator.enumeratorize:(Lorg/jruby/Ruby;Lorg/jruby/runtime/builtin/IRubyObject;Ljava/lang/String;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
1: StackMap locals:
StackMap stack:
aload 0
aload 1
aload 2
aload 3
invokevirtual org.jruby.ext.stringio.StringIO.each:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/ext/stringio/StringIO;
0 2 1 context Lorg/jruby/runtime/ThreadContext;
0 2 2 arg0 Lorg/jruby/runtime/builtin/IRubyObject;
0 2 3 block Lorg/jruby/runtime/Block;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"each_line"})
MethodParameters:
Name Flags
context
arg0
block
public org.jruby.runtime.builtin.IRubyObject each_line(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.Block);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 4
invokevirtual org.jruby.runtime.Block.isGiven:()Z
ifne 1
aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
aload 0
ldc "each_line"
iconst_2
anewarray org.jruby.runtime.builtin.IRubyObject
dup
iconst_0
aload 2
aastore
dup
iconst_1
aload 3
aastore
invokestatic org.jruby.RubyEnumerator.enumeratorize:(Lorg/jruby/Ruby;Lorg/jruby/runtime/builtin/IRubyObject;Ljava/lang/String;[Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
1: StackMap locals:
StackMap stack:
aload 0
aload 1
aload 2
aload 3
aload 4
invokevirtual org.jruby.ext.stringio.StringIO.each:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/ext/stringio/StringIO;
0 2 1 context Lorg/jruby/runtime/ThreadContext;
0 2 2 arg0 Lorg/jruby/runtime/builtin/IRubyObject;
0 2 3 arg1 Lorg/jruby/runtime/builtin/IRubyObject;
0 2 4 block Lorg/jruby/runtime/Block;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"each_line"})
MethodParameters:
Name Flags
context
arg0
arg1
block
public org.jruby.runtime.builtin.IRubyObject each_line(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.Block);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=6, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: aload 5
invokevirtual org.jruby.runtime.Block.isGiven:()Z
ifne 1
aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
aload 0
ldc "each_line"
iconst_3
anewarray org.jruby.runtime.builtin.IRubyObject
dup
iconst_0
aload 2
aastore
dup
iconst_1
aload 3
aastore
dup
iconst_2
aload 4
aastore
invokestatic org.jruby.RubyEnumerator.enumeratorize:(Lorg/jruby/Ruby;Lorg/jruby/runtime/builtin/IRubyObject;Ljava/lang/String;[Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
1: StackMap locals:
StackMap stack:
aload 0
aload 1
aload 2
aload 3
aload 4
aload 5
invokevirtual org.jruby.ext.stringio.StringIO.each:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/ext/stringio/StringIO;
0 2 1 context Lorg/jruby/runtime/ThreadContext;
0 2 2 arg0 Lorg/jruby/runtime/builtin/IRubyObject;
0 2 3 arg1 Lorg/jruby/runtime/builtin/IRubyObject;
0 2 4 arg2 Lorg/jruby/runtime/builtin/IRubyObject;
0 2 5 block Lorg/jruby/runtime/Block;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"each_line"})
MethodParameters:
Name Flags
context
arg0
arg1
arg2
block
public org.jruby.runtime.builtin.IRubyObject each_line(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject[], org.jruby.runtime.Block);
descriptor: (Lorg/jruby/runtime/ThreadContext;[Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 3
invokevirtual org.jruby.runtime.Block.isGiven:()Z
ifne 1
aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
aload 0
ldc "each_line"
aload 2
invokestatic org.jruby.RubyEnumerator.enumeratorize:(Lorg/jruby/Ruby;Lorg/jruby/runtime/builtin/IRubyObject;Ljava/lang/String;[Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
1: StackMap locals:
StackMap stack:
aload 2
arraylength
tableswitch { // 0 - 3
0: 2
1: 3
2: 4
3: 5
default: 6
}
2: StackMap locals:
StackMap stack:
aload 0
aload 1
aload 3
invokevirtual org.jruby.ext.stringio.StringIO.each_line:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
3: StackMap locals:
StackMap stack:
aload 0
aload 1
aload 2
iconst_0
aaload
aload 3
invokevirtual org.jruby.ext.stringio.StringIO.each_line:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
4: StackMap locals:
StackMap stack:
aload 0
aload 1
aload 2
iconst_0
aaload
aload 2
iconst_1
aaload
aload 3
invokevirtual org.jruby.ext.stringio.StringIO.each_line:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
5: StackMap locals:
StackMap stack:
aload 0
aload 1
aload 2
iconst_0
aaload
aload 2
iconst_1
aaload
aload 2
iconst_2
aaload
aload 3
invokevirtual org.jruby.ext.stringio.StringIO.each_line:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
6: StackMap locals:
StackMap stack:
aload 1
aload 2
arraylength
iconst_0
iconst_3
invokestatic org.jruby.runtime.Arity.raiseArgumentError:(Lorg/jruby/runtime/ThreadContext;III)V
7: new java.lang.AssertionError
dup
ldc "BUG"
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/jruby/ext/stringio/StringIO;
0 8 1 context Lorg/jruby/runtime/ThreadContext;
0 8 2 args [Lorg/jruby/runtime/builtin/IRubyObject;
0 8 3 block Lorg/jruby/runtime/Block;
MethodParameters:
Name Flags
context
args
block
public org.jruby.runtime.builtin.IRubyObject lines(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject[], org.jruby.runtime.Block);
descriptor: (Lorg/jruby/runtime/ThreadContext;[Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
invokevirtual org.jruby.Ruby.getWarnings:()Lorg/jruby/common/RubyWarnings;
ldc "StringIO#lines is deprecated; use #each_line instead"
invokevirtual org.jruby.common.RubyWarnings.warn:(Ljava/lang/String;)V
1: aload 3
invokevirtual org.jruby.runtime.Block.isGiven:()Z
ifeq 2
aload 0
aload 1
aload 2
aload 3
invokevirtual org.jruby.ext.stringio.StringIO.each:(Lorg/jruby/runtime/ThreadContext;[Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
goto 3
StackMap locals:
StackMap stack:
2: aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
aload 0
ldc "each_line"
aload 2
invokestatic org.jruby.RubyEnumerator.enumeratorize:(Lorg/jruby/Ruby;Lorg/jruby/runtime/builtin/IRubyObject;Ljava/lang/String;[Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
StackMap locals:
StackMap stack: org.jruby.runtime.builtin.IRubyObject
3: areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/jruby/ext/stringio/StringIO;
0 4 1 context Lorg/jruby/runtime/ThreadContext;
0 4 2 args [Lorg/jruby/runtime/builtin/IRubyObject;
0 4 3 block Lorg/jruby/runtime/Block;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"lines"}, optional = 2)
MethodParameters:
Name Flags
context
args
block
public org.jruby.runtime.builtin.IRubyObject each_byte(org.jruby.runtime.ThreadContext, org.jruby.runtime.Block);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=8, locals=7, args_size=3
start local 0 start local 1 start local 2 0: aload 2
invokevirtual org.jruby.runtime.Block.isGiven:()Z
ifne 1
aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
aload 0
ldc "each_byte"
invokestatic org.jruby.RubyEnumerator.enumeratorize:(Lorg/jruby/Ruby;Lorg/jruby/runtime/builtin/IRubyObject;Ljava/lang/String;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
1: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.jruby.ext.stringio.StringIO.checkReadable:()V
2: aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
astore 3
start local 3 3: aload 0
getfield org.jruby.ext.stringio.StringIO.ptr:Lorg/jruby/ext/stringio/StringIO$StringIOData;
astore 4
start local 4 4: aload 4
dup
astore 5
monitorenter
5: aload 4
getfield org.jruby.ext.stringio.StringIO$StringIOData.string:Lorg/jruby/RubyString;
invokevirtual org.jruby.RubyString.getByteList:()Lorg/jruby/util/ByteList;
astore 6
start local 6 6: goto 8
7: StackMap locals: org.jruby.ext.stringio.StringIO org.jruby.runtime.ThreadContext org.jruby.runtime.Block org.jruby.Ruby org.jruby.ext.stringio.StringIO$StringIOData org.jruby.ext.stringio.StringIO$StringIOData org.jruby.util.ByteList
StackMap stack:
aload 2
aload 1
aload 3
aload 6
aload 4
dup
getfield org.jruby.ext.stringio.StringIO$StringIOData.pos:I
dup_x1
iconst_1
iadd
putfield org.jruby.ext.stringio.StringIO$StringIOData.pos:I
invokevirtual org.jruby.util.ByteList.get:(I)I
sipush 255
iand
invokevirtual org.jruby.Ruby.newFixnum:(I)Lorg/jruby/RubyFixnum;
invokevirtual org.jruby.runtime.Block.yield:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
pop
8: StackMap locals:
StackMap stack:
aload 4
getfield org.jruby.ext.stringio.StringIO$StringIOData.pos:I
aload 6
invokevirtual org.jruby.util.ByteList.length:()I
if_icmplt 7
end local 6 9: aload 5
monitorexit
10: goto 13
StackMap locals: org.jruby.ext.stringio.StringIO org.jruby.runtime.ThreadContext org.jruby.runtime.Block org.jruby.Ruby org.jruby.ext.stringio.StringIO$StringIOData org.jruby.ext.stringio.StringIO$StringIOData
StackMap stack: java.lang.Throwable
11: aload 5
monitorexit
12: athrow
13: StackMap locals:
StackMap stack:
aload 0
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lorg/jruby/ext/stringio/StringIO;
0 14 1 context Lorg/jruby/runtime/ThreadContext;
0 14 2 block Lorg/jruby/runtime/Block;
3 14 3 runtime Lorg/jruby/Ruby;
4 14 4 ptr Lorg/jruby/ext/stringio/StringIO$StringIOData;
6 9 6 bytes Lorg/jruby/util/ByteList;
Exception table:
from to target type
5 10 11 any
11 12 11 any
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"each_byte", "bytes"})
MethodParameters:
Name Flags
context
block
public org.jruby.runtime.builtin.IRubyObject each_char(org.jruby.runtime.ThreadContext, org.jruby.runtime.Block);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 2
invokevirtual org.jruby.runtime.Block.isGiven:()Z
ifne 2
aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
aload 0
ldc "each_char"
invokestatic org.jruby.RubyEnumerator.enumeratorize:(Lorg/jruby/Ruby;Lorg/jruby/runtime/builtin/IRubyObject;Ljava/lang/String;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
start local 3 1: StackMap locals: org.jruby.runtime.builtin.IRubyObject
StackMap stack:
aload 2
aload 1
aload 3
invokevirtual org.jruby.runtime.Block.yieldSpecific:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
pop
end local 3 2: StackMap locals:
StackMap stack:
aload 0
aload 1
invokevirtual org.jruby.ext.stringio.StringIO.getc:(Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/runtime/builtin/IRubyObject;
dup
astore 3
start local 3 3: invokeinterface org.jruby.runtime.builtin.IRubyObject.isNil:()Z
ifeq 1
4: aload 0
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/jruby/ext/stringio/StringIO;
0 5 1 context Lorg/jruby/runtime/ThreadContext;
0 5 2 block Lorg/jruby/runtime/Block;
1 2 3 c Lorg/jruby/runtime/builtin/IRubyObject;
3 5 3 c Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod()
MethodParameters:
Name Flags
context final
block final
public org.jruby.runtime.builtin.IRubyObject chars(org.jruby.runtime.ThreadContext, org.jruby.runtime.Block);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
invokevirtual org.jruby.Ruby.getWarnings:()Lorg/jruby/common/RubyWarnings;
ldc "StringIO#chars is deprecated; use #each_char instead"
invokevirtual org.jruby.common.RubyWarnings.warn:(Ljava/lang/String;)V
1: aload 0
aload 1
aload 2
invokevirtual org.jruby.ext.stringio.StringIO.each_char:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/ext/stringio/StringIO;
0 2 1 context Lorg/jruby/runtime/ThreadContext;
0 2 2 block Lorg/jruby/runtime/Block;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod()
MethodParameters:
Name Flags
context final
block final
public org.jruby.runtime.builtin.IRubyObject eof(org.jruby.runtime.ThreadContext);
descriptor: (Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.jruby.ext.stringio.StringIO.checkReadable:()V
1: aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
astore 2
start local 2 2: aload 0
getfield org.jruby.ext.stringio.StringIO.ptr:Lorg/jruby/ext/stringio/StringIO$StringIOData;
getfield org.jruby.ext.stringio.StringIO$StringIOData.pos:I
aload 0
getfield org.jruby.ext.stringio.StringIO.ptr:Lorg/jruby/ext/stringio/StringIO$StringIOData;
getfield org.jruby.ext.stringio.StringIO$StringIOData.string:Lorg/jruby/RubyString;
invokevirtual org.jruby.RubyString.size:()I
if_icmpge 3
aload 2
invokevirtual org.jruby.Ruby.getFalse:()Lorg/jruby/RubyBoolean;
areturn
3: StackMap locals: org.jruby.Ruby
StackMap stack:
aload 2
invokevirtual org.jruby.Ruby.getTrue:()Lorg/jruby/RubyBoolean;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/jruby/ext/stringio/StringIO;
0 4 1 context Lorg/jruby/runtime/ThreadContext;
2 4 2 runtime Lorg/jruby/Ruby;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"eof", "eof?"})
MethodParameters:
Name Flags
context
private boolean isEndOfString();
descriptor: ()Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.ext.stringio.StringIO.ptr:Lorg/jruby/ext/stringio/StringIO$StringIOData;
getfield org.jruby.ext.stringio.StringIO$StringIOData.pos:I
aload 0
getfield org.jruby.ext.stringio.StringIO.ptr:Lorg/jruby/ext/stringio/StringIO$StringIOData;
getfield org.jruby.ext.stringio.StringIO$StringIOData.string:Lorg/jruby/RubyString;
invokevirtual org.jruby.RubyString.size:()I
if_icmplt 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/ext/stringio/StringIO;
public org.jruby.runtime.builtin.IRubyObject getc(org.jruby.runtime.ThreadContext);
descriptor: (Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=6, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.jruby.ext.stringio.StringIO.checkReadable:()V
1: aload 0
invokevirtual org.jruby.ext.stringio.StringIO.isEndOfString:()Z
ifeq 2
aload 1
getfield org.jruby.runtime.ThreadContext.nil:Lorg/jruby/runtime/builtin/IRubyObject;
areturn
2: StackMap locals:
StackMap stack:
aload 0
getfield org.jruby.ext.stringio.StringIO.ptr:Lorg/jruby/ext/stringio/StringIO$StringIOData;
astore 2
start local 2 3: aload 2
dup
astore 3
monitorenter
4: aload 2
getfield org.jruby.ext.stringio.StringIO$StringIOData.pos:I
istore 4
start local 4 5: iconst_1
aload 2
getfield org.jruby.ext.stringio.StringIO$StringIOData.string:Lorg/jruby/RubyString;
invokevirtual org.jruby.RubyString.getByteList:()Lorg/jruby/util/ByteList;
iload 4
iconst_1
iadd
invokestatic org.jruby.util.StringSupport.bytesToFixBrokenTrailingCharacter:(Lorg/jruby/util/ByteList;I)I
iadd
istore 5
start local 5 6: aload 2
dup
getfield org.jruby.ext.stringio.StringIO$StringIOData.pos:I
iload 5
iadd
putfield org.jruby.ext.stringio.StringIO$StringIOData.pos:I
7: aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
aload 2
getfield org.jruby.ext.stringio.StringIO$StringIOData.string:Lorg/jruby/RubyString;
invokevirtual org.jruby.RubyString.getByteList:()Lorg/jruby/util/ByteList;
iload 4
iload 5
invokevirtual org.jruby.util.ByteList.makeShared:(II)Lorg/jruby/util/ByteList;
invokevirtual org.jruby.Ruby.newString:(Lorg/jruby/util/ByteList;)Lorg/jruby/RubyString;
aload 3
monitorexit
8: areturn
end local 5 end local 4 9: StackMap locals: org.jruby.ext.stringio.StringIO org.jruby.runtime.ThreadContext org.jruby.ext.stringio.StringIO$StringIOData org.jruby.ext.stringio.StringIO$StringIOData
StackMap stack: java.lang.Throwable
aload 3
monitorexit
10: athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lorg/jruby/ext/stringio/StringIO;
0 11 1 context Lorg/jruby/runtime/ThreadContext;
3 11 2 ptr Lorg/jruby/ext/stringio/StringIO$StringIOData;
5 9 4 start I
6 9 5 total I
Exception table:
from to target type
4 8 9 any
9 10 9 any
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"getc"})
MethodParameters:
Name Flags
context
public org.jruby.runtime.builtin.IRubyObject getbyte(org.jruby.runtime.ThreadContext);
descriptor: (Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=5, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.jruby.ext.stringio.StringIO.checkReadable:()V
1: aload 0
invokevirtual org.jruby.ext.stringio.StringIO.isEndOfString:()Z
ifeq 2
aload 1
getfield org.jruby.runtime.ThreadContext.nil:Lorg/jruby/runtime/builtin/IRubyObject;
areturn
2: StackMap locals:
StackMap stack:
aload 0
getfield org.jruby.ext.stringio.StringIO.ptr:Lorg/jruby/ext/stringio/StringIO$StringIOData;
astore 3
start local 3 3: aload 3
dup
astore 4
monitorenter
4: aload 3
getfield org.jruby.ext.stringio.StringIO$StringIOData.string:Lorg/jruby/RubyString;
invokevirtual org.jruby.RubyString.getByteList:()Lorg/jruby/util/ByteList;
aload 0
getfield org.jruby.ext.stringio.StringIO.ptr:Lorg/jruby/ext/stringio/StringIO$StringIOData;
dup
getfield org.jruby.ext.stringio.StringIO$StringIOData.pos:I
dup_x1
iconst_1
iadd
putfield org.jruby.ext.stringio.StringIO$StringIOData.pos:I
invokevirtual org.jruby.util.ByteList.get:(I)I
sipush 255
iand
istore 2
start local 2 5: aload 4
monitorexit
6: goto 9
end local 2 StackMap locals: org.jruby.ext.stringio.StringIO org.jruby.runtime.ThreadContext top org.jruby.ext.stringio.StringIO$StringIOData org.jruby.ext.stringio.StringIO$StringIOData
StackMap stack: java.lang.Throwable
7: aload 4
monitorexit
8: athrow
start local 2 9: StackMap locals: org.jruby.ext.stringio.StringIO org.jruby.runtime.ThreadContext int org.jruby.ext.stringio.StringIO$StringIOData
StackMap stack:
aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
iload 2
invokevirtual org.jruby.Ruby.newFixnum:(I)Lorg/jruby/RubyFixnum;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lorg/jruby/ext/stringio/StringIO;
0 10 1 context Lorg/jruby/runtime/ThreadContext;
5 7 2 c I
9 10 2 c I
3 10 3 ptr Lorg/jruby/ext/stringio/StringIO$StringIOData;
Exception table:
from to target type
4 6 7 any
7 8 7 any
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"getbyte"})
MethodParameters:
Name Flags
context
private org.jruby.RubyString strioSubstr(org.jruby.Ruby, int, int, org.jcodings.Encoding);
descriptor: (Lorg/jruby/Ruby;IILorg/jcodings/Encoding;)Lorg/jruby/RubyString;
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=10, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
getfield org.jruby.ext.stringio.StringIO.ptr:Lorg/jruby/ext/stringio/StringIO$StringIOData;
astore 5
start local 5 1: aload 5
dup
astore 6
monitorenter
2: aload 5
getfield org.jruby.ext.stringio.StringIO$StringIOData.string:Lorg/jruby/RubyString;
astore 7
start local 7 3: aload 7
invokevirtual org.jruby.RubyString.getByteList:()Lorg/jruby/util/ByteList;
astore 8
start local 8 4: aload 7
invokevirtual org.jruby.RubyString.size:()I
iload 2
isub
istore 9
start local 9 5: iload 3
iload 9
if_icmple 6
iload 9
istore 3
6: StackMap locals: org.jruby.ext.stringio.StringIO org.jruby.Ruby int int org.jcodings.Encoding org.jruby.ext.stringio.StringIO$StringIOData org.jruby.ext.stringio.StringIO$StringIOData org.jruby.RubyString org.jruby.util.ByteList int
StackMap stack:
iload 3
ifge 7
iconst_0
istore 3
7: StackMap locals:
StackMap stack:
iload 3
ifne 9
aload 1
aload 4
invokestatic org.jruby.RubyString.newEmptyString:(Lorg/jruby/Ruby;Lorg/jcodings/Encoding;)Lorg/jruby/RubyString;
aload 6
monitorexit
8: areturn
9: StackMap locals:
StackMap stack:
aload 7
invokevirtual org.jruby.RubyString.setByteListShared:()V
10: aload 1
aload 8
invokevirtual org.jruby.util.ByteList.getUnsafeBytes:()[B
aload 8
invokevirtual org.jruby.util.ByteList.getBegin:()I
iload 2
iadd
iload 3
aload 4
invokestatic org.jruby.RubyString.newStringShared:(Lorg/jruby/Ruby;[BIILorg/jcodings/Encoding;)Lorg/jruby/RubyString;
aload 6
monitorexit
11: areturn
end local 9 end local 8 end local 7 12: StackMap locals: org.jruby.ext.stringio.StringIO org.jruby.Ruby int int org.jcodings.Encoding org.jruby.ext.stringio.StringIO$StringIOData org.jruby.ext.stringio.StringIO$StringIOData
StackMap stack: java.lang.Throwable
aload 6
monitorexit
13: athrow
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lorg/jruby/ext/stringio/StringIO;
0 14 1 runtime Lorg/jruby/Ruby;
0 14 2 pos I
0 14 3 len I
0 14 4 enc Lorg/jcodings/Encoding;
1 14 5 ptr Lorg/jruby/ext/stringio/StringIO$StringIOData;
3 12 7 string Lorg/jruby/RubyString;
4 12 8 stringBytes Lorg/jruby/util/ByteList;
5 12 9 rlen I
Exception table:
from to target type
2 8 12 any
9 11 12 any
12 13 12 any
MethodParameters:
Name Flags
runtime
pos
len
enc
private static void bm_init_skip(int[], byte[], int, int);
descriptor: ([I[BII)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: iconst_0
istore 4
start local 4 1: goto 4
2: StackMap locals: int
StackMap stack:
aload 0
iload 4
iload 3
iastore
3: iinc 4 1
StackMap locals:
StackMap stack:
4: iload 4
sipush 256
if_icmplt 2
5: goto 7
6: StackMap locals:
StackMap stack:
aload 0
aload 1
iload 2
iinc 2 1
baload
iload 3
iastore
7: StackMap locals:
StackMap stack:
iinc 3 -1
iload 3
ifgt 6
8: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 skip [I
0 9 1 pat [B
0 9 2 patPtr I
0 9 3 m I
1 9 4 c I
MethodParameters:
Name Flags
skip
pat
patPtr
m
private static int bm_search(byte[], int, int, byte[], int, int, int[]);
descriptor: ([BII[BII[I)I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=10, args_size=7
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 start local 6 0: iload 2
iconst_1
isub
istore 7
start local 7 1: goto 10
2: StackMap locals: int
StackMap stack:
iload 7
istore 9
start local 9 3: iload 2
iconst_1
isub
istore 8
start local 8 4: goto 7
5: StackMap locals: int int
StackMap stack:
iinc 9 -1
6: iinc 8 -1
7: StackMap locals:
StackMap stack:
iload 8
iflt 8
aload 3
iload 9
iload 4
iadd
baload
aload 0
iload 8
iload 1
iadd
baload
if_icmpeq 5
8: StackMap locals:
StackMap stack:
iload 8
ifge 9
iload 9
iconst_1
iadd
ireturn
9: StackMap locals:
StackMap stack:
iload 7
aload 6
aload 3
iload 7
iload 4
iadd
baload
sipush 255
iand
iaload
iadd
istore 7
end local 9 end local 8 10: StackMap locals:
StackMap stack:
iload 7
iload 5
if_icmplt 2
11: iconst_m1
ireturn
end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 little [B
0 12 1 lstart I
0 12 2 llen I
0 12 3 big [B
0 12 4 bstart I
0 12 5 blen I
0 12 6 skip [I
1 12 7 i I
4 10 8 j I
3 10 9 k I
MethodParameters:
Name Flags
little
lstart
llen
big
bstart
blen
skip
public org.jruby.runtime.builtin.IRubyObject gets(org.jruby.runtime.ThreadContext);
descriptor: (Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 1
getstatic org.jruby.ext.stringio.StringIO.GETLINE:Lorg/jruby/util/io/Getline$Callback;
aload 0
aload 0
invokevirtual org.jruby.ext.stringio.StringIO.getEncoding:()Lorg/jcodings/Encoding;
invokestatic org.jruby.util.io.Getline.getlineCall:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/util/io/Getline$Callback;Ljava/lang/Object;Lorg/jcodings/Encoding;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ext/stringio/StringIO;
0 1 1 context Lorg/jruby/runtime/ThreadContext;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"gets"}, writes = {org.jruby.anno.FrameField.LASTLINE:Lorg/jruby/anno/FrameField;})
MethodParameters:
Name Flags
context
public org.jruby.runtime.builtin.IRubyObject gets(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
getstatic org.jruby.ext.stringio.StringIO.GETLINE:Lorg/jruby/util/io/Getline$Callback;
aload 0
aload 0
invokevirtual org.jruby.ext.stringio.StringIO.getEncoding:()Lorg/jcodings/Encoding;
aload 2
invokestatic org.jruby.util.io.Getline.getlineCall:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/util/io/Getline$Callback;Ljava/lang/Object;Lorg/jcodings/Encoding;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ext/stringio/StringIO;
0 1 1 context Lorg/jruby/runtime/ThreadContext;
0 1 2 arg0 Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"gets"}, writes = {org.jruby.anno.FrameField.LASTLINE:Lorg/jruby/anno/FrameField;})
MethodParameters:
Name Flags
context
arg0
public org.jruby.runtime.builtin.IRubyObject gets(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
getstatic org.jruby.ext.stringio.StringIO.GETLINE:Lorg/jruby/util/io/Getline$Callback;
aload 0
aload 0
invokevirtual org.jruby.ext.stringio.StringIO.getEncoding:()Lorg/jcodings/Encoding;
aload 2
aload 3
invokestatic org.jruby.util.io.Getline.getlineCall:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/util/io/Getline$Callback;Ljava/lang/Object;Lorg/jcodings/Encoding;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ext/stringio/StringIO;
0 1 1 context Lorg/jruby/runtime/ThreadContext;
0 1 2 arg0 Lorg/jruby/runtime/builtin/IRubyObject;
0 1 3 arg1 Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"gets"}, writes = {org.jruby.anno.FrameField.LASTLINE:Lorg/jruby/anno/FrameField;})
MethodParameters:
Name Flags
context
arg0
arg1
public org.jruby.runtime.builtin.IRubyObject gets(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 1
getstatic org.jruby.ext.stringio.StringIO.GETLINE:Lorg/jruby/util/io/Getline$Callback;
aload 0
aload 0
invokevirtual org.jruby.ext.stringio.StringIO.getEncoding:()Lorg/jcodings/Encoding;
aload 2
aload 3
aload 4
invokestatic org.jruby.util.io.Getline.getlineCall:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/util/io/Getline$Callback;Ljava/lang/Object;Lorg/jcodings/Encoding;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ext/stringio/StringIO;
0 1 1 context Lorg/jruby/runtime/ThreadContext;
0 1 2 arg0 Lorg/jruby/runtime/builtin/IRubyObject;
0 1 3 arg1 Lorg/jruby/runtime/builtin/IRubyObject;
0 1 4 arg2 Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"gets"}, writes = {org.jruby.anno.FrameField.LASTLINE:Lorg/jruby/anno/FrameField;})
MethodParameters:
Name Flags
context
arg0
arg1
arg2
public org.jruby.runtime.builtin.IRubyObject gets(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject[]);
descriptor: (Lorg/jruby/runtime/ThreadContext;[Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 2
arraylength
tableswitch { // 0 - 3
0: 1
1: 2
2: 3
3: 4
default: 5
}
1: StackMap locals:
StackMap stack:
aload 0
aload 1
invokevirtual org.jruby.ext.stringio.StringIO.gets:(Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
2: StackMap locals:
StackMap stack:
aload 0
aload 1
aload 2
iconst_0
aaload
invokevirtual org.jruby.ext.stringio.StringIO.gets:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
3: StackMap locals:
StackMap stack:
aload 0
aload 1
aload 2
iconst_0
aaload
aload 2
iconst_1
aaload
invokevirtual org.jruby.ext.stringio.StringIO.gets:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
4: StackMap locals:
StackMap stack:
aload 0
aload 1
aload 2
iconst_0
aaload
aload 2
iconst_1
aaload
aload 2
iconst_2
aaload
invokevirtual org.jruby.ext.stringio.StringIO.gets:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
5: StackMap locals:
StackMap stack:
aload 1
aload 2
arraylength
iconst_0
iconst_3
invokestatic org.jruby.runtime.Arity.raiseArgumentError:(Lorg/jruby/runtime/ThreadContext;III)V
6: new java.lang.AssertionError
dup
ldc "BUG"
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/jruby/ext/stringio/StringIO;
0 7 1 context Lorg/jruby/runtime/ThreadContext;
0 7 2 args [Lorg/jruby/runtime/builtin/IRubyObject;
MethodParameters:
Name Flags
context
args
private org.jruby.runtime.builtin.IRubyObject getline(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject, int, boolean);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;IZ)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0002) ACC_PRIVATE
Code:
stack=7, locals=23, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
astore 5
start local 5 1: aload 0
invokevirtual org.jruby.ext.stringio.StringIO.checkReadable:()V
2: aload 0
invokevirtual org.jruby.ext.stringio.StringIO.isEndOfString:()Z
ifeq 4
3: aload 1
getfield org.jruby.runtime.ThreadContext.nil:Lorg/jruby/runtime/builtin/IRubyObject;
areturn
4: StackMap locals: org.jruby.Ruby
StackMap stack:
aload 0
getfield org.jruby.ext.stringio.StringIO.ptr:Lorg/jruby/ext/stringio/StringIO$StringIOData;
astore 8
start local 8 5: aload 0
invokevirtual org.jruby.ext.stringio.StringIO.getEncoding:()Lorg/jcodings/Encoding;
astore 9
start local 9 6: aload 8
dup
astore 10
monitorenter
7: aload 8
getfield org.jruby.ext.stringio.StringIO$StringIOData.string:Lorg/jruby/RubyString;
invokevirtual org.jruby.RubyString.getByteList:()Lorg/jruby/util/ByteList;
astore 11
start local 11 8: aload 11
invokevirtual org.jruby.util.ByteList.getUnsafeBytes:()[B
astore 12
start local 12 9: aload 11
invokevirtual org.jruby.util.ByteList.getBegin:()I
istore 13
start local 13 10: iload 13
aload 8
getfield org.jruby.ext.stringio.StringIO$StringIOData.pos:I
iadd
istore 14
start local 14 11: iload 13
aload 11
invokevirtual org.jruby.util.ByteList.getRealSize:()I
iadd
istore 15
start local 15 12: iconst_0
istore 17
start local 17 13: iload 3
ifle 15
iload 14
iload 3
iadd
iload 15
if_icmpge 15
14: aload 0
invokevirtual org.jruby.ext.stringio.StringIO.getEncoding:()Lorg/jcodings/Encoding;
aload 12
iload 14
iload 14
iload 3
iadd
iload 15
invokevirtual org.jcodings.Encoding.rightAdjustCharHead:([BIII)I
istore 15
15: StackMap locals: org.jruby.ext.stringio.StringIO org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject int int org.jruby.Ruby top top org.jruby.ext.stringio.StringIO$StringIOData org.jcodings.Encoding org.jruby.ext.stringio.StringIO$StringIOData org.jruby.util.ByteList byte[] int int int top int
StackMap stack:
aload 2
aload 1
getfield org.jruby.runtime.ThreadContext.nil:Lorg/jruby/runtime/builtin/IRubyObject;
if_acmpne 20
16: iload 4
ifeq 18
17: aload 12
iload 14
iload 15
invokestatic org.jruby.ext.stringio.StringIO.chompNewlineWidth:([BII)I
istore 17
18: StackMap locals:
StackMap stack:
aload 0
aload 5
aload 8
getfield org.jruby.ext.stringio.StringIO$StringIOData.pos:I
iload 15
iload 14
isub
iload 17
isub
aload 9
invokevirtual org.jruby.ext.stringio.StringIO.strioSubstr:(Lorg/jruby/Ruby;IILorg/jcodings/Encoding;)Lorg/jruby/RubyString;
astore 6
start local 6 19: goto 73
end local 6 StackMap locals:
StackMap stack:
20: aload 2
checkcast org.jruby.RubyString
invokevirtual org.jruby.RubyString.size:()I
dup
istore 7
start local 7 21: ifne 49
22: iload 14
istore 16
start local 16 23: goto 27
24: StackMap locals: org.jruby.ext.stringio.StringIO org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject int int org.jruby.Ruby top int org.jruby.ext.stringio.StringIO$StringIOData org.jcodings.Encoding org.jruby.ext.stringio.StringIO$StringIOData org.jruby.util.ByteList byte[] int int int int int
StackMap stack:
iinc 16 1
iload 16
iload 15
if_icmpne 27
25: aload 1
getfield org.jruby.runtime.ThreadContext.nil:Lorg/jruby/runtime/builtin/IRubyObject;
aload 10
monitorexit
26: areturn
27: StackMap locals:
StackMap stack:
aload 12
iload 16
baload
bipush 10
if_icmpeq 24
28: iload 16
istore 14
29: goto 44
30: StackMap locals:
StackMap stack:
iinc 16 1
31: iload 16
iload 15
if_icmpne 32
goto 45
32: StackMap locals:
StackMap stack:
aload 12
iload 16
baload
bipush 10
if_icmpne 38
33: iload 16
iconst_1
iadd
istore 15
34: iload 4
ifeq 35
iconst_1
goto 36
StackMap locals:
StackMap stack:
35: iconst_0
StackMap locals:
StackMap stack: int
36: istore 17
37: goto 45
38: StackMap locals:
StackMap stack:
aload 12
iload 16
baload
bipush 13
if_icmpne 44
iload 16
iload 15
if_icmpge 44
aload 12
iload 16
iconst_1
iadd
baload
bipush 10
if_icmpne 44
39: iload 16
iconst_2
iadd
istore 15
40: iload 4
ifeq 41
iconst_2
goto 42
StackMap locals:
StackMap stack:
41: iconst_0
StackMap locals:
StackMap stack: int
42: istore 17
43: goto 45
44: StackMap locals:
StackMap stack:
aload 12
iload 16
bipush 10
iload 15
iload 16
isub
invokestatic org.jruby.util.StringSupport.memchr:([BIII)I
dup
istore 16
iconst_m1
if_icmpeq 45
iload 16
iload 15
if_icmpne 30
45: StackMap locals:
StackMap stack:
iload 17
ifne 47
iload 4
ifeq 47
46: aload 12
iload 14
iload 15
invokestatic org.jruby.ext.stringio.StringIO.chompNewlineWidth:([BII)I
istore 17
47: StackMap locals:
StackMap stack:
aload 0
aload 5
iload 14
iload 13
isub
iload 15
iload 14
isub
iload 17
isub
aload 9
invokevirtual org.jruby.ext.stringio.StringIO.strioSubstr:(Lorg/jruby/Ruby;IILorg/jcodings/Encoding;)Lorg/jruby/RubyString;
astore 6
start local 6 48: goto 73
end local 16 end local 6 StackMap locals: org.jruby.ext.stringio.StringIO org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject int int org.jruby.Ruby top int org.jruby.ext.stringio.StringIO$StringIOData org.jcodings.Encoding org.jruby.ext.stringio.StringIO$StringIOData org.jruby.util.ByteList byte[] int int int top int
StackMap stack:
49: iload 7
iconst_1
if_icmpne 62
50: aload 2
checkcast org.jruby.RubyString
astore 18
start local 18 51: aload 18
invokevirtual org.jruby.RubyString.getByteList:()Lorg/jruby/util/ByteList;
astore 19
start local 19 52: aload 12
iload 14
aload 19
iconst_0
invokevirtual org.jruby.util.ByteList.get:(I)I
iload 15
iload 14
isub
invokestatic org.jruby.util.StringSupport.memchr:([BIII)I
dup
istore 16
start local 16 53: iconst_m1
if_icmpeq 60
54: iload 16
iconst_1
iadd
istore 15
55: iload 4
ifeq 58
iload 16
iload 14
if_icmple 56
aload 12
iload 16
iconst_1
isub
baload
bipush 13
if_icmpne 56
iconst_1
goto 57
StackMap locals: org.jruby.ext.stringio.StringIO org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject int int org.jruby.Ruby top int org.jruby.ext.stringio.StringIO$StringIOData org.jcodings.Encoding org.jruby.ext.stringio.StringIO$StringIOData org.jruby.util.ByteList byte[] int int int int int org.jruby.RubyString org.jruby.util.ByteList
StackMap stack:
56: iconst_0
StackMap locals:
StackMap stack: int
57: iconst_1
iadd
goto 59
StackMap locals:
StackMap stack:
58: iconst_0
StackMap locals:
StackMap stack: int
59: istore 17
60: StackMap locals:
StackMap stack:
aload 0
aload 5
aload 8
getfield org.jruby.ext.stringio.StringIO$StringIOData.pos:I
iload 15
iload 14
isub
iload 17
isub
aload 9
invokevirtual org.jruby.ext.stringio.StringIO.strioSubstr:(Lorg/jruby/Ruby;IILorg/jcodings/Encoding;)Lorg/jruby/RubyString;
astore 6
end local 19 end local 18 start local 6 61: goto 73
end local 16 end local 6 62: StackMap locals: org.jruby.ext.stringio.StringIO org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject int int org.jruby.Ruby top int org.jruby.ext.stringio.StringIO$StringIOData org.jcodings.Encoding org.jruby.ext.stringio.StringIO$StringIOData org.jruby.util.ByteList byte[] int int int top int
StackMap stack:
iload 7
iload 15
iload 14
isub
if_icmpge 72
63: aload 2
checkcast org.jruby.RubyString
astore 18
start local 18 64: aload 18
invokevirtual org.jruby.RubyString.getByteList:()Lorg/jruby/util/ByteList;
astore 19
start local 19 65: aload 19
invokevirtual org.jruby.util.ByteList.getUnsafeBytes:()[B
astore 20
start local 20 66: sipush 256
newarray 10
astore 21
start local 21 67: aload 19
invokevirtual org.jruby.util.ByteList.getBegin:()I
istore 16
start local 16 68: aload 21
aload 20
iload 16
iload 7
invokestatic org.jruby.ext.stringio.StringIO.bm_init_skip:([I[BII)V
69: aload 20
iload 16
iload 7
aload 12
iload 14
iload 15
iload 14
isub
aload 21
invokestatic org.jruby.ext.stringio.StringIO.bm_search:([BII[BII[I)I
dup
istore 22
start local 22 70: iflt 72
71: iload 14
iload 22
iadd
iload 7
iadd
istore 15
end local 22 end local 21 end local 20 end local 19 end local 18 end local 16 72: StackMap locals:
StackMap stack:
aload 0
aload 5
aload 8
getfield org.jruby.ext.stringio.StringIO$StringIOData.pos:I
iload 15
iload 14
isub
iload 17
isub
aload 9
invokevirtual org.jruby.ext.stringio.StringIO.strioSubstr:(Lorg/jruby/Ruby;IILorg/jcodings/Encoding;)Lorg/jruby/RubyString;
astore 6
end local 7 start local 6 73: StackMap locals: org.jruby.ext.stringio.StringIO org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject int int org.jruby.Ruby org.jruby.RubyString top org.jruby.ext.stringio.StringIO$StringIOData org.jcodings.Encoding org.jruby.ext.stringio.StringIO$StringIOData org.jruby.util.ByteList byte[] int int int top int
StackMap stack:
aload 8
iload 15
iload 13
isub
putfield org.jruby.ext.stringio.StringIO$StringIOData.pos:I
74: aload 8
dup
getfield org.jruby.ext.stringio.StringIO$StringIOData.lineno:I
iconst_1
iadd
putfield org.jruby.ext.stringio.StringIO$StringIOData.lineno:I
end local 17 end local 15 end local 14 end local 13 end local 12 end local 11 75: aload 10
monitorexit
76: goto 79
end local 6 StackMap locals: org.jruby.ext.stringio.StringIO org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject int int org.jruby.Ruby top top org.jruby.ext.stringio.StringIO$StringIOData org.jcodings.Encoding org.jruby.ext.stringio.StringIO$StringIOData
StackMap stack: java.lang.Throwable
77: aload 10
monitorexit
78: athrow
start local 6 79: StackMap locals: org.jruby.ext.stringio.StringIO org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject int int org.jruby.Ruby org.jruby.RubyString top org.jruby.ext.stringio.StringIO$StringIOData org.jcodings.Encoding
StackMap stack:
aload 6
areturn
end local 9 end local 8 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 80 0 this Lorg/jruby/ext/stringio/StringIO;
0 80 1 context Lorg/jruby/runtime/ThreadContext;
0 80 2 rs Lorg/jruby/runtime/builtin/IRubyObject;
0 80 3 limit I
0 80 4 chomp Z
1 80 5 runtime Lorg/jruby/Ruby;
19 20 6 str Lorg/jruby/RubyString;
48 49 6 str Lorg/jruby/RubyString;
61 62 6 str Lorg/jruby/RubyString;
73 77 6 str Lorg/jruby/RubyString;
79 80 6 str Lorg/jruby/RubyString;
21 73 7 n I
5 80 8 ptr Lorg/jruby/ext/stringio/StringIO$StringIOData;
6 80 9 enc Lorg/jcodings/Encoding;
8 75 11 string Lorg/jruby/util/ByteList;
9 75 12 stringBytes [B
10 75 13 begin I
11 75 14 s I
12 75 15 e I
23 49 16 p I
53 62 16 p I
68 72 16 p I
13 75 17 w I
51 61 18 strStr Lorg/jruby/RubyString;
52 61 19 strByteList Lorg/jruby/util/ByteList;
64 72 18 rsStr Lorg/jruby/RubyString;
65 72 19 rsByteList Lorg/jruby/util/ByteList;
66 72 20 rsBytes [B
67 72 21 skip [I
70 72 22 pos I
Exception table:
from to target type
7 26 77 any
27 76 77 any
77 78 77 any
MethodParameters:
Name Flags
context
rs final
limit
chomp
private static int chompNewlineWidth(byte[], int, int);
descriptor: ([BII)I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: iload 2
iload 1
if_icmple 3
aload 0
iinc 2 -1
iload 2
baload
bipush 10
if_icmpne 3
1: iload 2
iload 1
if_icmple 2
aload 0
iinc 2 -1
iload 2
baload
bipush 13
if_icmpne 2
iconst_2
ireturn
2: StackMap locals:
StackMap stack:
iconst_1
ireturn
3: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 bytes [B
0 4 1 s I
0 4 2 e I
MethodParameters:
Name Flags
bytes
s
e
public org.jruby.runtime.builtin.IRubyObject length();
descriptor: ()Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.jruby.ext.stringio.StringIO.checkInitialized:()V
1: aload 0
invokevirtual org.jruby.ext.stringio.StringIO.checkFinalized:()V
2: aload 0
invokevirtual org.jruby.ext.stringio.StringIO.getRuntime:()Lorg/jruby/Ruby;
aload 0
getfield org.jruby.ext.stringio.StringIO.ptr:Lorg/jruby/ext/stringio/StringIO$StringIOData;
getfield org.jruby.ext.stringio.StringIO$StringIOData.string:Lorg/jruby/RubyString;
invokevirtual org.jruby.RubyString.size:()I
invokevirtual org.jruby.Ruby.newFixnum:(I)Lorg/jruby/RubyFixnum;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/ext/stringio/StringIO;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"length", "size"})
public org.jruby.runtime.builtin.IRubyObject lineno(org.jruby.runtime.ThreadContext);
descriptor: (Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
aload 0
getfield org.jruby.ext.stringio.StringIO.ptr:Lorg/jruby/ext/stringio/StringIO$StringIOData;
getfield org.jruby.ext.stringio.StringIO$StringIOData.lineno:I
invokevirtual org.jruby.Ruby.newFixnum:(I)Lorg/jruby/RubyFixnum;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ext/stringio/StringIO;
0 1 1 context Lorg/jruby/runtime/ThreadContext;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"lineno"})
MethodParameters:
Name Flags
context
public org.jruby.runtime.builtin.IRubyObject set_lineno(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.jruby.ext.stringio.StringIO.ptr:Lorg/jruby/ext/stringio/StringIO$StringIOData;
aload 2
invokestatic org.jruby.RubyNumeric.fix2int:(Lorg/jruby/runtime/builtin/IRubyObject;)I
putfield org.jruby.ext.stringio.StringIO$StringIOData.lineno:I
1: aload 1
getfield org.jruby.runtime.ThreadContext.nil:Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/ext/stringio/StringIO;
0 2 1 context Lorg/jruby/runtime/ThreadContext;
0 2 2 arg Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"lineno="}, required = 1)
MethodParameters:
Name Flags
context
arg
public org.jruby.runtime.builtin.IRubyObject pos(org.jruby.runtime.ThreadContext);
descriptor: (Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.jruby.ext.stringio.StringIO.checkInitialized:()V
1: aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
aload 0
getfield org.jruby.ext.stringio.StringIO.ptr:Lorg/jruby/ext/stringio/StringIO$StringIOData;
getfield org.jruby.ext.stringio.StringIO$StringIOData.pos:I
invokevirtual org.jruby.Ruby.newFixnum:(I)Lorg/jruby/RubyFixnum;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/ext/stringio/StringIO;
0 2 1 context Lorg/jruby/runtime/ThreadContext;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"pos", "tell"})
MethodParameters:
Name Flags
context
public org.jruby.runtime.builtin.IRubyObject set_pos(org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.jruby.ext.stringio.StringIO.checkInitialized:()V
1: aload 1
invokestatic org.jruby.RubyNumeric.fix2long:(Lorg/jruby/runtime/builtin/IRubyObject;)J
lstore 2
start local 2 2: lload 2
lconst_0
lcmp
ifge 3
aload 0
invokevirtual org.jruby.ext.stringio.StringIO.getRuntime:()Lorg/jruby/Ruby;
aload 1
invokevirtual java.lang.Object.toString:()Ljava/lang/String;
invokevirtual org.jruby.Ruby.newErrnoEINVALError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
3: StackMap locals: long
StackMap stack:
lload 2
ldc 2147483647
lcmp
ifle 4
aload 0
invokevirtual org.jruby.ext.stringio.StringIO.getRuntime:()Lorg/jruby/Ruby;
ldc "JRuby does not support StringIO larger than 2147483647 bytes"
invokevirtual org.jruby.Ruby.newArgumentError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
4: StackMap locals:
StackMap stack:
aload 0
getfield org.jruby.ext.stringio.StringIO.ptr:Lorg/jruby/ext/stringio/StringIO$StringIOData;
lload 2
l2i
putfield org.jruby.ext.stringio.StringIO$StringIOData.pos:I
5: aload 1
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/jruby/ext/stringio/StringIO;
0 6 1 arg Lorg/jruby/runtime/builtin/IRubyObject;
2 6 2 p J
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"pos="}, required = 1)
MethodParameters:
Name Flags
arg
private void strioExtend(int, int);
descriptor: (II)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=7, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.jruby.ext.stringio.StringIO.ptr:Lorg/jruby/ext/stringio/StringIO$StringIOData;
astore 3
start local 3 1: aload 3
dup
astore 4
monitorenter
2: aload 3
getfield org.jruby.ext.stringio.StringIO$StringIOData.string:Lorg/jruby/RubyString;
invokevirtual org.jruby.RubyString.size:()I
istore 5
start local 5 3: iload 1
iload 2
iadd
iload 5
if_icmple 14
4: aload 3
getfield org.jruby.ext.stringio.StringIO$StringIOData.string:Lorg/jruby/RubyString;
iload 1
iload 2
iadd
invokevirtual org.jruby.RubyString.resize:(I)V
5: iload 1
iload 5
if_icmple 15
6: aload 3
getfield org.jruby.ext.stringio.StringIO$StringIOData.string:Lorg/jruby/RubyString;
invokevirtual org.jruby.RubyString.modify19:()V
7: aload 3
getfield org.jruby.ext.stringio.StringIO$StringIOData.string:Lorg/jruby/RubyString;
invokevirtual org.jruby.RubyString.getByteList:()Lorg/jruby/util/ByteList;
astore 6
start local 6 8: aload 6
invokevirtual org.jruby.util.ByteList.getUnsafeBytes:()[B
9: aload 6
invokevirtual org.jruby.util.ByteList.getBegin:()I
iload 5
iadd
10: aload 6
invokevirtual org.jruby.util.ByteList.getBegin:()I
iload 1
iadd
11: iconst_0
12: invokestatic java.util.Arrays.fill:([BIIB)V
end local 6 13: goto 15
14: StackMap locals: org.jruby.ext.stringio.StringIO$StringIOData org.jruby.ext.stringio.StringIO$StringIOData int
StackMap stack:
aload 3
getfield org.jruby.ext.stringio.StringIO$StringIOData.string:Lorg/jruby/RubyString;
invokevirtual org.jruby.RubyString.modify19:()V
end local 5 15: StackMap locals:
StackMap stack:
aload 4
monitorexit
16: goto 19
StackMap locals:
StackMap stack: java.lang.Throwable
17: aload 4
monitorexit
18: athrow
19: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 this Lorg/jruby/ext/stringio/StringIO;
0 20 1 pos I
0 20 2 len I
1 20 3 ptr Lorg/jruby/ext/stringio/StringIO$StringIOData;
3 15 5 olen I
8 13 6 ptrByteList Lorg/jruby/util/ByteList;
Exception table:
from to target type
2 16 17 any
17 18 17 any
MethodParameters:
Name Flags
pos
len
public org.jruby.runtime.builtin.IRubyObject putc(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
astore 3
start local 3 1: aload 0
invokevirtual org.jruby.ext.stringio.StringIO.checkWritable:()V
2: aload 0
invokevirtual org.jruby.ext.stringio.StringIO.checkModifiable:()V
3: aload 2
instanceof org.jruby.RubyString
ifeq 6
4: aload 2
checkcast org.jruby.RubyString
aload 3
iconst_0
iconst_1
invokevirtual org.jruby.RubyString.substr19:(Lorg/jruby/Ruby;II)Lorg/jruby/runtime/builtin/IRubyObject;
astore 4
start local 4 5: goto 8
end local 4 6: StackMap locals: org.jruby.Ruby
StackMap stack:
aload 2
invokestatic org.jruby.RubyNumeric.num2chr:(Lorg/jruby/runtime/builtin/IRubyObject;)B
istore 5
start local 5 7: aload 3
iconst_1
newarray 8
dup
iconst_0
iload 5
bastore
invokestatic org.jruby.RubyString.newString:(Lorg/jruby/Ruby;[B)Lorg/jruby/RubyString;
astore 4
end local 5 start local 4 8: StackMap locals: org.jruby.runtime.builtin.IRubyObject
StackMap stack:
aload 0
aload 1
aload 4
invokevirtual org.jruby.ext.stringio.StringIO.write:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
pop
9: aload 2
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lorg/jruby/ext/stringio/StringIO;
0 10 1 context Lorg/jruby/runtime/ThreadContext;
0 10 2 ch Lorg/jruby/runtime/builtin/IRubyObject;
1 10 3 runtime Lorg/jruby/Ruby;
5 6 4 str Lorg/jruby/runtime/builtin/IRubyObject;
8 10 4 str Lorg/jruby/runtime/builtin/IRubyObject;
7 8 5 c B
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"putc"})
MethodParameters:
Name Flags
context
ch
public org.jruby.runtime.builtin.IRubyObject read(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject[]);
descriptor: (Lorg/jruby/runtime/ThreadContext;[Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=15, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokevirtual org.jruby.ext.stringio.StringIO.checkReadable:()V
1: aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
astore 3
start local 3 2: aload 1
getfield org.jruby.runtime.ThreadContext.nil:Lorg/jruby/runtime/builtin/IRubyObject;
astore 4
start local 4 3: iconst_0
istore 6
start local 6 4: aload 0
getfield org.jruby.ext.stringio.StringIO.ptr:Lorg/jruby/ext/stringio/StringIO$StringIOData;
astore 7
start local 7 5: aload 7
dup
astore 9
monitorenter
6: aload 2
arraylength
tableswitch { // 0 - 2
0: 21
1: 11
2: 7
default: 35
}
7: StackMap locals: org.jruby.ext.stringio.StringIO org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject[] org.jruby.Ruby org.jruby.runtime.builtin.IRubyObject top int org.jruby.ext.stringio.StringIO$StringIOData top org.jruby.ext.stringio.StringIO$StringIOData
StackMap stack:
aload 2
iconst_1
aaload
astore 4
8: aload 4
invokeinterface org.jruby.runtime.builtin.IRubyObject.isNil:()Z
ifne 11
9: aload 4
invokeinterface org.jruby.runtime.builtin.IRubyObject.convertToString:()Lorg/jruby/RubyString;
astore 4
10: aload 4
checkcast org.jruby.RubyString
invokevirtual org.jruby.RubyString.modify:()V
11: StackMap locals:
StackMap stack:
aload 2
iconst_0
aaload
invokeinterface org.jruby.runtime.builtin.IRubyObject.isNil:()Z
ifne 21
12: aload 2
iconst_0
aaload
invokestatic org.jruby.RubyNumeric.fix2int:(Lorg/jruby/runtime/builtin/IRubyObject;)I
istore 5
start local 5 13: iload 5
ifge 15
14: aload 3
new java.lang.StringBuilder
dup
ldc "negative length "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 5
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc " given"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual org.jruby.Ruby.newArgumentError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
15: StackMap locals: org.jruby.ext.stringio.StringIO org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject[] org.jruby.Ruby org.jruby.runtime.builtin.IRubyObject int int org.jruby.ext.stringio.StringIO$StringIOData top org.jruby.ext.stringio.StringIO$StringIOData
StackMap stack:
iload 5
ifle 19
aload 0
invokevirtual org.jruby.ext.stringio.StringIO.isEndOfString:()Z
ifeq 19
16: aload 4
invokeinterface org.jruby.runtime.builtin.IRubyObject.isNil:()Z
ifne 17
aload 4
checkcast org.jruby.RubyString
iconst_0
invokevirtual org.jruby.RubyString.resize:(I)V
17: StackMap locals:
StackMap stack:
aload 1
getfield org.jruby.runtime.ThreadContext.nil:Lorg/jruby/runtime/builtin/IRubyObject;
aload 9
monitorexit
18: areturn
19: StackMap locals:
StackMap stack:
iconst_1
istore 6
20: goto 36
end local 5 21: StackMap locals: org.jruby.ext.stringio.StringIO org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject[] org.jruby.Ruby org.jruby.runtime.builtin.IRubyObject top int org.jruby.ext.stringio.StringIO$StringIOData top org.jruby.ext.stringio.StringIO$StringIOData
StackMap stack:
aload 7
getfield org.jruby.ext.stringio.StringIO$StringIOData.string:Lorg/jruby/RubyString;
invokevirtual org.jruby.RubyString.size:()I
istore 5
start local 5 22: iload 5
aload 7
getfield org.jruby.ext.stringio.StringIO$StringIOData.pos:I
if_icmpgt 33
23: iload 6
ifeq 24
getstatic org.jcodings.specific.ASCIIEncoding.INSTANCE:Lorg/jcodings/specific/ASCIIEncoding;
goto 25
StackMap locals: org.jruby.ext.stringio.StringIO org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject[] org.jruby.Ruby org.jruby.runtime.builtin.IRubyObject int int org.jruby.ext.stringio.StringIO$StringIOData top org.jruby.ext.stringio.StringIO$StringIOData
StackMap stack:
24: aload 0
invokevirtual org.jruby.ext.stringio.StringIO.getEncoding:()Lorg/jcodings/Encoding;
StackMap locals:
StackMap stack: org.jcodings.Encoding
25: astore 10
start local 10 26: aload 4
invokeinterface org.jruby.runtime.builtin.IRubyObject.isNil:()Z
ifeq 29
27: aload 3
invokevirtual org.jruby.Ruby.newString:()Lorg/jruby/RubyString;
astore 4
28: goto 30
29: StackMap locals: org.jcodings.Encoding
StackMap stack:
aload 4
checkcast org.jruby.RubyString
iconst_0
invokevirtual org.jruby.RubyString.resize:(I)V
30: StackMap locals:
StackMap stack:
aload 4
checkcast org.jruby.RubyString
aload 10
invokevirtual org.jruby.RubyString.setEncoding:(Lorg/jcodings/Encoding;)V
31: aload 4
aload 9
monitorexit
32: areturn
end local 10 33: StackMap locals:
StackMap stack:
iload 5
aload 7
getfield org.jruby.ext.stringio.StringIO$StringIOData.pos:I
isub
istore 5
34: goto 36
end local 5 35: StackMap locals: org.jruby.ext.stringio.StringIO org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject[] org.jruby.Ruby org.jruby.runtime.builtin.IRubyObject top int org.jruby.ext.stringio.StringIO$StringIOData top org.jruby.ext.stringio.StringIO$StringIOData
StackMap stack:
aload 3
aload 2
arraylength
iconst_0
invokevirtual org.jruby.Ruby.newArgumentError:(II)Lorg/jruby/exceptions/RaiseException;
athrow
start local 5 36: StackMap locals: org.jruby.ext.stringio.StringIO org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject[] org.jruby.Ruby org.jruby.runtime.builtin.IRubyObject int int org.jruby.ext.stringio.StringIO$StringIOData top org.jruby.ext.stringio.StringIO$StringIOData
StackMap stack:
aload 4
invokeinterface org.jruby.runtime.builtin.IRubyObject.isNil:()Z
ifeq 42
37: iload 6
ifeq 38
getstatic org.jcodings.specific.ASCIIEncoding.INSTANCE:Lorg/jcodings/specific/ASCIIEncoding;
goto 39
StackMap locals:
StackMap stack:
38: aload 0
invokevirtual org.jruby.ext.stringio.StringIO.getEncoding:()Lorg/jcodings/Encoding;
StackMap locals:
StackMap stack: org.jcodings.Encoding
39: astore 10
start local 10 40: aload 0
aload 3
aload 7
getfield org.jruby.ext.stringio.StringIO$StringIOData.pos:I
iload 5
aload 10
invokevirtual org.jruby.ext.stringio.StringIO.strioSubstr:(Lorg/jruby/Ruby;IILorg/jcodings/Encoding;)Lorg/jruby/RubyString;
astore 8
end local 10 start local 8 41: goto 55
end local 8 42: StackMap locals:
StackMap stack:
aload 4
checkcast org.jruby.RubyString
astore 8
start local 8 43: aload 7
getfield org.jruby.ext.stringio.StringIO$StringIOData.string:Lorg/jruby/RubyString;
invokevirtual org.jruby.RubyString.size:()I
aload 7
getfield org.jruby.ext.stringio.StringIO$StringIOData.pos:I
isub
istore 10
start local 10 44: iload 5
iload 10
if_icmple 45
iload 10
istore 5
45: StackMap locals: org.jruby.ext.stringio.StringIO org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject[] org.jruby.Ruby org.jruby.runtime.builtin.IRubyObject int int org.jruby.ext.stringio.StringIO$StringIOData org.jruby.RubyString org.jruby.ext.stringio.StringIO$StringIOData int
StackMap stack:
aload 8
iload 5
invokevirtual org.jruby.RubyString.resize:(I)V
46: aload 8
invokevirtual org.jruby.RubyString.getByteList:()Lorg/jruby/util/ByteList;
astore 11
start local 11 47: aload 11
invokevirtual org.jruby.util.ByteList.getUnsafeBytes:()[B
astore 12
start local 12 48: aload 7
getfield org.jruby.ext.stringio.StringIO$StringIOData.string:Lorg/jruby/RubyString;
invokevirtual org.jruby.RubyString.getByteList:()Lorg/jruby/util/ByteList;
astore 13
start local 13 49: aload 13
invokevirtual org.jruby.util.ByteList.getUnsafeBytes:()[B
astore 14
start local 14 50: aload 14
aload 13
invokevirtual org.jruby.util.ByteList.getBegin:()I
aload 7
getfield org.jruby.ext.stringio.StringIO$StringIOData.pos:I
iadd
aload 12
aload 11
invokevirtual org.jruby.util.ByteList.getBegin:()I
iload 5
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
51: iload 6
ifeq 54
52: aload 8
getstatic org.jcodings.specific.ASCIIEncoding.INSTANCE:Lorg/jcodings/specific/ASCIIEncoding;
invokevirtual org.jruby.RubyString.setEncoding:(Lorg/jcodings/Encoding;)V
53: goto 55
54: StackMap locals: org.jruby.ext.stringio.StringIO org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject[] org.jruby.Ruby org.jruby.runtime.builtin.IRubyObject int int org.jruby.ext.stringio.StringIO$StringIOData org.jruby.RubyString org.jruby.ext.stringio.StringIO$StringIOData int org.jruby.util.ByteList byte[] org.jruby.util.ByteList byte[]
StackMap stack:
aload 8
aload 7
getfield org.jruby.ext.stringio.StringIO$StringIOData.string:Lorg/jruby/RubyString;
invokevirtual org.jruby.RubyString.getEncoding:()Lorg/jcodings/Encoding;
invokevirtual org.jruby.RubyString.setEncoding:(Lorg/jcodings/Encoding;)V
end local 14 end local 13 end local 12 end local 11 end local 10 55: StackMap locals: org.jruby.ext.stringio.StringIO org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject[] org.jruby.Ruby org.jruby.runtime.builtin.IRubyObject int int org.jruby.ext.stringio.StringIO$StringIOData org.jruby.RubyString org.jruby.ext.stringio.StringIO$StringIOData
StackMap stack:
aload 7
dup
getfield org.jruby.ext.stringio.StringIO$StringIOData.pos:I
aload 8
invokevirtual org.jruby.RubyString.size:()I
iadd
putfield org.jruby.ext.stringio.StringIO$StringIOData.pos:I
56: aload 9
monitorexit
57: goto 60
end local 8 end local 5 StackMap locals: org.jruby.ext.stringio.StringIO org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject[] org.jruby.Ruby org.jruby.runtime.builtin.IRubyObject top int org.jruby.ext.stringio.StringIO$StringIOData top org.jruby.ext.stringio.StringIO$StringIOData
StackMap stack: java.lang.Throwable
58: aload 9
monitorexit
59: athrow
start local 5 start local 8 60: StackMap locals: org.jruby.ext.stringio.StringIO org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject[] org.jruby.Ruby org.jruby.runtime.builtin.IRubyObject int int org.jruby.ext.stringio.StringIO$StringIOData org.jruby.RubyString
StackMap stack:
aload 8
areturn
end local 8 end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 61 0 this Lorg/jruby/ext/stringio/StringIO;
0 61 1 context Lorg/jruby/runtime/ThreadContext;
0 61 2 args [Lorg/jruby/runtime/builtin/IRubyObject;
2 61 3 runtime Lorg/jruby/Ruby;
3 61 4 str Lorg/jruby/runtime/builtin/IRubyObject;
13 21 5 len I
22 35 5 len I
36 58 5 len I
60 61 5 len I
4 61 6 binary Z
5 61 7 ptr Lorg/jruby/ext/stringio/StringIO$StringIOData;
41 42 8 string Lorg/jruby/RubyString;
43 58 8 string Lorg/jruby/RubyString;
60 61 8 string Lorg/jruby/RubyString;
26 33 10 enc Lorg/jcodings/Encoding;
40 41 10 enc Lorg/jcodings/Encoding;
44 55 10 rest I
47 55 11 strByteList Lorg/jruby/util/ByteList;
48 55 12 strBytes [B
49 55 13 dataByteList Lorg/jruby/util/ByteList;
50 55 14 dataBytes [B
Exception table:
from to target type
6 18 58 any
19 32 58 any
33 57 58 any
58 59 58 any
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"read"}, optional = 2)
MethodParameters:
Name Flags
context
args
public org.jruby.runtime.builtin.IRubyObject readlines(org.jruby.runtime.ThreadContext);
descriptor: (Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 1
getstatic org.jruby.ext.stringio.StringIO.GETLINE_ARY:Lorg/jruby/util/io/Getline$Callback;
aload 0
aload 0
invokevirtual org.jruby.ext.stringio.StringIO.getEncoding:()Lorg/jcodings/Encoding;
invokestatic org.jruby.util.io.Getline.getlineCall:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/util/io/Getline$Callback;Ljava/lang/Object;Lorg/jcodings/Encoding;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ext/stringio/StringIO;
0 1 1 context Lorg/jruby/runtime/ThreadContext;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"readlines"})
MethodParameters:
Name Flags
context
public org.jruby.runtime.builtin.IRubyObject readlines(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
getstatic org.jruby.ext.stringio.StringIO.GETLINE_ARY:Lorg/jruby/util/io/Getline$Callback;
aload 0
aload 0
invokevirtual org.jruby.ext.stringio.StringIO.getEncoding:()Lorg/jcodings/Encoding;
aload 2
invokestatic org.jruby.util.io.Getline.getlineCall:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/util/io/Getline$Callback;Ljava/lang/Object;Lorg/jcodings/Encoding;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ext/stringio/StringIO;
0 1 1 context Lorg/jruby/runtime/ThreadContext;
0 1 2 arg0 Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"readlines"})
MethodParameters:
Name Flags
context
arg0
public org.jruby.runtime.builtin.IRubyObject readlines(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
getstatic org.jruby.ext.stringio.StringIO.GETLINE_ARY:Lorg/jruby/util/io/Getline$Callback;
aload 0
aload 0
invokevirtual org.jruby.ext.stringio.StringIO.getEncoding:()Lorg/jcodings/Encoding;
aload 2
aload 3
invokestatic org.jruby.util.io.Getline.getlineCall:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/util/io/Getline$Callback;Ljava/lang/Object;Lorg/jcodings/Encoding;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ext/stringio/StringIO;
0 1 1 context Lorg/jruby/runtime/ThreadContext;
0 1 2 arg0 Lorg/jruby/runtime/builtin/IRubyObject;
0 1 3 arg1 Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"readlines"})
MethodParameters:
Name Flags
context
arg0
arg1
public org.jruby.runtime.builtin.IRubyObject readlines(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 1
getstatic org.jruby.ext.stringio.StringIO.GETLINE_ARY:Lorg/jruby/util/io/Getline$Callback;
aload 0
aload 0
invokevirtual org.jruby.ext.stringio.StringIO.getEncoding:()Lorg/jcodings/Encoding;
aload 2
aload 3
aload 4
invokestatic org.jruby.util.io.Getline.getlineCall:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/util/io/Getline$Callback;Ljava/lang/Object;Lorg/jcodings/Encoding;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ext/stringio/StringIO;
0 1 1 context Lorg/jruby/runtime/ThreadContext;
0 1 2 arg0 Lorg/jruby/runtime/builtin/IRubyObject;
0 1 3 arg1 Lorg/jruby/runtime/builtin/IRubyObject;
0 1 4 arg2 Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"readlines"})
MethodParameters:
Name Flags
context
arg0
arg1
arg2
public org.jruby.runtime.builtin.IRubyObject readlines(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject[]);
descriptor: (Lorg/jruby/runtime/ThreadContext;[Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 2
arraylength
tableswitch { // 0 - 3
0: 1
1: 2
2: 3
3: 4
default: 5
}
1: StackMap locals:
StackMap stack:
aload 0
aload 1
invokevirtual org.jruby.ext.stringio.StringIO.readlines:(Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
2: StackMap locals:
StackMap stack:
aload 0
aload 1
aload 2
iconst_0
aaload
invokevirtual org.jruby.ext.stringio.StringIO.readlines:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
3: StackMap locals:
StackMap stack:
aload 0
aload 1
aload 2
iconst_0
aaload
aload 2
iconst_1
aaload
invokevirtual org.jruby.ext.stringio.StringIO.readlines:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
4: StackMap locals:
StackMap stack:
aload 0
aload 1
aload 2
iconst_0
aaload
aload 2
iconst_1
aaload
aload 2
iconst_2
aaload
invokevirtual org.jruby.ext.stringio.StringIO.readlines:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
5: StackMap locals:
StackMap stack:
aload 1
aload 2
arraylength
iconst_0
iconst_3
invokestatic org.jruby.runtime.Arity.raiseArgumentError:(Lorg/jruby/runtime/ThreadContext;III)V
6: new java.lang.AssertionError
dup
ldc "BUG"
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/jruby/ext/stringio/StringIO;
0 7 1 context Lorg/jruby/runtime/ThreadContext;
0 7 2 args [Lorg/jruby/runtime/builtin/IRubyObject;
MethodParameters:
Name Flags
context
args
public org.jruby.runtime.builtin.IRubyObject reopen(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject[]);
descriptor: (Lorg/jruby/runtime/ThreadContext;[Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokevirtual org.jruby.ext.stringio.StringIO.checkFrozen:()V
1: aload 2
arraylength
iconst_1
if_icmpne 3
aload 2
iconst_0
aaload
instanceof org.jruby.RubyString
ifne 3
2: aload 0
aload 1
aload 2
iconst_0
aaload
invokevirtual org.jruby.ext.stringio.StringIO.initialize_copy:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
3: StackMap locals:
StackMap stack:
aload 0
aload 1
aload 2
invokevirtual org.jruby.ext.stringio.StringIO.strioInit:(Lorg/jruby/runtime/ThreadContext;[Lorg/jruby/runtime/builtin/IRubyObject;)V
4: aload 0
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/jruby/ext/stringio/StringIO;
0 5 1 context Lorg/jruby/runtime/ThreadContext;
0 5 2 args [Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"reopen"}, required = 0, optional = 2)
MethodParameters:
Name Flags
context
args
public org.jruby.runtime.builtin.IRubyObject rewind(org.jruby.runtime.ThreadContext);
descriptor: (Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.jruby.ext.stringio.StringIO.checkInitialized:()V
1: aload 0
getfield org.jruby.ext.stringio.StringIO.ptr:Lorg/jruby/ext/stringio/StringIO$StringIOData;
astore 2
start local 2 2: aload 2
dup
astore 3
monitorenter
3: aload 2
iconst_0
putfield org.jruby.ext.stringio.StringIO$StringIOData.pos:I
4: aload 2
iconst_0
putfield org.jruby.ext.stringio.StringIO$StringIOData.lineno:I
5: aload 3
monitorexit
6: goto 9
StackMap locals: org.jruby.ext.stringio.StringIO org.jruby.runtime.ThreadContext org.jruby.ext.stringio.StringIO$StringIOData org.jruby.ext.stringio.StringIO$StringIOData
StackMap stack: java.lang.Throwable
7: aload 3
monitorexit
8: athrow
9: StackMap locals:
StackMap stack:
aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
invokestatic org.jruby.RubyFixnum.zero:(Lorg/jruby/Ruby;)Lorg/jruby/RubyFixnum;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lorg/jruby/ext/stringio/StringIO;
0 10 1 context Lorg/jruby/runtime/ThreadContext;
2 10 2 ptr Lorg/jruby/ext/stringio/StringIO$StringIOData;
Exception table:
from to target type
3 6 7 any
7 8 7 any
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"rewind"})
MethodParameters:
Name Flags
context
public org.jruby.runtime.builtin.IRubyObject seek(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject[]);
descriptor: (Lorg/jruby/runtime/ThreadContext;[Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=8, args_size=3
start local 0 start local 1 start local 2 0: aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
astore 3
start local 3 1: aload 0
invokevirtual org.jruby.ext.stringio.StringIO.checkFrozen:()V
2: aload 0
invokevirtual org.jruby.ext.stringio.StringIO.checkFinalized:()V
3: aload 2
iconst_0
aaload
invokestatic org.jruby.RubyNumeric.num2int:(Lorg/jruby/runtime/builtin/IRubyObject;)I
istore 4
start local 4 4: aload 1
getfield org.jruby.runtime.ThreadContext.nil:Lorg/jruby/runtime/builtin/IRubyObject;
astore 5
start local 5 5: aload 2
arraylength
iconst_1
if_icmple 6
aload 2
iconst_0
aaload
invokeinterface org.jruby.runtime.builtin.IRubyObject.isNil:()Z
ifne 6
aload 2
iconst_1
aaload
astore 5
6: StackMap locals: org.jruby.Ruby int org.jruby.runtime.builtin.IRubyObject
StackMap stack:
aload 0
invokevirtual org.jruby.ext.stringio.StringIO.checkOpen:()V
7: aload 0
getfield org.jruby.ext.stringio.StringIO.ptr:Lorg/jruby/ext/stringio/StringIO$StringIOData;
astore 6
start local 6 8: aload 6
dup
astore 7
monitorenter
9: aload 5
invokeinterface org.jruby.runtime.builtin.IRubyObject.isNil:()Z
ifeq 10
iconst_0
goto 11
StackMap locals: org.jruby.ext.stringio.StringIO$StringIOData org.jruby.ext.stringio.StringIO$StringIOData
StackMap stack:
10: aload 5
invokestatic org.jruby.RubyNumeric.num2int:(Lorg/jruby/runtime/builtin/IRubyObject;)I
StackMap locals:
StackMap stack: int
11: tableswitch { // 0 - 2
0: 12
1: 13
2: 15
default: 17
}
12: StackMap locals:
StackMap stack:
goto 18
13: StackMap locals:
StackMap stack:
iload 4
aload 6
getfield org.jruby.ext.stringio.StringIO$StringIOData.pos:I
iadd
istore 4
14: goto 18
15: StackMap locals:
StackMap stack:
iload 4
aload 6
getfield org.jruby.ext.stringio.StringIO$StringIOData.string:Lorg/jruby/RubyString;
invokevirtual org.jruby.RubyString.size:()I
iadd
istore 4
16: goto 18
17: StackMap locals:
StackMap stack:
aload 3
ldc "invalid whence"
invokevirtual org.jruby.Ruby.newErrnoEINVALError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
18: StackMap locals:
StackMap stack:
iload 4
ifge 19
aload 3
ldc "invalid seek value"
invokevirtual org.jruby.Ruby.newErrnoEINVALError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
19: StackMap locals:
StackMap stack:
aload 6
iload 4
putfield org.jruby.ext.stringio.StringIO$StringIOData.pos:I
20: aload 7
monitorexit
21: goto 24
StackMap locals:
StackMap stack: java.lang.Throwable
22: aload 7
monitorexit
23: athrow
24: StackMap locals:
StackMap stack:
aload 3
invokestatic org.jruby.RubyFixnum.zero:(Lorg/jruby/Ruby;)Lorg/jruby/RubyFixnum;
areturn
end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 25 0 this Lorg/jruby/ext/stringio/StringIO;
0 25 1 context Lorg/jruby/runtime/ThreadContext;
0 25 2 args [Lorg/jruby/runtime/builtin/IRubyObject;
1 25 3 runtime Lorg/jruby/Ruby;
4 25 4 offset I
5 25 5 whence Lorg/jruby/runtime/builtin/IRubyObject;
8 25 6 ptr Lorg/jruby/ext/stringio/StringIO$StringIOData;
Exception table:
from to target type
9 21 22 any
22 23 22 any
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(required = 1, optional = 1)
MethodParameters:
Name Flags
context
args
public org.jruby.runtime.builtin.IRubyObject set_string(org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=5, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.jruby.ext.stringio.StringIO.checkFrozen:()V
1: aload 0
getfield org.jruby.ext.stringio.StringIO.ptr:Lorg/jruby/ext/stringio/StringIO$StringIOData;
astore 2
start local 2 2: aload 2
dup
astore 3
monitorenter
3: aload 2
dup
getfield org.jruby.ext.stringio.StringIO$StringIOData.flags:I
bipush -4
iand
putfield org.jruby.ext.stringio.StringIO$StringIOData.flags:I
4: aload 1
invokeinterface org.jruby.runtime.builtin.IRubyObject.convertToString:()Lorg/jruby/RubyString;
astore 4
start local 4 5: aload 2
aload 4
invokevirtual org.jruby.RubyString.isFrozen:()Z
ifeq 6
iconst_1
goto 7
StackMap locals: org.jruby.ext.stringio.StringIO org.jruby.runtime.builtin.IRubyObject org.jruby.ext.stringio.StringIO$StringIOData org.jruby.ext.stringio.StringIO$StringIOData org.jruby.RubyString
StackMap stack: org.jruby.ext.stringio.StringIO$StringIOData
6: iconst_3
StackMap locals: org.jruby.ext.stringio.StringIO org.jruby.runtime.builtin.IRubyObject org.jruby.ext.stringio.StringIO$StringIOData org.jruby.ext.stringio.StringIO$StringIOData org.jruby.RubyString
StackMap stack: org.jruby.ext.stringio.StringIO$StringIOData int
7: putfield org.jruby.ext.stringio.StringIO$StringIOData.flags:I
8: aload 2
iconst_0
putfield org.jruby.ext.stringio.StringIO$StringIOData.pos:I
9: aload 2
iconst_0
putfield org.jruby.ext.stringio.StringIO$StringIOData.lineno:I
10: aload 2
aload 4
dup_x1
putfield org.jruby.ext.stringio.StringIO$StringIOData.string:Lorg/jruby/RubyString;
aload 3
monitorexit
11: areturn
end local 4 12: StackMap locals: org.jruby.ext.stringio.StringIO org.jruby.runtime.builtin.IRubyObject org.jruby.ext.stringio.StringIO$StringIOData org.jruby.ext.stringio.StringIO$StringIOData
StackMap stack: java.lang.Throwable
aload 3
monitorexit
13: athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lorg/jruby/ext/stringio/StringIO;
0 14 1 arg Lorg/jruby/runtime/builtin/IRubyObject;
2 14 2 ptr Lorg/jruby/ext/stringio/StringIO$StringIOData;
5 12 4 str Lorg/jruby/RubyString;
Exception table:
from to target type
3 11 12 any
12 13 12 any
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"string="}, required = 1)
MethodParameters:
Name Flags
arg
public org.jruby.runtime.builtin.IRubyObject string(org.jruby.runtime.ThreadContext);
descriptor: (Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield org.jruby.ext.stringio.StringIO.ptr:Lorg/jruby/ext/stringio/StringIO$StringIOData;
getfield org.jruby.ext.stringio.StringIO$StringIOData.string:Lorg/jruby/RubyString;
astore 2
start local 2 1: aload 2
ifnonnull 2
aload 1
getfield org.jruby.runtime.ThreadContext.nil:Lorg/jruby/runtime/builtin/IRubyObject;
areturn
2: StackMap locals: org.jruby.RubyString
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/ext/stringio/StringIO;
0 3 1 context Lorg/jruby/runtime/ThreadContext;
1 3 2 string Lorg/jruby/RubyString;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"string"})
MethodParameters:
Name Flags
context
public org.jruby.runtime.builtin.IRubyObject sync(org.jruby.runtime.ThreadContext);
descriptor: (Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.jruby.ext.stringio.StringIO.checkInitialized:()V
1: aload 1
getfield org.jruby.runtime.ThreadContext.tru:Lorg/jruby/RubyBoolean;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/ext/stringio/StringIO;
0 2 1 context Lorg/jruby/runtime/ThreadContext;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"sync"})
MethodParameters:
Name Flags
context
public org.jruby.runtime.builtin.IRubyObject sysread(org.jruby.runtime.builtin.IRubyObject[]);
descriptor: ([Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.jruby.ext.stringio.StringIO.getRuntime:()Lorg/jruby/Ruby;
invokevirtual org.jruby.Ruby.getCurrentContext:()Lorg/jruby/runtime/ThreadContext;
aload 0
aload 1
invokestatic org.jruby.ext.stringio.StringIO$GenericReadable.sysread:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;[Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ext/stringio/StringIO;
0 1 1 args [Lorg/jruby/runtime/builtin/IRubyObject;
MethodParameters:
Name Flags
args
public org.jruby.runtime.builtin.IRubyObject truncate(org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=8, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.jruby.ext.stringio.StringIO.checkWritable:()V
1: aload 1
invokestatic org.jruby.RubyFixnum.fix2int:(Lorg/jruby/runtime/builtin/IRubyObject;)I
istore 2
start local 2 2: aload 0
getfield org.jruby.ext.stringio.StringIO.ptr:Lorg/jruby/ext/stringio/StringIO$StringIOData;
astore 3
start local 3 3: aload 3
getfield org.jruby.ext.stringio.StringIO$StringIOData.string:Lorg/jruby/RubyString;
astore 4
start local 4 4: aload 3
dup
astore 5
monitorenter
5: aload 4
invokevirtual org.jruby.RubyString.size:()I
istore 6
start local 6 6: iload 2
ifge 8
7: aload 0
invokevirtual org.jruby.ext.stringio.StringIO.getRuntime:()Lorg/jruby/Ruby;
ldc "negative legnth"
invokevirtual org.jruby.Ruby.newErrnoEINVALError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
8: StackMap locals: org.jruby.ext.stringio.StringIO org.jruby.runtime.builtin.IRubyObject int org.jruby.ext.stringio.StringIO$StringIOData org.jruby.RubyString org.jruby.ext.stringio.StringIO$StringIOData int
StackMap stack:
aload 4
iload 2
invokevirtual org.jruby.RubyString.resize:(I)V
9: aload 4
invokevirtual org.jruby.RubyString.getByteList:()Lorg/jruby/util/ByteList;
astore 7
start local 7 10: iload 6
iload 2
if_icmpge 12
11: aload 7
invokevirtual org.jruby.util.ByteList.getUnsafeBytes:()[B
aload 7
invokevirtual org.jruby.util.ByteList.getBegin:()I
iload 6
iadd
aload 7
invokevirtual org.jruby.util.ByteList.getBegin:()I
iload 2
iadd
iconst_0
invokestatic java.util.Arrays.fill:([BIIB)V
end local 7 end local 6 12: StackMap locals:
StackMap stack:
aload 5
monitorexit
13: goto 16
StackMap locals:
StackMap stack: java.lang.Throwable
14: aload 5
monitorexit
15: athrow
16: StackMap locals:
StackMap stack:
aload 1
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Lorg/jruby/ext/stringio/StringIO;
0 17 1 len Lorg/jruby/runtime/builtin/IRubyObject;
2 17 2 l I
3 17 3 ptr Lorg/jruby/ext/stringio/StringIO$StringIOData;
4 17 4 string Lorg/jruby/RubyString;
6 12 6 plen I
10 12 7 buf Lorg/jruby/util/ByteList;
Exception table:
from to target type
5 13 14 any
14 15 14 any
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"truncate"}, required = 1)
MethodParameters:
Name Flags
len
public org.jruby.runtime.builtin.IRubyObject ungetc(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=8, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokevirtual org.jruby.ext.stringio.StringIO.checkModifiable:()V
1: aload 0
invokevirtual org.jruby.ext.stringio.StringIO.checkReadable:()V
2: aload 2
invokeinterface org.jruby.runtime.builtin.IRubyObject.isNil:()Z
ifeq 3
aload 2
areturn
3: StackMap locals:
StackMap stack:
aload 2
instanceof org.jruby.RubyInteger
ifeq 12
4: aload 2
invokestatic org.jruby.RubyNumeric.num2int:(Lorg/jruby/runtime/builtin/IRubyObject;)I
istore 6
start local 6 5: bipush 16
newarray 8
astore 7
start local 7 6: aload 0
invokevirtual org.jruby.ext.stringio.StringIO.getEncoding:()Lorg/jcodings/Encoding;
astore 3
start local 3 7: aload 3
iload 6
invokevirtual org.jcodings.Encoding.codeToMbcLength:(I)I
istore 5
start local 5 8: iload 5
ifgt 9
aload 1
iload 6
aload 3
invokestatic org.jruby.util.io.EncodingUtils.encUintChr:(Lorg/jruby/runtime/ThreadContext;ILorg/jcodings/Encoding;)Lorg/jruby/RubyString;
pop
9: StackMap locals: org.jruby.ext.stringio.StringIO org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject org.jcodings.Encoding top int int byte[]
StackMap stack:
aload 3
iload 6
aload 7
iconst_0
invokevirtual org.jcodings.Encoding.codeToMbc:(I[BI)I
pop
10: aload 0
aload 7
iconst_0
iload 5
invokevirtual org.jruby.ext.stringio.StringIO.ungetbyteCommon:([BII)V
11: aload 1
getfield org.jruby.runtime.ThreadContext.nil:Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 7 end local 6 end local 5 end local 3 12: StackMap locals: org.jruby.ext.stringio.StringIO org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject
StackMap stack:
aload 2
invokeinterface org.jruby.runtime.builtin.IRubyObject.convertToString:()Lorg/jruby/RubyString;
astore 2
13: aload 0
invokevirtual org.jruby.ext.stringio.StringIO.getEncoding:()Lorg/jcodings/Encoding;
astore 3
start local 3 14: aload 2
checkcast org.jruby.RubyString
astore 5
start local 5 15: aload 5
invokevirtual org.jruby.RubyString.getEncoding:()Lorg/jcodings/Encoding;
astore 4
start local 4 16: aload 3
aload 4
if_acmpeq 18
aload 3
getstatic org.jcodings.specific.ASCIIEncoding.INSTANCE:Lorg/jcodings/specific/ASCIIEncoding;
if_acmpeq 18
17: aload 1
aload 5
aload 4
aload 3
invokestatic org.jruby.util.io.EncodingUtils.strConvEnc:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/RubyString;Lorg/jcodings/Encoding;Lorg/jcodings/Encoding;)Lorg/jruby/RubyString;
astore 5
18: StackMap locals: org.jcodings.Encoding org.jcodings.Encoding org.jruby.RubyString
StackMap stack:
aload 5
invokevirtual org.jruby.RubyString.getByteList:()Lorg/jruby/util/ByteList;
astore 6
start local 6 19: aload 0
aload 6
invokevirtual org.jruby.util.ByteList.unsafeBytes:()[B
aload 6
invokevirtual org.jruby.util.ByteList.begin:()I
aload 6
invokevirtual org.jruby.util.ByteList.realSize:()I
invokevirtual org.jruby.ext.stringio.StringIO.ungetbyteCommon:([BII)V
20: aload 1
getfield org.jruby.runtime.ThreadContext.nil:Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 21 0 this Lorg/jruby/ext/stringio/StringIO;
0 21 1 context Lorg/jruby/runtime/ThreadContext;
0 21 2 arg Lorg/jruby/runtime/builtin/IRubyObject;
7 12 3 enc Lorg/jcodings/Encoding;
14 21 3 enc Lorg/jcodings/Encoding;
16 21 4 enc2 Lorg/jcodings/Encoding;
8 12 5 len I
5 12 6 cc I
6 12 7 buf [B
15 21 5 argStr Lorg/jruby/RubyString;
19 21 6 argBytes Lorg/jruby/util/ByteList;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"ungetc"})
MethodParameters:
Name Flags
context
arg
private void ungetbyteCommon(int);
descriptor: (I)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=5, args_size=2
start local 0 start local 1 0: aload 0
getfield org.jruby.ext.stringio.StringIO.ptr:Lorg/jruby/ext/stringio/StringIO$StringIOData;
astore 2
start local 2 1: aload 2
dup
astore 3
monitorenter
2: aload 2
getfield org.jruby.ext.stringio.StringIO$StringIOData.string:Lorg/jruby/RubyString;
invokevirtual org.jruby.RubyString.modify:()V
3: aload 2
dup
getfield org.jruby.ext.stringio.StringIO$StringIOData.pos:I
iconst_1
isub
putfield org.jruby.ext.stringio.StringIO$StringIOData.pos:I
4: aload 2
getfield org.jruby.ext.stringio.StringIO$StringIOData.string:Lorg/jruby/RubyString;
invokevirtual org.jruby.RubyString.getByteList:()Lorg/jruby/util/ByteList;
astore 4
start local 4 5: aload 0
invokevirtual org.jruby.ext.stringio.StringIO.isEndOfString:()Z
ifeq 6
aload 4
aload 2
getfield org.jruby.ext.stringio.StringIO$StringIOData.pos:I
iconst_1
iadd
invokevirtual org.jruby.util.ByteList.length:(I)V
6: StackMap locals: org.jruby.ext.stringio.StringIO$StringIOData org.jruby.ext.stringio.StringIO$StringIOData org.jruby.util.ByteList
StackMap stack:
aload 2
getfield org.jruby.ext.stringio.StringIO$StringIOData.pos:I
iconst_m1
if_icmpne 10
7: aload 4
iload 1
i2b
invokevirtual org.jruby.util.ByteList.prepend:(B)V
8: aload 2
iconst_0
putfield org.jruby.ext.stringio.StringIO$StringIOData.pos:I
9: goto 11
10: StackMap locals:
StackMap stack:
aload 4
aload 2
getfield org.jruby.ext.stringio.StringIO$StringIOData.pos:I
iload 1
invokevirtual org.jruby.util.ByteList.set:(II)V
end local 4 11: StackMap locals:
StackMap stack:
aload 3
monitorexit
12: goto 15
StackMap locals:
StackMap stack: java.lang.Throwable
13: aload 3
monitorexit
14: athrow
15: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Lorg/jruby/ext/stringio/StringIO;
0 16 1 c I
1 16 2 ptr Lorg/jruby/ext/stringio/StringIO$StringIOData;
5 11 4 bytes Lorg/jruby/util/ByteList;
Exception table:
from to target type
2 12 13 any
13 14 13 any
MethodParameters:
Name Flags
c
private void ungetbyteCommon(org.jruby.RubyString);
descriptor: (Lorg/jruby/RubyString;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual org.jruby.RubyString.getByteList:()Lorg/jruby/util/ByteList;
astore 2
start local 2 1: aload 0
aload 2
invokevirtual org.jruby.util.ByteList.unsafeBytes:()[B
aload 2
invokevirtual org.jruby.util.ByteList.begin:()I
aload 2
invokevirtual org.jruby.util.ByteList.realSize:()I
invokevirtual org.jruby.ext.stringio.StringIO.ungetbyteCommon:([BII)V
2: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/ext/stringio/StringIO;
0 3 1 ungetBytes Lorg/jruby/RubyString;
1 3 2 ungetByteList Lorg/jruby/util/ByteList;
MethodParameters:
Name Flags
ungetBytes
private void ungetbyteCommon(byte[], int, int);
descriptor: ([BII)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=8, args_size=4
start local 0 start local 1 start local 2 start local 3 0: iload 3
ifne 1
return
1: StackMap locals:
StackMap stack:
aload 0
getfield org.jruby.ext.stringio.StringIO.ptr:Lorg/jruby/ext/stringio/StringIO$StringIOData;
astore 5
start local 5 2: aload 5
dup
astore 6
monitorenter
3: aload 5
getfield org.jruby.ext.stringio.StringIO$StringIOData.string:Lorg/jruby/RubyString;
invokevirtual org.jruby.RubyString.modify:()V
4: iload 3
aload 5
getfield org.jruby.ext.stringio.StringIO$StringIOData.pos:I
if_icmple 7
5: iconst_0
istore 4
start local 4 6: goto 8
end local 4 7: StackMap locals: org.jruby.ext.stringio.StringIO byte[] int int top org.jruby.ext.stringio.StringIO$StringIOData org.jruby.ext.stringio.StringIO$StringIOData
StackMap stack:
aload 5
getfield org.jruby.ext.stringio.StringIO$StringIOData.pos:I
iload 3
isub
istore 4
start local 4 8: StackMap locals: org.jruby.ext.stringio.StringIO byte[] int int int org.jruby.ext.stringio.StringIO$StringIOData org.jruby.ext.stringio.StringIO$StringIOData
StackMap stack:
aload 5
getfield org.jruby.ext.stringio.StringIO$StringIOData.string:Lorg/jruby/RubyString;
invokevirtual org.jruby.RubyString.getByteList:()Lorg/jruby/util/ByteList;
astore 7
start local 7 9: aload 0
invokevirtual org.jruby.ext.stringio.StringIO.isEndOfString:()Z
ifeq 10
aload 7
aload 5
getfield org.jruby.ext.stringio.StringIO$StringIOData.pos:I
iload 3
invokestatic java.lang.Math.max:(II)I
invokevirtual org.jruby.util.ByteList.length:(I)V
10: StackMap locals: org.jruby.util.ByteList
StackMap stack:
aload 7
iload 4
aload 5
getfield org.jruby.ext.stringio.StringIO$StringIOData.pos:I
iload 4
isub
aload 1
iload 2
iload 3
invokevirtual org.jruby.util.ByteList.replace:(II[BII)V
11: aload 5
iload 4
putfield org.jruby.ext.stringio.StringIO$StringIOData.pos:I
end local 7 12: aload 6
monitorexit
13: goto 16
end local 4 StackMap locals: org.jruby.ext.stringio.StringIO byte[] int int top org.jruby.ext.stringio.StringIO$StringIOData org.jruby.ext.stringio.StringIO$StringIOData
StackMap stack: java.lang.Throwable
14: aload 6
monitorexit
15: athrow
start local 4 16: StackMap locals: org.jruby.ext.stringio.StringIO byte[] int int int org.jruby.ext.stringio.StringIO$StringIOData
StackMap stack:
return
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Lorg/jruby/ext/stringio/StringIO;
0 17 1 ungetBytes [B
0 17 2 ungetBegin I
0 17 3 ungetLen I
6 7 4 start I
8 14 4 start I
16 17 4 start I
2 17 5 ptr Lorg/jruby/ext/stringio/StringIO$StringIOData;
9 12 7 byteList Lorg/jruby/util/ByteList;
Exception table:
from to target type
3 13 14 any
14 15 14 any
MethodParameters:
Name Flags
ungetBytes
ungetBegin
ungetLen
public org.jruby.runtime.builtin.IRubyObject ungetbyte(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokevirtual org.jruby.ext.stringio.StringIO.checkReadable:()V
1: aload 2
invokeinterface org.jruby.runtime.builtin.IRubyObject.isNil:()Z
ifeq 2
aload 2
areturn
2: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.jruby.ext.stringio.StringIO.checkModifiable:()V
3: aload 2
instanceof org.jruby.RubyFixnum
ifeq 6
4: aload 0
aload 2
invokestatic org.jruby.RubyNumeric.fix2int:(Lorg/jruby/runtime/builtin/IRubyObject;)I
invokevirtual org.jruby.ext.stringio.StringIO.ungetbyteCommon:(I)V
5: goto 7
6: StackMap locals:
StackMap stack:
aload 0
aload 2
invokeinterface org.jruby.runtime.builtin.IRubyObject.convertToString:()Lorg/jruby/RubyString;
invokevirtual org.jruby.ext.stringio.StringIO.ungetbyteCommon:(Lorg/jruby/RubyString;)V
7: StackMap locals:
StackMap stack:
aload 1
getfield org.jruby.runtime.ThreadContext.nil:Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/jruby/ext/stringio/StringIO;
0 8 1 context Lorg/jruby/runtime/ThreadContext;
0 8 2 arg Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod()
MethodParameters:
Name Flags
context
arg
public org.jruby.runtime.builtin.IRubyObject write(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
astore 3
start local 3 1: aload 3
aload 0
aload 1
aload 3
aload 2
invokevirtual org.jruby.ext.stringio.StringIO.stringIOWrite:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/Ruby;Lorg/jruby/runtime/builtin/IRubyObject;)J
invokestatic org.jruby.RubyFixnum.newFixnum:(Lorg/jruby/Ruby;J)Lorg/jruby/RubyFixnum;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/ext/stringio/StringIO;
0 2 1 context Lorg/jruby/runtime/ThreadContext;
0 2 2 arg Lorg/jruby/runtime/builtin/IRubyObject;
1 2 3 runtime Lorg/jruby/Ruby;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"write"})
MethodParameters:
Name Flags
context
arg
public org.jruby.runtime.builtin.IRubyObject write(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject[]);
descriptor: (Lorg/jruby/runtime/ThreadContext;[Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=10, args_size=3
start local 0 start local 1 start local 2 0: aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
astore 3
start local 3 1: lconst_0
lstore 4
start local 4 2: aload 2
dup
astore 9
arraylength
istore 8
iconst_0
istore 7
goto 6
StackMap locals: org.jruby.ext.stringio.StringIO org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject[] org.jruby.Ruby long top int int org.jruby.runtime.builtin.IRubyObject[]
StackMap stack:
3: aload 9
iload 7
aaload
astore 6
start local 6 4: lload 4
aload 0
aload 1
aload 3
aload 6
invokevirtual org.jruby.ext.stringio.StringIO.stringIOWrite:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/Ruby;Lorg/jruby/runtime/builtin/IRubyObject;)J
ladd
lstore 4
end local 6 5: iinc 7 1
StackMap locals:
StackMap stack:
6: iload 7
iload 8
if_icmplt 3
7: aload 3
lload 4
invokestatic org.jruby.RubyFixnum.newFixnum:(Lorg/jruby/Ruby;J)Lorg/jruby/RubyFixnum;
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/jruby/ext/stringio/StringIO;
0 8 1 context Lorg/jruby/runtime/ThreadContext;
0 8 2 args [Lorg/jruby/runtime/builtin/IRubyObject;
1 8 3 runtime Lorg/jruby/Ruby;
2 8 4 len J
4 5 6 arg Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"write"}, required = 1, rest = true)
MethodParameters:
Name Flags
context
args
private long stringIOWrite(org.jruby.runtime.ThreadContext, org.jruby.Ruby, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/Ruby;Lorg/jruby/runtime/builtin/IRubyObject;)J
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=13, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokevirtual org.jruby.ext.stringio.StringIO.checkWritable:()V
1: aload 3
invokeinterface org.jruby.runtime.builtin.IRubyObject.asString:()Lorg/jruby/RubyString;
astore 4
start local 4 2: aload 0
getfield org.jruby.ext.stringio.StringIO.ptr:Lorg/jruby/ext/stringio/StringIO$StringIOData;
astore 7
start local 7 3: aload 7
dup
astore 8
monitorenter
4: aload 0
invokevirtual org.jruby.ext.stringio.StringIO.getEncoding:()Lorg/jcodings/Encoding;
astore 9
start local 9 5: aload 4
invokevirtual org.jruby.RubyString.getEncoding:()Lorg/jcodings/Encoding;
astore 10
start local 10 6: aload 9
aload 10
if_acmpeq 9
aload 9
aload 2
invokestatic org.jruby.util.io.EncodingUtils.ascii8bitEncoding:(Lorg/jruby/Ruby;)Lorg/jcodings/Encoding;
if_acmpeq 9
7: aload 10
getstatic org.jcodings.specific.ASCIIEncoding.INSTANCE:Lorg/jcodings/specific/ASCIIEncoding;
if_acmpeq 9
8: aload 1
aload 4
aload 10
aload 9
invokestatic org.jruby.util.io.EncodingUtils.strConvEnc:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/RubyString;Lorg/jcodings/Encoding;Lorg/jcodings/Encoding;)Lorg/jruby/RubyString;
astore 4
9: StackMap locals: org.jruby.ext.stringio.StringIO org.jruby.runtime.ThreadContext org.jruby.Ruby org.jruby.runtime.builtin.IRubyObject org.jruby.RubyString top top org.jruby.ext.stringio.StringIO$StringIOData org.jruby.ext.stringio.StringIO$StringIOData org.jcodings.Encoding org.jcodings.Encoding
StackMap stack:
aload 4
invokevirtual org.jruby.RubyString.getByteList:()Lorg/jruby/util/ByteList;
astore 11
start local 11 10: aload 4
invokevirtual org.jruby.RubyString.size:()I
istore 5
start local 5 11: iload 5
ifne 13
aload 8
monitorexit
12: lconst_0
lreturn
13: StackMap locals: org.jruby.ext.stringio.StringIO org.jruby.runtime.ThreadContext org.jruby.Ruby org.jruby.runtime.builtin.IRubyObject org.jruby.RubyString int top org.jruby.ext.stringio.StringIO$StringIOData org.jruby.ext.stringio.StringIO$StringIOData org.jcodings.Encoding org.jcodings.Encoding org.jruby.util.ByteList
StackMap stack:
aload 0
invokevirtual org.jruby.ext.stringio.StringIO.checkModifiable:()V
14: aload 7
getfield org.jruby.ext.stringio.StringIO$StringIOData.string:Lorg/jruby/RubyString;
invokevirtual org.jruby.RubyString.size:()I
istore 6
start local 6 15: aload 7
getfield org.jruby.ext.stringio.StringIO$StringIOData.flags:I
bipush 64
iand
ifeq 17
16: aload 7
iload 6
putfield org.jruby.ext.stringio.StringIO$StringIOData.pos:I
17: StackMap locals: org.jruby.ext.stringio.StringIO org.jruby.runtime.ThreadContext org.jruby.Ruby org.jruby.runtime.builtin.IRubyObject org.jruby.RubyString int int org.jruby.ext.stringio.StringIO$StringIOData org.jruby.ext.stringio.StringIO$StringIOData org.jcodings.Encoding org.jcodings.Encoding org.jruby.util.ByteList
StackMap stack:
aload 7
getfield org.jruby.ext.stringio.StringIO$StringIOData.pos:I
iload 6
if_icmpne 20
18: aload 2
aload 7
getfield org.jruby.ext.stringio.StringIO$StringIOData.string:Lorg/jruby/RubyString;
aload 11
aload 9
invokestatic org.jruby.util.io.EncodingUtils.encStrBufCat:(Lorg/jruby/Ruby;Lorg/jruby/RubyString;Lorg/jruby/util/ByteList;Lorg/jcodings/Encoding;)V
19: goto 23
20: StackMap locals:
StackMap stack:
aload 0
aload 7
getfield org.jruby.ext.stringio.StringIO$StringIOData.pos:I
iload 5
invokevirtual org.jruby.ext.stringio.StringIO.strioExtend:(II)V
21: aload 7
getfield org.jruby.ext.stringio.StringIO$StringIOData.string:Lorg/jruby/RubyString;
invokevirtual org.jruby.RubyString.getByteList:()Lorg/jruby/util/ByteList;
astore 12
start local 12 22: aload 11
invokevirtual org.jruby.util.ByteList.getUnsafeBytes:()[B
aload 11
invokevirtual org.jruby.util.ByteList.getBegin:()I
aload 12
invokevirtual org.jruby.util.ByteList.getUnsafeBytes:()[B
aload 12
invokevirtual org.jruby.util.ByteList.begin:()I
aload 7
getfield org.jruby.ext.stringio.StringIO$StringIOData.pos:I
iadd
iload 5
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
end local 12 23: StackMap locals:
StackMap stack:
aload 7
getfield org.jruby.ext.stringio.StringIO$StringIOData.string:Lorg/jruby/RubyString;
aload 4
invokevirtual org.jruby.RubyString.infectBy:(Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
pop
24: aload 7
getfield org.jruby.ext.stringio.StringIO$StringIOData.string:Lorg/jruby/RubyString;
aload 0
invokevirtual org.jruby.RubyString.infectBy:(Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
pop
25: aload 7
dup
getfield org.jruby.ext.stringio.StringIO$StringIOData.pos:I
iload 5
iadd
putfield org.jruby.ext.stringio.StringIO$StringIOData.pos:I
end local 11 end local 10 end local 9 26: aload 8
monitorexit
27: goto 30
end local 6 end local 5 StackMap locals: org.jruby.ext.stringio.StringIO org.jruby.runtime.ThreadContext org.jruby.Ruby org.jruby.runtime.builtin.IRubyObject org.jruby.RubyString top top org.jruby.ext.stringio.StringIO$StringIOData org.jruby.ext.stringio.StringIO$StringIOData
StackMap stack: java.lang.Throwable
28: aload 8
monitorexit
29: athrow
start local 5 start local 6 30: StackMap locals: org.jruby.ext.stringio.StringIO org.jruby.runtime.ThreadContext org.jruby.Ruby org.jruby.runtime.builtin.IRubyObject org.jruby.RubyString int int org.jruby.ext.stringio.StringIO$StringIOData
StackMap stack:
iload 5
i2l
lreturn
end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 31 0 this Lorg/jruby/ext/stringio/StringIO;
0 31 1 context Lorg/jruby/runtime/ThreadContext;
0 31 2 runtime Lorg/jruby/Ruby;
0 31 3 arg Lorg/jruby/runtime/builtin/IRubyObject;
2 31 4 str Lorg/jruby/RubyString;
11 28 5 len I
30 31 5 len I
15 28 6 olen I
30 31 6 olen I
3 31 7 ptr Lorg/jruby/ext/stringio/StringIO$StringIOData;
5 26 9 enc Lorg/jcodings/Encoding;
6 26 10 encStr Lorg/jcodings/Encoding;
10 26 11 strByteList Lorg/jruby/util/ByteList;
22 23 12 ptrByteList Lorg/jruby/util/ByteList;
Exception table:
from to target type
4 12 28 any
13 27 28 any
28 29 28 any
MethodParameters:
Name Flags
context
runtime
arg
public org.jruby.runtime.builtin.IRubyObject set_encoding(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=7, args_size=3
start local 0 start local 1 start local 2 0: aload 2
invokeinterface org.jruby.runtime.builtin.IRubyObject.isNil:()Z
ifeq 3
1: aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
invokestatic org.jruby.util.io.EncodingUtils.defaultExternalEncoding:(Lorg/jruby/Ruby;)Lorg/jcodings/Encoding;
astore 3
start local 3 2: goto 4
end local 3 3: StackMap locals:
StackMap stack:
aload 1
aload 2
invokestatic org.jruby.util.io.EncodingUtils.rbToEncoding:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jcodings/Encoding;
astore 3
start local 3 4: StackMap locals: org.jcodings.Encoding
StackMap stack:
aload 0
getfield org.jruby.ext.stringio.StringIO.ptr:Lorg/jruby/ext/stringio/StringIO$StringIOData;
astore 4
start local 4 5: aload 4
dup
astore 5
monitorenter
6: aload 4
aload 3
putfield org.jruby.ext.stringio.StringIO$StringIOData.enc:Lorg/jcodings/Encoding;
7: aload 0
invokevirtual org.jruby.ext.stringio.StringIO.writable:()Z
ifeq 11
aload 4
getfield org.jruby.ext.stringio.StringIO$StringIOData.string:Lorg/jruby/RubyString;
dup
astore 6
start local 6 8: invokevirtual org.jruby.RubyString.getEncoding:()Lorg/jcodings/Encoding;
aload 3
if_acmpeq 11
9: aload 6
invokevirtual org.jruby.RubyString.modify:()V
10: aload 6
aload 3
invokevirtual org.jruby.RubyString.setEncoding:(Lorg/jcodings/Encoding;)V
end local 6 11: StackMap locals: org.jruby.ext.stringio.StringIO$StringIOData org.jruby.ext.stringio.StringIO$StringIOData
StackMap stack:
aload 5
monitorexit
12: goto 15
StackMap locals:
StackMap stack: java.lang.Throwable
13: aload 5
monitorexit
14: athrow
15: StackMap locals:
StackMap stack:
aload 0
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Lorg/jruby/ext/stringio/StringIO;
0 16 1 context Lorg/jruby/runtime/ThreadContext;
0 16 2 ext_enc Lorg/jruby/runtime/builtin/IRubyObject;
2 3 3 enc Lorg/jcodings/Encoding;
4 16 3 enc Lorg/jcodings/Encoding;
5 16 4 ptr Lorg/jruby/ext/stringio/StringIO$StringIOData;
8 11 6 string Lorg/jruby/RubyString;
Exception table:
from to target type
6 12 13 any
13 14 13 any
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod()
MethodParameters:
Name Flags
context
ext_enc
public org.jruby.runtime.builtin.IRubyObject set_encoding(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
aload 2
invokevirtual org.jruby.ext.stringio.StringIO.set_encoding:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ext/stringio/StringIO;
0 1 1 context Lorg/jruby/runtime/ThreadContext;
0 1 2 enc Lorg/jruby/runtime/builtin/IRubyObject;
0 1 3 ignored Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod()
MethodParameters:
Name Flags
context
enc
ignored
public org.jruby.runtime.builtin.IRubyObject set_encoding(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
aload 1
aload 2
invokevirtual org.jruby.ext.stringio.StringIO.set_encoding:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ext/stringio/StringIO;
0 1 1 context Lorg/jruby/runtime/ThreadContext;
0 1 2 enc Lorg/jruby/runtime/builtin/IRubyObject;
0 1 3 ignored1 Lorg/jruby/runtime/builtin/IRubyObject;
0 1 4 ignored2 Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod()
MethodParameters:
Name Flags
context
enc
ignored1
ignored2
public org.jruby.runtime.builtin.IRubyObject external_encoding(org.jruby.runtime.ThreadContext);
descriptor: (Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
invokevirtual org.jruby.Ruby.getEncodingService:()Lorg/jruby/runtime/encoding/EncodingService;
aload 0
invokevirtual org.jruby.ext.stringio.StringIO.getEncoding:()Lorg/jcodings/Encoding;
invokevirtual org.jruby.runtime.encoding.EncodingService.convertEncodingToRubyEncoding:(Lorg/jcodings/Encoding;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ext/stringio/StringIO;
0 1 1 context Lorg/jruby/runtime/ThreadContext;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod()
MethodParameters:
Name Flags
context
public org.jruby.runtime.builtin.IRubyObject internal_encoding(org.jruby.runtime.ThreadContext);
descriptor: (Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 1
getfield org.jruby.runtime.ThreadContext.nil:Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ext/stringio/StringIO;
0 1 1 context Lorg/jruby/runtime/ThreadContext;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod()
MethodParameters:
Name Flags
context
public org.jruby.runtime.builtin.IRubyObject each_codepoint(org.jruby.runtime.ThreadContext, org.jruby.runtime.Block);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=12, args_size=3
start local 0 start local 1 start local 2 0: aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
astore 3
start local 3 1: aload 2
invokevirtual org.jruby.runtime.Block.isGiven:()Z
ifne 2
aload 3
aload 0
ldc "each_codepoint"
invokestatic org.jruby.RubyEnumerator.enumeratorize:(Lorg/jruby/Ruby;Lorg/jruby/runtime/builtin/IRubyObject;Ljava/lang/String;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
2: StackMap locals: org.jruby.Ruby
StackMap stack:
aload 0
invokevirtual org.jruby.ext.stringio.StringIO.checkReadable:()V
3: aload 0
getfield org.jruby.ext.stringio.StringIO.ptr:Lorg/jruby/ext/stringio/StringIO$StringIOData;
astore 4
start local 4 4: aload 4
dup
astore 5
monitorenter
5: aload 0
invokevirtual org.jruby.ext.stringio.StringIO.getEncoding:()Lorg/jcodings/Encoding;
astore 6
start local 6 6: aload 4
getfield org.jruby.ext.stringio.StringIO$StringIOData.string:Lorg/jruby/RubyString;
invokevirtual org.jruby.RubyString.getByteList:()Lorg/jruby/util/ByteList;
astore 7
start local 7 7: aload 7
invokevirtual org.jruby.util.ByteList.getUnsafeBytes:()[B
astore 8
start local 8 8: aload 7
invokevirtual org.jruby.util.ByteList.getBegin:()I
istore 9
start local 9 9: StackMap locals: org.jruby.ext.stringio.StringIO org.jruby.runtime.ThreadContext org.jruby.runtime.Block org.jruby.Ruby org.jruby.ext.stringio.StringIO$StringIOData org.jruby.ext.stringio.StringIO$StringIOData org.jcodings.Encoding org.jruby.util.ByteList byte[] int
StackMap stack:
aload 4
getfield org.jruby.ext.stringio.StringIO$StringIOData.pos:I
aload 4
getfield org.jruby.ext.stringio.StringIO$StringIOData.string:Lorg/jruby/RubyString;
invokevirtual org.jruby.RubyString.size:()I
if_icmplt 11
aload 0
aload 5
monitorexit
10: areturn
11: StackMap locals:
StackMap stack:
aload 3
aload 6
aload 8
iload 9
aload 4
getfield org.jruby.ext.stringio.StringIO$StringIOData.pos:I
iadd
aload 8
arraylength
invokestatic org.jruby.util.StringSupport.codePoint:(Lorg/jruby/Ruby;Lorg/jcodings/Encoding;[BII)I
istore 10
start local 10 12: aload 6
iload 10
invokestatic org.jruby.util.StringSupport.codeLength:(Lorg/jcodings/Encoding;I)I
istore 11
start local 11 13: aload 2
aload 1
aload 3
iload 10
invokevirtual org.jruby.Ruby.newFixnum:(I)Lorg/jruby/RubyFixnum;
invokevirtual org.jruby.runtime.Block.yield:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
pop
14: aload 4
dup
getfield org.jruby.ext.stringio.StringIO$StringIOData.pos:I
iload 11
iadd
putfield org.jruby.ext.stringio.StringIO$StringIOData.pos:I
end local 11 end local 10 15: goto 9
end local 9 end local 8 end local 7 end local 6 16: StackMap locals: org.jruby.ext.stringio.StringIO org.jruby.runtime.ThreadContext org.jruby.runtime.Block org.jruby.Ruby org.jruby.ext.stringio.StringIO$StringIOData org.jruby.ext.stringio.StringIO$StringIOData
StackMap stack: java.lang.Throwable
aload 5
monitorexit
17: athrow
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 this Lorg/jruby/ext/stringio/StringIO;
0 18 1 context Lorg/jruby/runtime/ThreadContext;
0 18 2 block Lorg/jruby/runtime/Block;
1 18 3 runtime Lorg/jruby/Ruby;
4 18 4 ptr Lorg/jruby/ext/stringio/StringIO$StringIOData;
6 16 6 enc Lorg/jcodings/Encoding;
7 16 7 string Lorg/jruby/util/ByteList;
8 16 8 stringBytes [B
9 16 9 begin I
12 15 10 c I
13 15 11 n I
Exception table:
from to target type
5 10 16 any
11 17 16 any
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"each_codepoint"})
MethodParameters:
Name Flags
context
block
public org.jruby.runtime.builtin.IRubyObject codepoints(org.jruby.runtime.ThreadContext, org.jruby.runtime.Block);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
astore 3
start local 3 1: aload 3
invokevirtual org.jruby.Ruby.getWarnings:()Lorg/jruby/common/RubyWarnings;
ldc "StringIO#codepoints is deprecated; use #each_codepoint"
invokevirtual org.jruby.common.RubyWarnings.warn:(Ljava/lang/String;)V
2: aload 2
invokevirtual org.jruby.runtime.Block.isGiven:()Z
ifne 3
aload 3
aload 0
ldc "each_codepoint"
invokestatic org.jruby.RubyEnumerator.enumeratorize:(Lorg/jruby/Ruby;Lorg/jruby/runtime/builtin/IRubyObject;Ljava/lang/String;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
3: StackMap locals: org.jruby.Ruby
StackMap stack:
aload 0
aload 1
aload 2
invokevirtual org.jruby.ext.stringio.StringIO.each_codepoint:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/jruby/ext/stringio/StringIO;
0 4 1 context Lorg/jruby/runtime/ThreadContext;
0 4 2 block Lorg/jruby/runtime/Block;
1 4 3 runtime Lorg/jruby/Ruby;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"codepoints"})
MethodParameters:
Name Flags
context
block
public org.jruby.runtime.builtin.IRubyObject puts(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject[]);
descriptor: (Lorg/jruby/runtime/ThreadContext;[Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
aload 0
aload 2
invokestatic org.jruby.ext.stringio.StringIO$GenericWritable.puts:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;[Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ext/stringio/StringIO;
0 1 1 context Lorg/jruby/runtime/ThreadContext;
0 1 2 args [Lorg/jruby/runtime/builtin/IRubyObject;
MethodParameters:
Name Flags
context
args
public void checkFrozen();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial org.jruby.RubyObject.checkFrozen:()V
1: aload 0
invokevirtual org.jruby.ext.stringio.StringIO.checkInitialized:()V
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/ext/stringio/StringIO;
private boolean readable();
descriptor: ()Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.ext.stringio.StringIO.flags:I
getstatic org.jruby.ext.stringio.StringIO.STRIO_READABLE:I
iand
ifeq 3
1: aload 0
getfield org.jruby.ext.stringio.StringIO.ptr:Lorg/jruby/ext/stringio/StringIO$StringIOData;
getfield org.jruby.ext.stringio.StringIO$StringIOData.flags:I
iconst_1
iand
ifeq 3
2: iconst_1
ireturn
StackMap locals:
StackMap stack:
3: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/jruby/ext/stringio/StringIO;
private boolean writable();
descriptor: ()Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.ext.stringio.StringIO.flags:I
getstatic org.jruby.ext.stringio.StringIO.STRIO_WRITABLE:I
iand
ifeq 3
1: aload 0
getfield org.jruby.ext.stringio.StringIO.ptr:Lorg/jruby/ext/stringio/StringIO$StringIOData;
getfield org.jruby.ext.stringio.StringIO$StringIOData.flags:I
iconst_2
iand
ifeq 3
2: iconst_1
ireturn
StackMap locals:
StackMap stack:
3: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/jruby/ext/stringio/StringIO;
private boolean closed();
descriptor: ()Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.ext.stringio.StringIO.flags:I
getstatic org.jruby.ext.stringio.StringIO.STRIO_READWRITE:I
iand
ifeq 3
1: aload 0
getfield org.jruby.ext.stringio.StringIO.ptr:Lorg/jruby/ext/stringio/StringIO$StringIOData;
getfield org.jruby.ext.stringio.StringIO$StringIOData.flags:I
iconst_3
iand
ifeq 3
2: iconst_0
goto 4
StackMap locals:
StackMap stack:
3: iconst_1
StackMap locals:
StackMap stack: int
4: ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/jruby/ext/stringio/StringIO;
private void checkReadable();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.jruby.ext.stringio.StringIO.checkInitialized:()V
1: aload 0
invokevirtual org.jruby.ext.stringio.StringIO.readable:()Z
ifne 3
2: aload 0
invokevirtual org.jruby.ext.stringio.StringIO.getRuntime:()Lorg/jruby/Ruby;
ldc "not opened for reading"
invokevirtual org.jruby.Ruby.newIOError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
3: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/jruby/ext/stringio/StringIO;
private void checkWritable();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.jruby.ext.stringio.StringIO.checkInitialized:()V
1: aload 0
invokevirtual org.jruby.ext.stringio.StringIO.writable:()Z
ifne 3
2: aload 0
invokevirtual org.jruby.ext.stringio.StringIO.getRuntime:()Lorg/jruby/Ruby;
ldc "not opened for writing"
invokevirtual org.jruby.Ruby.newIOError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
3: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/jruby/ext/stringio/StringIO;
private void checkModifiable();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.jruby.ext.stringio.StringIO.checkFrozen:()V
1: aload 0
getfield org.jruby.ext.stringio.StringIO.ptr:Lorg/jruby/ext/stringio/StringIO$StringIOData;
getfield org.jruby.ext.stringio.StringIO$StringIOData.string:Lorg/jruby/RubyString;
invokevirtual org.jruby.RubyString.isFrozen:()Z
ifeq 2
aload 0
invokevirtual org.jruby.ext.stringio.StringIO.getRuntime:()Lorg/jruby/Ruby;
ldc "not modifiable string"
invokevirtual org.jruby.Ruby.newIOError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
2: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/ext/stringio/StringIO;
private void checkInitialized();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.ext.stringio.StringIO.ptr:Lorg/jruby/ext/stringio/StringIO$StringIOData;
ifnonnull 2
1: aload 0
invokevirtual org.jruby.ext.stringio.StringIO.getRuntime:()Lorg/jruby/Ruby;
ldc "uninitialized stream"
invokevirtual org.jruby.Ruby.newIOError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
2: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/ext/stringio/StringIO;
private void checkFinalized();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.ext.stringio.StringIO.ptr:Lorg/jruby/ext/stringio/StringIO$StringIOData;
getfield org.jruby.ext.stringio.StringIO$StringIOData.string:Lorg/jruby/RubyString;
ifnonnull 2
1: aload 0
invokevirtual org.jruby.ext.stringio.StringIO.getRuntime:()Lorg/jruby/Ruby;
ldc "not opened"
invokevirtual org.jruby.Ruby.newIOError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
2: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/ext/stringio/StringIO;
private void checkOpen();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.jruby.ext.stringio.StringIO.closed:()Z
ifeq 2
1: aload 0
invokevirtual org.jruby.ext.stringio.StringIO.getRuntime:()Lorg/jruby/Ruby;
ldc "closed stream"
invokevirtual org.jruby.Ruby.newIOError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
2: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/ext/stringio/StringIO;
}
SourceFile: "StringIO.java"
NestMembers:
org.jruby.ext.stringio.StringIO$1 org.jruby.ext.stringio.StringIO$2 org.jruby.ext.stringio.StringIO$3 org.jruby.ext.stringio.StringIO$4 org.jruby.ext.stringio.StringIO$GenericReadable org.jruby.ext.stringio.StringIO$GenericWritable org.jruby.ext.stringio.StringIO$StringIOData
InnerClasses:
org.jruby.ext.stringio.StringIO$1
org.jruby.ext.stringio.StringIO$2
org.jruby.ext.stringio.StringIO$3
org.jruby.ext.stringio.StringIO$4
public GenericReadable = org.jruby.ext.stringio.StringIO$GenericReadable of org.jruby.ext.stringio.StringIO
public GenericWritable = org.jruby.ext.stringio.StringIO$GenericWritable of org.jruby.ext.stringio.StringIO
StringIOData = org.jruby.ext.stringio.StringIO$StringIOData of org.jruby.ext.stringio.StringIO
public AnyIO = org.jruby.java.addons.IOJavaAddons$AnyIO of org.jruby.java.addons.IOJavaAddons
public abstract Callback = org.jruby.util.io.Getline$Callback of org.jruby.util.io.Getline
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyClass(name = {"StringIO"})