aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/compiler/qv4compileddata_p.h
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@digia.com>2013-08-15 09:41:09 +0200
committerSimon Hausmann <simon.hausmann@digia.com>2013-08-15 10:37:29 +0200
commit2aee966baa76f55d9061ed22af7bb0abe4f3541e (patch)
tree25e65e3e9575a3b8fcbb497cfffaf4cce28880ae /src/qml/compiler/qv4compileddata_p.h
parent3ccd69b53688d6855d0136873876ed315d99b571 (diff)
Initialize formals and locals from the compiled function data instead of in the isel
Change-Id: I9db976df310a5986ceca66d21efeeae536dbede4 Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'src/qml/compiler/qv4compileddata_p.h')
-rw-r--r--src/qml/compiler/qv4compileddata_p.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/qml/compiler/qv4compileddata_p.h b/src/qml/compiler/qv4compileddata_p.h
index d02946efc9..c70fa6986f 100644
--- a/src/qml/compiler/qv4compileddata_p.h
+++ b/src/qml/compiler/qv4compileddata_p.h
@@ -124,6 +124,9 @@ struct Function
// quint32 offsetForInnerFunctions[nInnerFunctions]
// Function[nInnerFunctions]
+ const quint32 *formalsTable() const { return reinterpret_cast<const quint32 *>(reinterpret_cast<const char *>(this) + formalsOffset); }
+ const quint32 *localsTable() const { return reinterpret_cast<const quint32 *>(reinterpret_cast<const char *>(this) + localsOffset); }
+
static int calculateSize(int nFormals, int nLocals, int nInnerfunctions) {
return (sizeof(Function) + (nFormals + nLocals + nInnerfunctions) * sizeof(quint32) + 7) & ~0x7;
}