JaCIL Framework API

InstructionTranslatorFactory.CreateConstantArithmeticTranslator Method 

Returns a new constant load arithmetic instruction translator.

protected virtual IInstructionTranslator CreateConstantArithmeticTranslator(
   IInstructionContext context,
   int jvmInstructionBase,
   long constant
);

Parameters

context
The context of the translator
jvmInstructionBase
The base JVM opcode to use for the operation. Should be an I* instruction (IADD,IMUL,etc)
constant
The constant to load.

Return Value

The translator instance.

Remarks

A derived class would override this if a different translator instance is desired.

See Also

InstructionTranslatorFactory Class | JaCIL.Compiler.Standard.Translator Namespace