diff options
author | Simon Hausmann <simon.hausmann@digia.com> | 2013-04-15 11:34:00 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@digia.com> | 2013-04-15 12:47:53 +0200 |
commit | 2cd8a90bd4d171ed2404822b6046455a94d4b6ed (patch) | |
tree | ed8eda56d54cb13d777be1cfa294c85ddd76e583 /src/qml/qml/v4vm/qv4unwindhelper.h | |
parent | 5bf33901429e64ab91f30037e25ec04aab4b4c11 (diff) | |
parent | bec019b5fe35e1701c944eb340df458d5e3d1cdb (diff) |
Merge branch 'master' of ssh://codereview.qt-project.org:29418/playground/v4vm into v4
This is the initial merge of the v4vm JS engine, designed specifically for QML.
The engine is tested on Linux and Mac OS X, works on x86, x86-64 and ARM.
Change-Id: I826b72cfa3d3575007b70d78604080582db568db
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'src/qml/qml/v4vm/qv4unwindhelper.h')
-rw-r--r-- | src/qml/qml/v4vm/qv4unwindhelper.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/qml/qml/v4vm/qv4unwindhelper.h b/src/qml/qml/v4vm/qv4unwindhelper.h new file mode 100644 index 0000000000..9f6462d644 --- /dev/null +++ b/src/qml/qml/v4vm/qv4unwindhelper.h @@ -0,0 +1,27 @@ +#ifndef QV4UNWINDHELPER_H +#define QV4UNWINDHELPER_H + +#include <QtCore/QVector> + +namespace QQmlJS { +namespace VM { + +struct Function; + +class UnwindHelper +{ +public: + static void registerFunction(Function *function); + static void registerFunctions(QVector<Function *> functions); + static void deregisterFunction(Function *function); + static void deregisterFunctions(QVector<Function *> functions); +#ifdef Q_PROCESSOR_ARM + static int unwindInfoSize(); + static void writeARMUnwindInfo(void *codeAddr, int codeSize); +#endif +}; + +} // VM namespace +} // QQmlJS namespace + +#endif // QV4UNWINDHELPER_H |