PmNativeFrame_s Struct Reference

#include <frame.h>

List of all members.

Public Attributes

PmObjDesc_t od
struct PmFrame_snf_back
pPmFunc_t nf_func
pPmObj_t nf_stack
uint8_t nf_active
uint8_t nf_numlocals
pPmObj_t nf_locals [NATIVE_MAX_NUM_LOCALS]


Detailed Description

Native Frame

A struct that holds the execution frame of a native function, including the args and single stack slot, and pointer to the code object.

This struct doesn't need an OD because it is only used statically in the globals struct. There's only one native frame, the global one. This happens because a native function is a leaf node in the call tree (a native func can't call python funcs).

Definition at line 145 of file frame.h.


Member Data Documentation

Boolean to indicate if the native frame is active

Definition at line 160 of file frame.h.

Ptr to previous frame obj

Definition at line 151 of file frame.h.

Ptr to fxn obj

Definition at line 154 of file frame.h.

pPmObj_t PmNativeFrame_s::nf_locals[NATIVE_MAX_NUM_LOCALS]

Local vars

Definition at line 166 of file frame.h.

Number of args passed to the native function

Definition at line 163 of file frame.h.

Single stack slot

Definition at line 157 of file frame.h.

Object descriptor

Definition at line 148 of file frame.h.


The documentation for this struct was generated from the following file:

Generated on Mon Oct 18 07:40:49 2010 for Python-on-a-chip by  doxygen 1.5.9