public final class com.oracle.truffle.js.runtime.util.StringBuilderProfile extends com.oracle.truffle.api.nodes.NodeCloneable
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: com.oracle.truffle.js.runtime.util.StringBuilderProfile
super_class: com.oracle.truffle.api.nodes.NodeCloneable
{
private static final int MAX_INT_STRING_LENGTH;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 11
private static final int MAX_LONG_STRING_LENGTH;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 20
private final int stringLengthLimit;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final com.oracle.truffle.api.profiles.BranchProfile errorBranch;
descriptor: Lcom/oracle/truffle/api/profiles/BranchProfile;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
static final boolean $assertionsDisabled;
descriptor: Z
flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lcom/oracle/truffle/js/runtime/util/StringBuilderProfile;
invokevirtual java.lang.Class.desiredAssertionStatus:()Z
ifne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: putstatic com.oracle.truffle.js.runtime.util.StringBuilderProfile.$assertionsDisabled:Z
3: return
LocalVariableTable:
Start End Slot Name Signature
private void <init>(int);
descriptor: (I)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial com.oracle.truffle.api.nodes.NodeCloneable.<init>:()V
1: aload 0
iload 1
putfield com.oracle.truffle.js.runtime.util.StringBuilderProfile.stringLengthLimit:I
2: aload 0
invokestatic com.oracle.truffle.api.profiles.BranchProfile.create:()Lcom/oracle/truffle/api/profiles/BranchProfile;
putfield com.oracle.truffle.js.runtime.util.StringBuilderProfile.errorBranch:Lcom/oracle/truffle/api/profiles/BranchProfile;
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/oracle/truffle/js/runtime/util/StringBuilderProfile;
0 4 1 stringLengthLimit I
MethodParameters:
Name Flags
stringLengthLimit
public static com.oracle.truffle.js.runtime.util.StringBuilderProfile create(int);
descriptor: (I)Lcom/oracle/truffle/js/runtime/util/StringBuilderProfile;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new com.oracle.truffle.js.runtime.util.StringBuilderProfile
dup
iload 0
invokespecial com.oracle.truffle.js.runtime.util.StringBuilderProfile.<init>:(I)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 stringLengthLimit I
MethodParameters:
Name Flags
stringLengthLimit
public java.lang.StringBuilder newStringBuilder();
descriptor: ()Ljava/lang/StringBuilder;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/truffle/js/runtime/util/StringBuilderProfile;
public java.lang.StringBuilder newStringBuilder(int);
descriptor: (I)Ljava/lang/StringBuilder;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: new java.lang.StringBuilder
dup
bipush 16
iload 1
aload 0
getfield com.oracle.truffle.js.runtime.util.StringBuilderProfile.stringLengthLimit:I
invokestatic java.lang.Math.min:(II)I
invokestatic java.lang.Math.max:(II)I
invokespecial java.lang.StringBuilder.<init>:(I)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/truffle/js/runtime/util/StringBuilderProfile;
0 1 1 capacity I
MethodParameters:
Name Flags
capacity
public java.lang.String toString(java.lang.StringBuilder);
descriptor: (Ljava/lang/StringBuilder;)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokestatic com.oracle.truffle.js.runtime.Boundaries.builderToString:(Ljava/lang/StringBuilder;)Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/truffle/js/runtime/util/StringBuilderProfile;
0 1 1 builder Ljava/lang/StringBuilder;
MethodParameters:
Name Flags
builder
public void append(java.lang.StringBuilder, java.lang.String);
descriptor: (Ljava/lang/StringBuilder;Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokevirtual java.lang.StringBuilder.length:()I
aload 2
invokevirtual java.lang.String.length:()I
iadd
aload 0
getfield com.oracle.truffle.js.runtime.util.StringBuilderProfile.stringLengthLimit:I
if_icmple 3
1: aload 0
getfield com.oracle.truffle.js.runtime.util.StringBuilderProfile.errorBranch:Lcom/oracle/truffle/api/profiles/BranchProfile;
invokevirtual com.oracle.truffle.api.profiles.BranchProfile.enter:()V
2: invokestatic com.oracle.truffle.js.runtime.Errors.createRangeErrorInvalidStringLength:()Lcom/oracle/truffle/js/runtime/JSException;
athrow
3: StackMap locals:
StackMap stack:
aload 1
aload 2
invokestatic com.oracle.truffle.js.runtime.Boundaries.builderAppend:(Ljava/lang/StringBuilder;Ljava/lang/String;)V
4: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/oracle/truffle/js/runtime/util/StringBuilderProfile;
0 5 1 builder Ljava/lang/StringBuilder;
0 5 2 str Ljava/lang/String;
MethodParameters:
Name Flags
builder
str
public void append(java.lang.StringBuilder, char);
descriptor: (Ljava/lang/StringBuilder;C)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokevirtual java.lang.StringBuilder.length:()I
iconst_1
iadd
aload 0
getfield com.oracle.truffle.js.runtime.util.StringBuilderProfile.stringLengthLimit:I
if_icmple 3
1: aload 0
getfield com.oracle.truffle.js.runtime.util.StringBuilderProfile.errorBranch:Lcom/oracle/truffle/api/profiles/BranchProfile;
invokevirtual com.oracle.truffle.api.profiles.BranchProfile.enter:()V
2: invokestatic com.oracle.truffle.js.runtime.Errors.createRangeErrorInvalidStringLength:()Lcom/oracle/truffle/js/runtime/JSException;
athrow
3: StackMap locals:
StackMap stack:
aload 1
iload 2
invokestatic com.oracle.truffle.js.runtime.Boundaries.builderAppend:(Ljava/lang/StringBuilder;C)V
4: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/oracle/truffle/js/runtime/util/StringBuilderProfile;
0 5 1 builder Ljava/lang/StringBuilder;
0 5 2 c C
MethodParameters:
Name Flags
builder
c
public void append(java.lang.StringBuilder, int);
descriptor: (Ljava/lang/StringBuilder;I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokevirtual java.lang.StringBuilder.length:()I
bipush 11
iadd
aload 0
getfield com.oracle.truffle.js.runtime.util.StringBuilderProfile.stringLengthLimit:I
if_icmple 3
1: aload 0
getfield com.oracle.truffle.js.runtime.util.StringBuilderProfile.errorBranch:Lcom/oracle/truffle/api/profiles/BranchProfile;
invokevirtual com.oracle.truffle.api.profiles.BranchProfile.enter:()V
2: invokestatic com.oracle.truffle.js.runtime.Errors.createRangeErrorInvalidStringLength:()Lcom/oracle/truffle/js/runtime/JSException;
athrow
3: StackMap locals:
StackMap stack:
aload 1
iload 2
invokestatic com.oracle.truffle.js.runtime.Boundaries.builderAppend:(Ljava/lang/StringBuilder;I)V
4: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/oracle/truffle/js/runtime/util/StringBuilderProfile;
0 5 1 builder Ljava/lang/StringBuilder;
0 5 2 intValue I
MethodParameters:
Name Flags
builder
intValue
public void append(java.lang.StringBuilder, long);
descriptor: (Ljava/lang/StringBuilder;J)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokevirtual java.lang.StringBuilder.length:()I
bipush 20
iadd
aload 0
getfield com.oracle.truffle.js.runtime.util.StringBuilderProfile.stringLengthLimit:I
if_icmple 3
1: aload 0
getfield com.oracle.truffle.js.runtime.util.StringBuilderProfile.errorBranch:Lcom/oracle/truffle/api/profiles/BranchProfile;
invokevirtual com.oracle.truffle.api.profiles.BranchProfile.enter:()V
2: invokestatic com.oracle.truffle.js.runtime.Errors.createRangeErrorInvalidStringLength:()Lcom/oracle/truffle/js/runtime/JSException;
athrow
3: StackMap locals:
StackMap stack:
aload 1
lload 2
invokestatic com.oracle.truffle.js.runtime.Boundaries.builderAppend:(Ljava/lang/StringBuilder;J)V
4: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/oracle/truffle/js/runtime/util/StringBuilderProfile;
0 5 1 builder Ljava/lang/StringBuilder;
0 5 2 longValue J
MethodParameters:
Name Flags
builder
longValue
public void append(java.lang.StringBuilder, java.lang.String, int, int);
descriptor: (Ljava/lang/StringBuilder;Ljava/lang/String;II)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: getstatic com.oracle.truffle.js.runtime.util.StringBuilderProfile.$assertionsDisabled:Z
ifne 1
iload 3
iload 4
if_icmple 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.lang.StringBuilder.length:()I
iload 4
iload 3
isub
iadd
aload 0
getfield com.oracle.truffle.js.runtime.util.StringBuilderProfile.stringLengthLimit:I
if_icmple 4
2: aload 0
getfield com.oracle.truffle.js.runtime.util.StringBuilderProfile.errorBranch:Lcom/oracle/truffle/api/profiles/BranchProfile;
invokevirtual com.oracle.truffle.api.profiles.BranchProfile.enter:()V
3: invokestatic com.oracle.truffle.js.runtime.Errors.createRangeErrorInvalidStringLength:()Lcom/oracle/truffle/js/runtime/JSException;
athrow
4: StackMap locals:
StackMap stack:
aload 1
aload 2
iload 3
iload 4
invokestatic com.oracle.truffle.js.runtime.Boundaries.builderAppend:(Ljava/lang/StringBuilder;Ljava/lang/String;II)V
5: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lcom/oracle/truffle/js/runtime/util/StringBuilderProfile;
0 6 1 builder Ljava/lang/StringBuilder;
0 6 2 charSequence Ljava/lang/String;
0 6 3 start I
0 6 4 end I
MethodParameters:
Name Flags
builder
charSequence
start
end
protected java.lang.Object clone();
descriptor: ()Ljava/lang/Object;
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=1, args_size=1
start local 0 0: new com.oracle.truffle.js.runtime.util.StringBuilderProfile
dup
aload 0
getfield com.oracle.truffle.js.runtime.util.StringBuilderProfile.stringLengthLimit:I
invokespecial com.oracle.truffle.js.runtime.util.StringBuilderProfile.<init>:(I)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/truffle/js/runtime/util/StringBuilderProfile;
}
SourceFile: "StringBuilderProfile.java"