Gnash
0.8.11dev
|
#include "Machine.h"
#include "as_object.h"
#include "ClassHierarchy.h"
#include "namedStrings.h"
#include "AbcBlock.h"
#include "MultiName.h"
#include "fn_call.h"
#include "abc_function.h"
#include "VM.h"
#include "Globals.h"
#include "Global_as.h"
#include "Class.h"
#include "CodeStream.h"
#include "SWF.h"
Namespaces | |
gnash | |
Anonymous namespace for callbacks, local functions, event handlers etc. | |
gnash::abc | |
ABC-only resources for parsing and execution. | |
Macros | |
#define | ENSURE_NUMBER(vte) |
#define | ENSURE_OBJECT(vte) |
#define | ENSURE_STRING(vte) |
#define | ABSTRACT_COMPARE(store, rv1, rv2, truth_of_undefined) |
#define | ABSTRACT_TYPELATE(st, checkval, matchval) |
#define | JUMPIF(jtruth) |
Functions | |
bool | gnash::abc::abstractEquality (const as_value &a, const as_value &b, bool strictness_on) |
#define ABSTRACT_COMPARE | ( | store, | |
rv1, | |||
rv2, | |||
truth_of_undefined | |||
) |
ABSTRACT_COMPARE is the abstract comparison as described in the ECMA standard. The 'truth_of_undefined' is used to specify which value should be set for NaN values. It's a macro so that calls may be pushed in the ENSURE_STRING and ENSURE_NUMBER macros.
Referenced by gnash::abc::Machine::execute().
#define ABSTRACT_TYPELATE | ( | st, | |
checkval, | |||
matchval | |||
) |
NB: the stubbed but unimplemented as_value::conforms_to no longer exists, but the code is left here for later reference.
Referenced by gnash::abc::Machine::execute().
#define ENSURE_NUMBER | ( | vte | ) |
ENSURE_NUMBER makes sure that the given argument is a number, calling the valueOf method if necessary – it's a macro so that the valueOf method may be pushed if needed, and then whatever opcode asked for this will be re-entered.
Referenced by gnash::abc::Machine::execute().
#define ENSURE_OBJECT | ( | vte | ) |
ENSURE_OBJECT will throw an exception if the argument isn't an object. It's a macro to match with the other ENSURE_ macros.
Referenced by gnash::abc::Machine::execute().
#define ENSURE_STRING | ( | vte | ) |
ENSURE_STRING makes sure that the given argument is a string, calling the toString method if necessary – it's a macro so that the toString may be pushed if needed, and then whatever opcode asked for this will be re-entered.
Referenced by gnash::abc::Machine::execute().
#define JUMPIF | ( | jtruth | ) |
Referenced by gnash::abc::Machine::execute().