MysoreScript
Public Attributes | List of all members
MysoreScript::Closure Struct Reference

The layout of all closures in MysoreScript. More...

#include <runtime.hh>

Collaboration diagram for MysoreScript::Closure:
Collaboration graph
[legend]

Public Attributes

Classisa
 Class pointer. More...
 
Obj parameters
 The number of parameters that this object has. More...
 
ClosureInvoke invoke
 The function that is used to invoke this closure. More...
 
AST::ClosureDeclAST
 The AST for this closure. More...
 
Obj boundVars [0]
 An array of bound variables in this closure. More...
 

Detailed Description

The layout of all closures in MysoreScript.

Definition at line 199 of file runtime.hh.

Member Data Documentation

§ AST

AST::ClosureDecl* MysoreScript::Closure::AST

The AST for this closure.

Used if it is being interpreted.

Definition at line 217 of file runtime.hh.

§ boundVars

Obj MysoreScript::Closure::boundVars[0]

An array of bound variables in this closure.

Definition at line 221 of file runtime.hh.

§ invoke

ClosureInvoke MysoreScript::Closure::invoke

The function that is used to invoke this closure.

This is either a compiled function or a trampoline calling back into the interpreter.

Definition at line 213 of file runtime.hh.

§ isa

Class* MysoreScript::Closure::isa

Class pointer.

Always set to &ClosureClass

Definition at line 204 of file runtime.hh.

§ parameters

Obj MysoreScript::Closure::parameters

The number of parameters that this object has.

Definition at line 208 of file runtime.hh.


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