19 #ifndef GNASH_VM_CALL_STACK_H
20 #define GNASH_VM_CALL_STACK_H
59 _locals(other._locals),
61 _registers(other._registers)
66 _locals = other._locals;
68 _registers = other._registers;
88 if (i >= _registers.size())
return 0;
89 return &_registers[
i];
105 return !_registers.empty();
125 Registers _registers;
144 void setLocal(CallFrame&
c,
const ObjectURI&
name,
const as_value& val);
152 #endif // GNASH_VM_CALL_STACK_H
const as_value * getLocalRegister(size_t i) const
Get a specific register in this CallFrame.
Definition: CallStack.h:87
void setLocal(CallFrame &c, const ObjectURI &name, const as_value &val)
Set a local variable in this CallFrame.
Definition: CallStack.cpp:80
ActionScript value type.
Definition: as_value.h:95
A CallFrame is an element of a CallStack.
Definition: CallStack.h:43
as_object & locals()
Access the local variables for this function call.
Definition: CallStack.h:73
std::vector< as_value > Registers
Definition: CallStack.h:47
CallFrame & operator=(const CallFrame &other)
Assignment operator for containers.
Definition: CallStack.h:65
Anonymous namespace for callbacks, local functions, event handlers etc.
Definition: dbus_ext.cpp:40
Definition: GnashKey.h:149
CallFrame(UserFunction *func)
Construct a CallFrame for a specific UserFunction.
Definition: CallStack.cpp:30
The base class for all ActionScript objects.
Definition: as_object.h:161
Definition: GnashKey.h:161
std::ostream & operator<<(std::ostream &o, const URL &u)
Definition: URL.cpp:448
A UserFunction is a callable function defined in ActionScript.
Definition: UserFunction.h:37
void declareLocal(CallFrame &c, const ObjectURI &name)
Declare a local variable in this CallFrame.
Definition: CallStack.cpp:71
CallFrame(const CallFrame &other)
Copy constructor for containers.
Definition: CallStack.h:57
void setLocalRegister(size_t i, const as_value &val)
Set a specific register in this CallFrame.
Definition: CallStack.cpp:57
bool hasRegisters() const
Set the number of registers for this CallFrame.
Definition: CallStack.h:104
std::vector< CallFrame > CallStack
Definition: CallStack.h:146
Definition: GnashKey.h:155
friend std::ostream & operator<<(std::ostream &, const CallFrame &)
Definition: CallStack.cpp:96
std::string name
Definition: LocalConnection_as.cpp:151
void markReachableResources() const
Mark all reachable resources.
Definition: CallStack.cpp:44