Table of Contents

Class OrHandler

Namespace
Echo.Platforms.AsmResolver.Emulation.Dispatch.Arithmetic
Assembly
Echo.Platforms.AsmResolver.dll

Implements a CIL instruction handler for pr operations.

[DispatcherTableEntry(new CilCode[] { CilCode.Or })]
public class OrHandler : BinaryOperatorHandlerBase, ICilOpCodeHandler
Inheritance
OrHandler
Implements
Inherited Members

Methods

Evaluate(CilExecutionContext, CilInstruction, StackSlot, StackSlot)

Evaluates the binary operation on two arguments.

protected override CilDispatchResult Evaluate(CilExecutionContext context, CilInstruction instruction, StackSlot argument1, StackSlot argument2)

Parameters

context CilExecutionContext

The context to evaluate the instruction in.

instruction CilInstruction

The instruction to dispatch and evaluate.

argument1 StackSlot

The first argument that also receives the output.

argument2 StackSlot

The second argument.

Returns

CilDispatchResult

A value indicating whether the dispatch was successful or caused an error.

Force32BitResult(CilInstruction)

Gets a value indicating whether the instruction always pushes a 32-bit value.

protected override bool Force32BitResult(CilInstruction instruction)

Parameters

instruction CilInstruction

The instruction to classify.

Returns

bool

true if a 32-bit value is always pushed, false otherwise.

IsSignedOperation(CilInstruction)

Gets a value indicating whether the instruction is a signed operation or not.

protected override bool IsSignedOperation(CilInstruction instruction)

Parameters

instruction CilInstruction

The instruction to classify.

Returns

bool

true if signed, false otherwise.