Search Results for

    Show / Hide Table of Contents

    Class ObjectIntrinsics

    Supports creating, recognizing and parsing object-oriented intrinsics.

    Inheritance
    object
    ObjectIntrinsics
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Flame.Compiler.Instructions
    Assembly: Flame.Compiler.dll
    Syntax
    public static class ObjectIntrinsics

    Fields

    | Edit this page View Source

    Namespace

    The namespace for object-oriented intrinsics.

    Declaration
    public static readonly IntrinsicNamespace Namespace
    Field Value
    Type Description
    IntrinsicNamespace

    Methods

    | Edit this page View Source

    CreatePrototype(string, IType, IReadOnlyList<IType>)

    Creates an object-oriented intrinsic prototype.

    Declaration
    public static IntrinsicPrototype CreatePrototype(string operatorName, IType resultType, IReadOnlyList<IType> parameterTypes)
    Parameters
    Type Name Description
    string operatorName

    The name of the operator represented by the object-oriented intrinsic.

    IType resultType

    The type of value produced by the intrinsic to create.

    IReadOnlyList<IType> parameterTypes

    The types of the values the intrinsic takes as arguments.

    Returns
    Type Description
    IntrinsicPrototype

    An object-oriented intrinsic prototype.

    | Edit this page View Source

    CreateUnboxAnyPrototype(IType, IType)

    Creates an 'unbox_any' instruction prototype. Its return type can either be a value type or a reference type (aka box pointer). If its return type is set to a value type, 'unbox_any' unboxes its argument and loads it. If 'unbox_any's return value is set to a reference type, 'unbox_any' checks that its argument is a subtype of the return type.

    Declaration
    public static IntrinsicPrototype CreateUnboxAnyPrototype(IType resultType, IType argumentType)
    Parameters
    Type Name Description
    IType resultType

    The 'unbox_any' instruction prototype's result type.

    IType argumentType

    The 'unbox_any' instruction prototype's argument type.

    Returns
    Type Description
    IntrinsicPrototype

    An 'unbox_any' instruction prototype.

    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX