JaCIL Framework API

IInstructionAnalyzer.GenerateInstructionStream Method 

Creates an properly linked IInstructionStream that refers to the first instruction in the method definition and has the its stack state properly analyzed.

IInstructionStream GenerateInstructionStream(
   IMethodContext methodContext,
   ILocalVariableTable locals
);

Parameters

methodContext
The method context to generate the stream from.
locals
The local variable mappings

Return Value

The instruction stream of the first instruction.

Remarks

A proper implementation should generate the profile standard IInstructionContext objects for each instruction in the stream using the InstructionContextFactory property.

Exceptions

Exception Type Condition
StackStateException Thrown if there is a problem with stack analysis.

See Also

IInstructionAnalyzer Interface | JaCIL.Compiler.Context Namespace