public final class jdk.nashorn.internal.runtime.ConsString implements java.lang.CharSequence
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: jdk.nashorn.internal.runtime.ConsString
super_class: java.lang.Object
{
private java.lang.CharSequence left;
descriptor: Ljava/lang/CharSequence;
flags: (0x0002) ACC_PRIVATE
private java.lang.CharSequence right;
descriptor: Ljava/lang/CharSequence;
flags: (0x0002) ACC_PRIVATE
private final int length;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private volatile int state;
descriptor: I
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
private static final int STATE_NEW;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 0
private static final int STATE_THRESHOLD;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 2
private static final int STATE_FLATTENED;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: -1
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 Ljdk/nashorn/internal/runtime/ConsString;
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 jdk.nashorn.internal.runtime.ConsString.$assertionsDisabled:Z
3: return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(java.lang.CharSequence, java.lang.CharSequence);
descriptor: (Ljava/lang/CharSequence;Ljava/lang/CharSequence;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
iconst_0
putfield jdk.nashorn.internal.runtime.ConsString.state:I
2: getstatic jdk.nashorn.internal.runtime.ConsString.$assertionsDisabled:Z
ifne 3
aload 1
invokestatic jdk.nashorn.internal.runtime.JSType.isString:(Ljava/lang/Object;)Z
ifne 3
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
3: StackMap locals: jdk.nashorn.internal.runtime.ConsString java.lang.CharSequence java.lang.CharSequence
StackMap stack:
getstatic jdk.nashorn.internal.runtime.ConsString.$assertionsDisabled:Z
ifne 4
aload 2
invokestatic jdk.nashorn.internal.runtime.JSType.isString:(Ljava/lang/Object;)Z
ifne 4
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
4: StackMap locals:
StackMap stack:
aload 0
aload 1
putfield jdk.nashorn.internal.runtime.ConsString.left:Ljava/lang/CharSequence;
5: aload 0
aload 2
putfield jdk.nashorn.internal.runtime.ConsString.right:Ljava/lang/CharSequence;
6: aload 0
aload 1
invokeinterface java.lang.CharSequence.length:()I
aload 2
invokeinterface java.lang.CharSequence.length:()I
iadd
putfield jdk.nashorn.internal.runtime.ConsString.length:I
7: aload 0
getfield jdk.nashorn.internal.runtime.ConsString.length:I
ifge 9
8: new java.lang.IllegalArgumentException
dup
ldc "too big concatenated String"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
9: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Ljdk/nashorn/internal/runtime/ConsString;
0 10 1 left Ljava/lang/CharSequence;
0 10 2 right Ljava/lang/CharSequence;
MethodParameters:
Name Flags
left final
right final
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
iconst_1
invokevirtual jdk.nashorn.internal.runtime.ConsString.flattened:(Z)Ljava/lang/CharSequence;
checkcast java.lang.String
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/nashorn/internal/runtime/ConsString;
public int length();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.nashorn.internal.runtime.ConsString.length:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/nashorn/internal/runtime/ConsString;
public char charAt(int);
descriptor: (I)C
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iconst_1
invokevirtual jdk.nashorn.internal.runtime.ConsString.flattened:(Z)Ljava/lang/CharSequence;
iload 1
invokeinterface java.lang.CharSequence.charAt:(I)C
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/nashorn/internal/runtime/ConsString;
0 1 1 index I
MethodParameters:
Name Flags
index final
public java.lang.CharSequence subSequence(int, int);
descriptor: (II)Ljava/lang/CharSequence;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
iconst_1
invokevirtual jdk.nashorn.internal.runtime.ConsString.flattened:(Z)Ljava/lang/CharSequence;
iload 1
iload 2
invokeinterface java.lang.CharSequence.subSequence:(II)Ljava/lang/CharSequence;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/nashorn/internal/runtime/ConsString;
0 1 1 start I
0 1 2 end I
MethodParameters:
Name Flags
start final
end final
public synchronized java.lang.CharSequence[] getComponents();
descriptor: ()[Ljava/lang/CharSequence;
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=4, locals=1, args_size=1
start local 0 0: iconst_2
anewarray java.lang.CharSequence
dup
iconst_0
aload 0
getfield jdk.nashorn.internal.runtime.ConsString.left:Ljava/lang/CharSequence;
aastore
dup
iconst_1
aload 0
getfield jdk.nashorn.internal.runtime.ConsString.right:Ljava/lang/CharSequence;
aastore
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/nashorn/internal/runtime/ConsString;
private java.lang.CharSequence flattened(boolean);
descriptor: (Z)Ljava/lang/CharSequence;
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.nashorn.internal.runtime.ConsString.state:I
iconst_m1
if_icmpeq 2
1: aload 0
iload 1
invokevirtual jdk.nashorn.internal.runtime.ConsString.flatten:(Z)V
2: StackMap locals:
StackMap stack:
aload 0
getfield jdk.nashorn.internal.runtime.ConsString.left:Ljava/lang/CharSequence;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/nashorn/internal/runtime/ConsString;
0 3 1 flattenNested Z
MethodParameters:
Name Flags
flattenNested final
private synchronized void flatten(boolean);
descriptor: (Z)V
flags: (0x0022) ACC_PRIVATE, ACC_SYNCHRONIZED
Code:
stack=5, locals=7, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.nashorn.internal.runtime.ConsString.length:I
newarray 5
astore 2
start local 2 1: aload 0
getfield jdk.nashorn.internal.runtime.ConsString.length:I
istore 3
start local 3 2: new java.util.ArrayDeque
dup
invokespecial java.util.ArrayDeque.<init>:()V
astore 4
start local 4 3: aload 4
aload 0
getfield jdk.nashorn.internal.runtime.ConsString.left:Ljava/lang/CharSequence;
invokeinterface java.util.Deque.addFirst:(Ljava/lang/Object;)V
4: aload 0
getfield jdk.nashorn.internal.runtime.ConsString.right:Ljava/lang/CharSequence;
astore 5
start local 5 5: StackMap locals: jdk.nashorn.internal.runtime.ConsString int char[] int java.util.Deque java.lang.CharSequence
StackMap stack:
aload 5
instanceof jdk.nashorn.internal.runtime.ConsString
ifeq 13
6: aload 5
checkcast jdk.nashorn.internal.runtime.ConsString
astore 6
start local 6 7: aload 6
getfield jdk.nashorn.internal.runtime.ConsString.state:I
iconst_m1
if_icmpeq 8
iload 1
ifeq 10
aload 6
dup
getfield jdk.nashorn.internal.runtime.ConsString.state:I
iconst_1
iadd
dup_x1
putfield jdk.nashorn.internal.runtime.ConsString.state:I
iconst_2
if_icmplt 10
8: StackMap locals: jdk.nashorn.internal.runtime.ConsString
StackMap stack:
aload 6
iconst_0
invokevirtual jdk.nashorn.internal.runtime.ConsString.flattened:(Z)Ljava/lang/CharSequence;
astore 5
9: goto 19
10: StackMap locals:
StackMap stack:
aload 4
aload 6
getfield jdk.nashorn.internal.runtime.ConsString.left:Ljava/lang/CharSequence;
invokeinterface java.util.Deque.addFirst:(Ljava/lang/Object;)V
11: aload 6
getfield jdk.nashorn.internal.runtime.ConsString.right:Ljava/lang/CharSequence;
astore 5
end local 6 12: goto 19
13: StackMap locals:
StackMap stack:
aload 5
checkcast java.lang.String
astore 6
start local 6 14: iload 3
aload 6
invokevirtual java.lang.String.length:()I
isub
istore 3
15: aload 6
iconst_0
aload 6
invokevirtual java.lang.String.length:()I
aload 2
iload 3
invokevirtual java.lang.String.getChars:(II[CI)V
16: aload 4
invokeinterface java.util.Deque.isEmpty:()Z
ifeq 17
aconst_null
goto 18
StackMap locals: java.lang.String
StackMap stack:
17: aload 4
invokeinterface java.util.Deque.pollFirst:()Ljava/lang/Object;
checkcast java.lang.CharSequence
StackMap locals:
StackMap stack: java.lang.CharSequence
18: astore 5
end local 6 19: StackMap locals:
StackMap stack:
aload 5
ifnonnull 5
20: aload 0
new java.lang.String
dup
aload 2
invokespecial java.lang.String.<init>:([C)V
putfield jdk.nashorn.internal.runtime.ConsString.left:Ljava/lang/CharSequence;
21: aload 0
ldc ""
putfield jdk.nashorn.internal.runtime.ConsString.right:Ljava/lang/CharSequence;
22: aload 0
iconst_m1
putfield jdk.nashorn.internal.runtime.ConsString.state:I
23: 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 24 0 this Ljdk/nashorn/internal/runtime/ConsString;
0 24 1 flattenNested Z
1 24 2 chars [C
2 24 3 pos I
3 24 4 stack Ljava/util/Deque<Ljava/lang/CharSequence;>;
5 24 5 cs Ljava/lang/CharSequence;
7 12 6 cons Ljdk/nashorn/internal/runtime/ConsString;
14 19 6 str Ljava/lang/String;
MethodParameters:
Name Flags
flattenNested final
}
SourceFile: "ConsString.java"