Carbon


ProcInfo Field Offset And Width Constants

Header: MixedMode.h

enum {
    kCallingConventionWidth = 4,
    kCallingConventionPhase = 0,
    kCallingConventionMask = 15,
    kResultSizeWidth = 2,
    kResultSizePhase = 4,
    kResultSizeMask = 48,
    kStackParameterWidth = 2,
    kStackParameterPhase = 6,
    kStackParameterMask = -64,
    kRegisterResultLocationWidth = 5,
    kRegisterResultLocationPhase = 6,
    kRegisterParameterWidth = 5,
    kRegisterParameterPhase = 11,
    kRegisterParameterMask = 2147481600,
    kRegisterParameterSizePhase = 0,
    kRegisterParameterSizeWidth = 2,
    kRegisterParameterWhichPhase = 2,
    kRegisterParameterWhichWidth = 3,
    kDispatchedSelectorSizeWidth = 2,
    kDispatchedSelectorSizePhase = 6,
    kDispatchedParameterPhase = 8,
    kSpecialCaseSelectorWidth = 6,
    kSpecialCaseSelectorPhase = 4,
    kSpecialCaseSelectorMask = 1008
};

Constant descriptions

kCallingConventionWidth

The number of bits in the procedure information that encode the calling convention information.

kCallingConventionPhase

The offset from the least significant bit in the procedure information to the calling convention information.

kCallingConventionMask
kResultSizeWidth

The number of bits in the procedure information that encode the function result size information.

kResultSizePhase

The offset from the least significant bit in the procedure information to the function result size information.

kResultSizeMask

A mask for the bits in the procedure information that encode the function result size information.

kStackParameterWidth

The number of bits in the procedure information that encode the size of a stack-based parameter.

kStackParameterPhase

The offset from the least significant bit in the procedure information to the stack parameter information.

kStackParameterMask
kRegisterResultLocationWidth

The number of bits in the procedure information that encode which register the result will be stored in.

kRegisterResultLocationPhase

The offset from the least significant bit in the procedure information to the result register information.

kRegisterParameterWidth

The number of bits in the procedure information that encode the information about a register-based parameter.

kRegisterParameterPhase

The offset from the least significant bit in the procedure information to the register parameter information.

kRegisterParameterMask
kRegisterParameterSizePhase

The offset from the beginning of a register parameter information field to the encoded size of the parameter.

kRegisterParameterSizeWidth
kRegisterParameterWhichPhase

The offset from the beginning of a register parameter information field to the encoded register.

kRegisterParameterWhichWidth
kDispatchedSelectorSizeWidth

The number of bits in the procedure information that encode the size of a routine-dispatching selector.

kDispatchedSelectorSizePhase

The offset from the least significant bit in the procedure information to the selector size information of a routine that is dispatched though a selector.

kDispatchedParameterPhase

The offset from the least significant bit in the procedure information to the parameter information of a routine that is dispatched though a selector.

kSpecialCaseSelectorWidth
kSpecialCaseSelectorPhase
kSpecialCaseSelectorMask

The offsets to fields and the widths of the fields within a value of type ProcInfoType are defined by constants.


© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)