final class com.oracle.truffle.llvm.parser.text.LLInstructionMapper
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: com.oracle.truffle.llvm.parser.text.LLInstructionMapper
super_class: java.lang.Object
{
void <init>();
descriptor: ()V
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/truffle/llvm/parser/text/LLInstructionMapper;
private static void fillInNames(com.oracle.truffle.llvm.parser.model.functions.FunctionDefinition);
descriptor: (Lcom/oracle/truffle/llvm/parser/model/functions/FunctionDefinition;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=8, args_size=1
start local 0 0: iconst_0
istore 1
start local 1 1: aload 0
invokevirtual com.oracle.truffle.llvm.parser.model.functions.FunctionDefinition.getParameters:()Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 3
goto 5
StackMap locals: com.oracle.truffle.llvm.parser.model.functions.FunctionDefinition int top java.util.Iterator
StackMap stack:
2: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast com.oracle.truffle.llvm.parser.model.functions.FunctionParameter
astore 2
start local 2 3: ldc "<anon>"
aload 2
invokevirtual com.oracle.truffle.llvm.parser.model.functions.FunctionParameter.getName:()Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 5
4: aload 2
iload 1
iinc 1 1
invokestatic java.lang.String.valueOf:(I)Ljava/lang/String;
invokevirtual com.oracle.truffle.llvm.parser.model.functions.FunctionParameter.setName:(Ljava/lang/String;)V
end local 2 5: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
6: aload 0
invokevirtual com.oracle.truffle.llvm.parser.model.functions.FunctionDefinition.getBlocks:()Ljava/util/List;
invokeinterface java.util.List.stream:()Ljava/util/stream/Stream;
invokedynamic apply()Ljava/util/function/Function;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)Ljava/lang/Object;
com/oracle/truffle/llvm/parser/model/blocks/InstructionBlock.getName()Ljava/lang/String; (5)
(Lcom/oracle/truffle/llvm/parser/model/blocks/InstructionBlock;)Ljava/lang/String;
invokeinterface java.util.stream.Stream.map:(Ljava/util/function/Function;)Ljava/util/stream/Stream;
invokedynamic test()Ljava/util/function/Predicate;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)Z
com/oracle/truffle/llvm/parser/text/LLInstructionMapper.lambda$1(Ljava/lang/String;)Z (6)
(Ljava/lang/String;)Z
invokeinterface java.util.stream.Stream.filter:(Ljava/util/function/Predicate;)Ljava/util/stream/Stream;
invokestatic java.util.stream.Collectors.toSet:()Ljava/util/stream/Collector;
invokeinterface java.util.stream.Stream.collect:(Ljava/util/stream/Collector;)Ljava/lang/Object;
checkcast java.util.Set
astore 2
start local 2 7: aload 0
invokevirtual com.oracle.truffle.llvm.parser.model.functions.FunctionDefinition.getBlocks:()Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 4
goto 21
StackMap locals: com.oracle.truffle.llvm.parser.model.functions.FunctionDefinition int java.util.Set top java.util.Iterator
StackMap stack:
8: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast com.oracle.truffle.llvm.parser.model.blocks.InstructionBlock
astore 3
start local 3 9: aload 3
invokevirtual com.oracle.truffle.llvm.parser.model.blocks.InstructionBlock.getName:()Ljava/lang/String;
invokestatic com.oracle.truffle.llvm.runtime.types.symbols.LLVMIdentifier.isUnknown:(Ljava/lang/Object;)Z
ifeq 12
10: StackMap locals: com.oracle.truffle.llvm.parser.model.functions.FunctionDefinition int java.util.Set com.oracle.truffle.llvm.parser.model.blocks.InstructionBlock java.util.Iterator
StackMap stack:
aload 3
iload 1
iinc 1 1
invokestatic com.oracle.truffle.llvm.runtime.types.symbols.LLVMIdentifier.toImplicitBlockName:(I)Ljava/lang/String;
invokevirtual com.oracle.truffle.llvm.parser.model.blocks.InstructionBlock.setName:(Ljava/lang/String;)V
11: aload 2
aload 3
invokevirtual com.oracle.truffle.llvm.parser.model.blocks.InstructionBlock.getName:()Ljava/lang/String;
invokeinterface java.util.Set.contains:(Ljava/lang/Object;)Z
ifne 10
12: StackMap locals:
StackMap stack:
iconst_0
istore 5
start local 5 13: goto 20
14: StackMap locals: int
StackMap stack:
aload 3
iload 5
invokevirtual com.oracle.truffle.llvm.parser.model.blocks.InstructionBlock.getInstruction:(I)Lcom/oracle/truffle/llvm/parser/model/symbols/instructions/Instruction;
astore 6
start local 6 15: aload 6
instanceof com.oracle.truffle.llvm.parser.model.symbols.instructions.ValueInstruction
ifeq 19
16: aload 6
checkcast com.oracle.truffle.llvm.parser.model.symbols.instructions.ValueInstruction
astore 7
start local 7 17: aload 7
invokevirtual com.oracle.truffle.llvm.parser.model.symbols.instructions.ValueInstruction.getName:()Ljava/lang/String;
invokestatic com.oracle.truffle.llvm.runtime.types.symbols.LLVMIdentifier.isUnknown:(Ljava/lang/Object;)Z
ifeq 19
18: aload 7
iload 1
iinc 1 1
invokestatic java.lang.String.valueOf:(I)Ljava/lang/String;
invokevirtual com.oracle.truffle.llvm.parser.model.symbols.instructions.ValueInstruction.setName:(Ljava/lang/String;)V
end local 7 end local 6 19: StackMap locals:
StackMap stack:
iinc 5 1
StackMap locals:
StackMap stack:
20: iload 5
aload 3
invokevirtual com.oracle.truffle.llvm.parser.model.blocks.InstructionBlock.getInstructionCount:()I
if_icmplt 14
end local 5 end local 3 21: StackMap locals: com.oracle.truffle.llvm.parser.model.functions.FunctionDefinition int java.util.Set top java.util.Iterator
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 8
22: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 23 0 function Lcom/oracle/truffle/llvm/parser/model/functions/FunctionDefinition;
1 23 1 symbolIndex I
3 5 2 parameter Lcom/oracle/truffle/llvm/parser/model/functions/FunctionParameter;
7 23 2 explicitBlockNames Ljava/util/Set<Ljava/lang/String;>;
9 21 3 block Lcom/oracle/truffle/llvm/parser/model/blocks/InstructionBlock;
13 21 5 i I
15 19 6 instruction Lcom/oracle/truffle/llvm/parser/model/symbols/instructions/Instruction;
17 19 7 value Lcom/oracle/truffle/llvm/parser/model/symbols/instructions/ValueInstruction;
MethodParameters:
Name Flags
function
static void setSourceLocations(com.oracle.truffle.llvm.parser.text.LLSourceMap, com.oracle.truffle.llvm.parser.model.functions.FunctionDefinition, com.oracle.truffle.llvm.parser.LLVMParserRuntime, com.oracle.truffle.llvm.runtime.LLVMContext);
descriptor: (Lcom/oracle/truffle/llvm/parser/text/LLSourceMap;Lcom/oracle/truffle/llvm/parser/model/functions/FunctionDefinition;Lcom/oracle/truffle/llvm/parser/LLVMParserRuntime;Lcom/oracle/truffle/llvm/runtime/LLVMContext;)V
flags: (0x0008) ACC_STATIC
Code:
stack=6, locals=7, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
invokevirtual com.oracle.truffle.llvm.parser.model.functions.FunctionDefinition.getName:()Ljava/lang/String;
invokevirtual com.oracle.truffle.llvm.parser.text.LLSourceMap.getFunction:(Ljava/lang/String;)Lcom/oracle/truffle/llvm/parser/text/LLSourceMap$Function;
astore 4
start local 4 1: aload 4
ifnonnull 6
2: aload 3
invokevirtual com.oracle.truffle.llvm.runtime.LLVMContext.llDebugVerboseStream:()Lcom/oracle/truffle/llvm/runtime/options/TargetStream;
astore 5
start local 5 3: aload 5
ifnull 5
4: aload 5
new java.lang.StringBuilder
dup
ldc "Cannot find .ll source for function "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual com.oracle.truffle.llvm.parser.model.functions.FunctionDefinition.getName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual com.oracle.truffle.llvm.runtime.options.TargetStream.println:(Ljava/lang/String;)V
5: StackMap locals: com.oracle.truffle.llvm.parser.text.LLSourceMap$Function com.oracle.truffle.llvm.runtime.options.TargetStream
StackMap stack:
return
end local 5 6: StackMap locals:
StackMap stack:
aload 4
aload 0
aload 2
invokevirtual com.oracle.truffle.llvm.parser.text.LLSourceMap$Function.toSourceLocation:(Lcom/oracle/truffle/llvm/parser/text/LLSourceMap;Lcom/oracle/truffle/llvm/parser/LLVMParserRuntime;)Lcom/oracle/truffle/llvm/runtime/debug/scope/LLVMSourceLocation;
astore 5
start local 5 7: aload 1
invokevirtual com.oracle.truffle.llvm.parser.model.functions.FunctionDefinition.getSourceFunction:()Lcom/oracle/truffle/llvm/parser/metadata/debuginfo/SourceFunction;
astore 6
start local 6 8: new com.oracle.truffle.llvm.parser.metadata.debuginfo.SourceFunction
dup
aload 5
aload 6
invokevirtual com.oracle.truffle.llvm.parser.metadata.debuginfo.SourceFunction.getSourceType:()Lcom/oracle/truffle/llvm/runtime/debug/type/LLVMSourceFunctionType;
invokespecial com.oracle.truffle.llvm.parser.metadata.debuginfo.SourceFunction.<init>:(Lcom/oracle/truffle/llvm/runtime/debug/scope/LLVMSourceLocation;Lcom/oracle/truffle/llvm/runtime/debug/type/LLVMSourceFunctionType;)V
astore 6
9: aload 1
aload 6
invokevirtual com.oracle.truffle.llvm.parser.model.functions.FunctionDefinition.setSourceFunction:(Lcom/oracle/truffle/llvm/parser/metadata/debuginfo/SourceFunction;)V
10: aload 1
invokestatic com.oracle.truffle.llvm.parser.text.LLInstructionMapper.fillInNames:(Lcom/oracle/truffle/llvm/parser/model/functions/FunctionDefinition;)V
11: aload 1
new com.oracle.truffle.llvm.parser.text.LLInstructionMapper$Mapper
dup
aload 0
invokevirtual com.oracle.truffle.llvm.parser.text.LLSourceMap.getLLSource:()Lcom/oracle/truffle/api/source/Source;
aload 5
aload 4
invokevirtual com.oracle.truffle.llvm.parser.text.LLSourceMap$Function.getInstructionList:()Ljava/util/ArrayDeque;
invokespecial com.oracle.truffle.llvm.parser.text.LLInstructionMapper$Mapper.<init>:(Lcom/oracle/truffle/api/source/Source;Lcom/oracle/truffle/llvm/runtime/debug/scope/LLVMSourceLocation;Ljava/util/ArrayDeque;)V
invokevirtual com.oracle.truffle.llvm.parser.model.functions.FunctionDefinition.accept:(Lcom/oracle/truffle/llvm/parser/model/visitors/FunctionVisitor;)V
12: aload 0
aload 4
invokevirtual com.oracle.truffle.llvm.parser.text.LLSourceMap.clearFunction:(Lcom/oracle/truffle/llvm/parser/text/LLSourceMap$Function;)V
13: return
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 14 0 sourceMap Lcom/oracle/truffle/llvm/parser/text/LLSourceMap;
0 14 1 functionDefinition Lcom/oracle/truffle/llvm/parser/model/functions/FunctionDefinition;
0 14 2 runtime Lcom/oracle/truffle/llvm/parser/LLVMParserRuntime;
0 14 3 context Lcom/oracle/truffle/llvm/runtime/LLVMContext;
1 14 4 function Lcom/oracle/truffle/llvm/parser/text/LLSourceMap$Function;
3 6 5 stream Lcom/oracle/truffle/llvm/runtime/options/TargetStream;
7 14 5 location Lcom/oracle/truffle/llvm/runtime/debug/scope/LLVMSourceLocation;
8 14 6 sourceFunction Lcom/oracle/truffle/llvm/parser/metadata/debuginfo/SourceFunction;
MethodParameters:
Name Flags
sourceMap
functionDefinition
runtime
context
private static boolean lambda$1(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokestatic com.oracle.truffle.llvm.runtime.types.symbols.LLVMIdentifier.isUnknown:(Ljava/lang/Object;)Z
ifeq 1
iconst_0
goto 2
StackMap locals:
StackMap stack:
1: iconst_1
StackMap locals:
StackMap stack: int
2: ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 blockName Ljava/lang/String;
}
SourceFile: "LLInstructionMapper.java"
NestMembers:
com.oracle.truffle.llvm.parser.text.LLInstructionMapper$Mapper
InnerClasses:
private final Mapper = com.oracle.truffle.llvm.parser.text.LLInstructionMapper$Mapper of com.oracle.truffle.llvm.parser.text.LLInstructionMapper
final Function = com.oracle.truffle.llvm.parser.text.LLSourceMap$Function of com.oracle.truffle.llvm.parser.text.LLSourceMap
final Instruction = com.oracle.truffle.llvm.parser.text.LLSourceMap$Instruction of com.oracle.truffle.llvm.parser.text.LLSourceMap
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles