public final class com.oracle.truffle.regex.RegexProfile
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: com.oracle.truffle.regex.RegexProfile
super_class: java.lang.Object
{
private static final int EVALUATION_TRIP_POINT;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 800
private final com.oracle.truffle.regex.tregex.parser.Counter$ThreadSafeCounter calls;
descriptor: Lcom/oracle/truffle/regex/tregex/parser/Counter$ThreadSafeCounter;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final com.oracle.truffle.regex.tregex.parser.Counter$ThreadSafeCounter matches;
descriptor: Lcom/oracle/truffle/regex/tregex/parser/Counter$ThreadSafeCounter;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final com.oracle.truffle.regex.tregex.parser.Counter$ThreadSafeCounter captureGroupAccesses;
descriptor: Lcom/oracle/truffle/regex/tregex/parser/Counter$ThreadSafeCounter;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private double avgMatchLength;
descriptor: D
flags: (0x0002) ACC_PRIVATE
private double avgMatchedPortionOfSearchSpace;
descriptor: D
flags: (0x0002) ACC_PRIVATE
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/regex/RegexProfile;
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.regex.RegexProfile.$assertionsDisabled:Z
3: return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new com.oracle.truffle.regex.tregex.parser.Counter$ThreadSafeCounter
dup
invokespecial com.oracle.truffle.regex.tregex.parser.Counter$ThreadSafeCounter.<init>:()V
putfield com.oracle.truffle.regex.RegexProfile.calls:Lcom/oracle/truffle/regex/tregex/parser/Counter$ThreadSafeCounter;
2: aload 0
new com.oracle.truffle.regex.tregex.parser.Counter$ThreadSafeCounter
dup
invokespecial com.oracle.truffle.regex.tregex.parser.Counter$ThreadSafeCounter.<init>:()V
putfield com.oracle.truffle.regex.RegexProfile.matches:Lcom/oracle/truffle/regex/tregex/parser/Counter$ThreadSafeCounter;
3: aload 0
new com.oracle.truffle.regex.tregex.parser.Counter$ThreadSafeCounter
dup
invokespecial com.oracle.truffle.regex.tregex.parser.Counter$ThreadSafeCounter.<init>:()V
putfield com.oracle.truffle.regex.RegexProfile.captureGroupAccesses:Lcom/oracle/truffle/regex/tregex/parser/Counter$ThreadSafeCounter;
4: aload 0
dconst_0
putfield com.oracle.truffle.regex.RegexProfile.avgMatchLength:D
5: aload 0
dconst_0
putfield com.oracle.truffle.regex.RegexProfile.avgMatchedPortionOfSearchSpace:D
6: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lcom/oracle/truffle/regex/RegexProfile;
public void incCalls();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.oracle.truffle.regex.RegexProfile.calls:Lcom/oracle/truffle/regex/tregex/parser/Counter$ThreadSafeCounter;
invokevirtual com.oracle.truffle.regex.tregex.parser.Counter$ThreadSafeCounter.inc:()I
pop
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/oracle/truffle/regex/RegexProfile;
public void resetCalls();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.oracle.truffle.regex.RegexProfile.calls:Lcom/oracle/truffle/regex/tregex/parser/Counter$ThreadSafeCounter;
invokevirtual com.oracle.truffle.regex.tregex.parser.Counter$ThreadSafeCounter.reset:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/oracle/truffle/regex/RegexProfile;
public void incMatches();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.oracle.truffle.regex.RegexProfile.matches:Lcom/oracle/truffle/regex/tregex/parser/Counter$ThreadSafeCounter;
invokevirtual com.oracle.truffle.regex.tregex.parser.Counter$ThreadSafeCounter.inc:()I
pop
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/oracle/truffle/regex/RegexProfile;
public void profileCaptureGroupAccess(int, int);
descriptor: (II)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield com.oracle.truffle.regex.RegexProfile.captureGroupAccesses:Lcom/oracle/truffle/regex/tregex/parser/Counter$ThreadSafeCounter;
invokevirtual com.oracle.truffle.regex.tregex.parser.Counter$ThreadSafeCounter.inc:()I
pop
1: aload 0
dup
getfield com.oracle.truffle.regex.RegexProfile.avgMatchLength:D
iload 1
i2d
aload 0
getfield com.oracle.truffle.regex.RegexProfile.avgMatchLength:D
dsub
aload 0
getfield com.oracle.truffle.regex.RegexProfile.captureGroupAccesses:Lcom/oracle/truffle/regex/tregex/parser/Counter$ThreadSafeCounter;
invokevirtual com.oracle.truffle.regex.tregex.parser.Counter$ThreadSafeCounter.getCount:()I
i2d
ddiv
dadd
putfield com.oracle.truffle.regex.RegexProfile.avgMatchLength:D
2: iload 1
i2d
iload 2
i2d
ddiv
dstore 3
start local 3 3: aload 0
dup
getfield com.oracle.truffle.regex.RegexProfile.avgMatchedPortionOfSearchSpace:D
dload 3
aload 0
getfield com.oracle.truffle.regex.RegexProfile.avgMatchedPortionOfSearchSpace:D
dsub
aload 0
getfield com.oracle.truffle.regex.RegexProfile.captureGroupAccesses:Lcom/oracle/truffle/regex/tregex/parser/Counter$ThreadSafeCounter;
invokevirtual com.oracle.truffle.regex.tregex.parser.Counter$ThreadSafeCounter.getCount:()I
i2d
ddiv
dadd
putfield com.oracle.truffle.regex.RegexProfile.avgMatchedPortionOfSearchSpace:D
4: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/oracle/truffle/regex/RegexProfile;
0 5 1 matchLength I
0 5 2 numberOfCharsTraversed I
3 5 3 matchedPortion D
MethodParameters:
Name Flags
matchLength
numberOfCharsTraversed
public boolean atEvaluationTripPoint();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield com.oracle.truffle.regex.RegexProfile.calls:Lcom/oracle/truffle/regex/tregex/parser/Counter$ThreadSafeCounter;
invokevirtual com.oracle.truffle.regex.tregex.parser.Counter$ThreadSafeCounter.getCount:()I
ifle 1
aload 0
getfield com.oracle.truffle.regex.RegexProfile.calls:Lcom/oracle/truffle/regex/tregex/parser/Counter$ThreadSafeCounter;
invokevirtual com.oracle.truffle.regex.tregex.parser.Counter$ThreadSafeCounter.getCount:()I
sipush 800
irem
ifne 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 Lcom/oracle/truffle/regex/RegexProfile;
private double matchRatio();
descriptor: ()D
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=1, args_size=1
start local 0 0: getstatic com.oracle.truffle.regex.RegexProfile.$assertionsDisabled:Z
ifne 1
aload 0
getfield com.oracle.truffle.regex.RegexProfile.calls:Lcom/oracle/truffle/regex/tregex/parser/Counter$ThreadSafeCounter;
invokevirtual com.oracle.truffle.regex.tregex.parser.Counter$ThreadSafeCounter.getCount:()I
ifgt 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
aload 0
getfield com.oracle.truffle.regex.RegexProfile.matches:Lcom/oracle/truffle/regex/tregex/parser/Counter$ThreadSafeCounter;
invokevirtual com.oracle.truffle.regex.tregex.parser.Counter$ThreadSafeCounter.getCount:()I
i2d
aload 0
getfield com.oracle.truffle.regex.RegexProfile.calls:Lcom/oracle/truffle/regex/tregex/parser/Counter$ThreadSafeCounter;
invokevirtual com.oracle.truffle.regex.tregex.parser.Counter$ThreadSafeCounter.getCount:()I
i2d
ddiv
dreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/oracle/truffle/regex/RegexProfile;
private double cgAccessRatio();
descriptor: ()D
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=1, args_size=1
start local 0 0: getstatic com.oracle.truffle.regex.RegexProfile.$assertionsDisabled:Z
ifne 1
aload 0
getfield com.oracle.truffle.regex.RegexProfile.matches:Lcom/oracle/truffle/regex/tregex/parser/Counter$ThreadSafeCounter;
invokevirtual com.oracle.truffle.regex.tregex.parser.Counter$ThreadSafeCounter.getCount:()I
ifgt 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
aload 0
getfield com.oracle.truffle.regex.RegexProfile.captureGroupAccesses:Lcom/oracle/truffle/regex/tregex/parser/Counter$ThreadSafeCounter;
invokevirtual com.oracle.truffle.regex.tregex.parser.Counter$ThreadSafeCounter.getCount:()I
i2d
aload 0
getfield com.oracle.truffle.regex.RegexProfile.matches:Lcom/oracle/truffle/regex/tregex/parser/Counter$ThreadSafeCounter;
invokevirtual com.oracle.truffle.regex.tregex.parser.Counter$ThreadSafeCounter.getCount:()I
i2d
ddiv
dreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/oracle/truffle/regex/RegexProfile;
public boolean shouldGenerateDFA();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield com.oracle.truffle.regex.RegexProfile.calls:Lcom/oracle/truffle/regex/tregex/parser/Counter$ThreadSafeCounter;
invokevirtual com.oracle.truffle.regex.tregex.parser.Counter$ThreadSafeCounter.getCount:()I
bipush 100
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 Lcom/oracle/truffle/regex/RegexProfile;
public boolean shouldUseEagerMatching();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual com.oracle.truffle.regex.RegexProfile.matchRatio:()D
ldc 0.5
dcmpl
ifle 1
aload 0
invokevirtual com.oracle.truffle.regex.RegexProfile.cgAccessRatio:()D
ldc 0.5
dcmpl
ifle 1
aload 0
getfield com.oracle.truffle.regex.RegexProfile.avgMatchedPortionOfSearchSpace:D
ldc 0.4
dcmpl
ifle 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 Lcom/oracle/truffle/regex/RegexProfile;
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=8, locals=1, args_size=1
start local 0 0: ldc "calls: %d, matches: %d (%.2f%%), cg accesses: %d (%.2f%%), avg matched portion of search space: %.2f%%"
bipush 6
anewarray java.lang.Object
dup
iconst_0
1: aload 0
getfield com.oracle.truffle.regex.RegexProfile.calls:Lcom/oracle/truffle/regex/tregex/parser/Counter$ThreadSafeCounter;
invokevirtual com.oracle.truffle.regex.tregex.parser.Counter$ThreadSafeCounter.getCount:()I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_1
aload 0
getfield com.oracle.truffle.regex.RegexProfile.matches:Lcom/oracle/truffle/regex/tregex/parser/Counter$ThreadSafeCounter;
invokevirtual com.oracle.truffle.regex.tregex.parser.Counter$ThreadSafeCounter.getCount:()I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_2
aload 0
invokevirtual com.oracle.truffle.regex.RegexProfile.matchRatio:()D
ldc 100.0
dmul
invokestatic java.lang.Double.valueOf:(D)Ljava/lang/Double;
aastore
dup
iconst_3
aload 0
getfield com.oracle.truffle.regex.RegexProfile.captureGroupAccesses:Lcom/oracle/truffle/regex/tregex/parser/Counter$ThreadSafeCounter;
invokevirtual com.oracle.truffle.regex.tregex.parser.Counter$ThreadSafeCounter.getCount:()I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_4
aload 0
invokevirtual com.oracle.truffle.regex.RegexProfile.cgAccessRatio:()D
ldc 100.0
dmul
invokestatic java.lang.Double.valueOf:(D)Ljava/lang/Double;
aastore
dup
iconst_5
aload 0
getfield com.oracle.truffle.regex.RegexProfile.avgMatchedPortionOfSearchSpace:D
ldc 100.0
dmul
invokestatic java.lang.Double.valueOf:(D)Ljava/lang/Double;
aastore
2: invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/oracle/truffle/regex/RegexProfile;
RuntimeVisibleAnnotations:
com.oracle.truffle.api.CompilerDirectives$TruffleBoundary()
}
SourceFile: "RegexProfile.java"
NestMembers:
com.oracle.truffle.regex.RegexProfile$TracksRegexProfile
InnerClasses:
public abstract TruffleBoundary = com.oracle.truffle.api.CompilerDirectives$TruffleBoundary of com.oracle.truffle.api.CompilerDirectives
public abstract TracksRegexProfile = com.oracle.truffle.regex.RegexProfile$TracksRegexProfile of com.oracle.truffle.regex.RegexProfile
public ThreadSafeCounter = com.oracle.truffle.regex.tregex.parser.Counter$ThreadSafeCounter of com.oracle.truffle.regex.tregex.parser.Counter