Go to the documentation of this file.
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 nullptr;
89 return &_registers[
i];
105 return !_registers.empty();
144 void setLocal(CallFrame&
c,
const ObjectURI&
name,
const as_value& val);
152 #endif // GNASH_VM_CALL_STACK_H
CallFrame(const CallFrame &other)
Copy constructor for containers.
Definition: CallStack.h:57
std::string name
Definition: LocalConnection_as.cpp:149
std::vector< CallFrame > CallStack
Definition: CallStack.h:146
The base class for all ActionScript objects.
Definition: as_object.h:162
friend std::ostream & operator<<(std::ostream &, const CallFrame &)
Definition: CallStack.cpp:96
void log_action(StringType msg, Args... args)
Definition: log.h:307
@ i
Definition: GnashKey.h:155
void setLocal(CallFrame &c, const ObjectURI &name, const as_value &val)
Set a local variable in this CallFrame.
Definition: CallStack.cpp:80
#define _(String)
Definition: log.h:44
Anonymous namespace for callbacks, local functions, event handlers etc.
Definition: dbus_ext.cpp:41
Global_as & getGlobal(const as_environment &env)
Definition: as_environment.cpp:651
void setLocalRegister(size_t i, const as_value &val)
Set a specific register in this CallFrame.
Definition: CallStack.cpp:57
@ r
Definition: GnashKey.h:164
void for_each(C &container, R(T::*pmf)(const A &), const A &arg)
Definition: Renderer_ogl.cpp:690
CallFrame(UserFunction *func)
Construct a CallFrame for a specific UserFunction.
Definition: CallStack.cpp:30
A UserFunction is a callable function defined in ActionScript.
Definition: UserFunction.h:38
An abstract property.
Definition: Property.h:277
ActionScript value type.
Definition: as_value.h:95
CallFrame & operator=(const CallFrame &other)
Assignment operator for containers.
Definition: CallStack.h:65
bool hasRegisters() const
Set the number of registers for this CallFrame.
Definition: CallStack.h:104
void setReachable() const
Set any object value as reachable (for the GC)
Definition: as_value.cpp:691
#define IF_VERBOSE_ACTION(x)
Definition: log.h:384
void markReachableResources() const
Mark all reachable resources.
Definition: CallStack.cpp:44
@ f
Definition: GnashKey.h:152
virtual bool set_member(const ObjectURI &uri, const as_value &val, bool ifFound=false)
Set a member value.
Definition: as_object.cpp:583
@ c
Definition: GnashKey.h:149
bool hasOwnProperty(as_object &o, const ObjectURI &uri)
Return true if this object has the named property.
Definition: as_object.h:854
void declareLocal(CallFrame &c, const ObjectURI &name)
Declare a local variable in this CallFrame.
Definition: CallStack.cpp:71
A CallFrame is an element of a CallStack.
Definition: CallStack.h:44
@ o
Definition: GnashKey.h:161
std::vector< as_value > Registers
Definition: CallStack.h:47
A URI for describing as_objects.
Definition: ObjectURI.h:45
const as_value * getLocalRegister(size_t i) const
Get a specific register in this CallFrame.
Definition: CallStack.h:87
as_object & locals()
Access the local variables for this function call.
Definition: CallStack.h:73
bool setValue(as_object &this_ptr, const as_value &value) const
Set value of this property.
Definition: Property.cpp:133
std::ostream & operator<<(std::ostream &o, const URL &u)
Definition: URL.cpp:447
void setReachable() const
Mark this resource as being reachable.
Definition: GC.h:92
Property * getOwnProperty(const ObjectURI &uri)
Get this object's own named property, if existing.
Definition: as_object.cpp:926