diff options
author | Erik Verbruggen <erik.verbruggen@qt.io> | 2017-11-14 10:45:06 +0100 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2017-11-17 11:53:42 +0000 |
commit | 3658f534cb1947663d29b9db00dcced462674aed (patch) | |
tree | a0c46c3c70c228426b4b774fb742b25a4854be9a /src/qml/jsruntime/qv4function_p.h | |
parent | 75584bde397b1a7e92281855ea04e743fae7c1c5 (diff) |
V4: Add a baseline JIT
This patch add a JIT back in for all platforms that supported JITting
before, with the exception of MIPS.
Change-Id: I51bc5ce3a2ac40e0510bd72a563af897c5b60343
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4function_p.h')
-rw-r--r-- | src/qml/jsruntime/qv4function_p.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/qml/jsruntime/qv4function_p.h b/src/qml/jsruntime/qv4function_p.h index 6c62881998..0e61be5115 100644 --- a/src/qml/jsruntime/qv4function_p.h +++ b/src/qml/jsruntime/qv4function_p.h @@ -56,6 +56,10 @@ #include <private/qv4context_p.h> #include <private/qv4vme_moth_p.h> +namespace JSC { +class MacroAssemblerCodeRef; +} + QT_BEGIN_NAMESPACE namespace QV4 { @@ -72,6 +76,10 @@ struct Q_QML_EXPORT Function { Code code; const uchar *codeData; + typedef ReturnedValue (*JittedCode)(CppStackFrame *, ExecutionEngine *); + JittedCode jittedCode; + JSC::MacroAssemblerCodeRef *codeRef; + // first nArguments names in internalClass are the actual arguments InternalClass *internalClass; uint nFormals; |