aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/v4/qv4unwindhelper_p.h
blob: 0c2061309f2de7a24c0e10eb1abe2f9cf7b5d4d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#ifndef QV4UNWINDHELPER_H
#define QV4UNWINDHELPER_H

#include <QtCore/QVector>

namespace QV4 {

struct Function;
struct ExecutionContext;

class UnwindHelper
{
public:
    static void prepareForUnwind(ExecutionContext *ctx);
    static void registerFunction(Function *function);
    static void registerFunctions(const QVector<Function *> &functions);
    static void deregisterFunction(Function *function);
    static void deregisterFunctions(const QVector<Function *> &functions);
#ifdef Q_PROCESSOR_ARM
    static int unwindInfoSize();
    static void writeARMUnwindInfo(void *codeAddr, int codeSize);
#endif
};

}

#endif // QV4UNWINDHELPER_H