Gnash  0.8.11dev
Classes | Namespaces | Functions
VM.h File Reference
#include <map>
#include <memory>
#include <array>
#include <cstdint>
#include <boost/random/mersenne_twister.hpp>
#include <boost/noncopyable.hpp>
#include "string_table.h"
#include "SafeStack.h"
#include "CallStack.h"
#include "as_value.h"
#include "namedStrings.h"
#include "ObjectURI.h"
#include "ConstantPool.h"
#include "dsodefs.h"
#include "utility.h"

Go to the source code of this file.

Classes

class  gnash::VM
 The AVM1 virtual machine. More...
 
class  gnash::FrameGuard
 

Namespaces

 gnash
 Anonymous namespace for callbacks, local functions, event handlers etc.
 

Functions

ObjectURI gnash::getURI (const VM &vm, const std::string &str, bool lowerCaseHint=false)
 
ObjectURI gnash::getURI (const VM &, NSV::NamedStrings s)
 
const std::string & gnash::toString (VM &vm, const ObjectURI &uri)
 
void gnash::newAdd (as_value &op1, const as_value &op2, const VM &vm)
 Carry out ActionNewAdd. More...
 
void gnash::subtract (as_value &op1, const as_value &op2, const VM &vm)
 Carry out ActionSubtract. More...
 
as_value gnash::newLessThan (const as_value &op1, const as_value &op2, const VM &vm)
 Carry out ActionSubtract. More...
 
bool gnash::equals (const as_value &a, const as_value &b, const VM &vm)
 Check if two values are equal. More...
 
bool gnash::toBool (const as_value &v, const VM &vm)
 Convert an as_value to boolean type. More...
 
double gnash::toNumber (const as_value &v, const VM &vm)
 Convert an as_value to a double. More...
 
as_object * gnash::toObject (const as_value &v, VM &vm)
 Convert an as_value to an object. More...
 
std::int32_t gnash::toInt (const as_value &val, const VM &vm)
 AS2-compatible conversion to 32bit integer. More...
 
as_value & gnash::convertToNumber (as_value &v, const VM &vm)
 Force type to number. More...
 
as_value & gnash::convertToString (as_value &v, const VM &vm)
 Force type to string. More...
 
as_value & gnash::convertToBoolean (as_value &v, const VM &vm)
 Force type to bool. More...
 
as_value & gnash::convertToPrimitive (as_value &v, const VM &vm)
 Convert to the appropriate primitive type. More...