class com.oracle.truffle.llvm.tests.llirtestgen.LLIRTestGen$StringDB
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: com.oracle.truffle.llvm.tests.llirtestgen.LLIRTestGen$StringDB
super_class: java.lang.Object
{
private java.lang.StringBuilder strings;
descriptor: Ljava/lang/StringBuilder;
flags: (0x0002) ACC_PRIVATE
void <init>();
descriptor: ()V
flags: (0x0000)
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
putfield com.oracle.truffle.llvm.tests.llirtestgen.LLIRTestGen$StringDB.strings:Ljava/lang/StringBuilder;
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/oracle/truffle/llvm/tests/llirtestgen/LLIRTestGen$StringDB;
java.lang.StringBuilder get();
descriptor: ()Ljava/lang/StringBuilder;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.oracle.truffle.llvm.tests.llirtestgen.LLIRTestGen$StringDB.strings:Ljava/lang/StringBuilder;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/truffle/llvm/tests/llirtestgen/LLIRTestGen$StringDB;
java.lang.String addConst(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0000)
Code:
stack=6, locals=4, args_size=2
start local 0 start local 1 0: ldc "string%d"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 0
getfield com.oracle.truffle.llvm.tests.llirtestgen.LLIRTestGen$StringDB.strings:Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.length:()I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
astore 2
start local 2 1: aload 1
invokevirtual java.lang.String.length:()I
iconst_1
iadd
istore 3
start local 3 2: aload 0
getfield com.oracle.truffle.llvm.tests.llirtestgen.LLIRTestGen$StringDB.strings:Ljava/lang/StringBuilder;
ldc "@.str%s = private unnamed_addr constant "
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 2
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
3: aload 0
getfield com.oracle.truffle.llvm.tests.llirtestgen.LLIRTestGen$StringDB.strings:Ljava/lang/StringBuilder;
ldc "[%d x i8] c\"%s\\00\", align 1\n"
iconst_2
anewarray java.lang.Object
dup
iconst_0
iload 3
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_1
aload 1
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
4: aload 0
getfield com.oracle.truffle.llvm.tests.llirtestgen.LLIRTestGen$StringDB.strings:Ljava/lang/StringBuilder;
ldc "@%s = global i8* getelementptr inbounds "
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 2
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
5: aload 0
getfield com.oracle.truffle.llvm.tests.llirtestgen.LLIRTestGen$StringDB.strings:Ljava/lang/StringBuilder;
ldc "([%d x i8], [%d x i8]* @.str%s, i64 0, i64 0), align 8\n"
iconst_3
anewarray java.lang.Object
dup
iconst_0
iload 3
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_1
iload 3
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_2
aload 2
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
6: ldc "load i8*, i8** @%s, align 8"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 2
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lcom/oracle/truffle/llvm/tests/llirtestgen/LLIRTestGen$StringDB;
0 7 1 text Ljava/lang/String;
1 7 2 id Ljava/lang/String;
2 7 3 len I
MethodParameters:
Name Flags
text
}
SourceFile: "LLIRTestGen.java"
NestHost: com.oracle.truffle.llvm.tests.llirtestgen.LLIRTestGen
InnerClasses:
StringDB = com.oracle.truffle.llvm.tests.llirtestgen.LLIRTestGen$StringDB of com.oracle.truffle.llvm.tests.llirtestgen.LLIRTestGen