aboutsummaryrefslogtreecommitdiffstats
path: root/qv4isel_p.h
diff options
context:
space:
mode:
authorErik Verbruggen <erik.verbruggen@digia.com>2012-11-19 13:15:25 +0100
committerLars Knoll <lars.knoll@digia.com>2012-11-19 14:02:58 +0100
commite1bbbb6cf9e6e4790eca41416c93cf271b0b7c02 (patch)
tree0e20c4f3a6be6c9a05aec270cdfee7dfb34376bb /qv4isel_p.h
parentb072fd9317fa20d9206e9faaca7b0b45ae28a519 (diff)
Fix isel for eval and a whole bunch of other warnings.
A factory is now passed along to do the codegen for eval(). Change-Id: If15b1f28c9c0a8f8b6d18b56d6e7bc5d942927e5 Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'qv4isel_p.h')
-rw-r--r--qv4isel_p.h64
1 files changed, 64 insertions, 0 deletions
diff --git a/qv4isel_p.h b/qv4isel_p.h
new file mode 100644
index 0000000000..effd44fcf3
--- /dev/null
+++ b/qv4isel_p.h
@@ -0,0 +1,64 @@
+/****************************************************************************
+**
+** Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies).
+** Contact: http://www.qt-project.org/legal
+**
+** This file is part of Qt Creator.
+**
+** Commercial License Usage
+** Licensees holding valid commercial Qt licenses may use this file in
+** accordance with the commercial license agreement provided with the
+** Software or, alternatively, in accordance with the terms contained in
+** a written agreement between you and Digia. For licensing terms and
+** conditions see http://qt.digia.com/licensing. For further information
+** use the contact form at http://qt.digia.com/contact-us.
+**
+** GNU Lesser General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU Lesser
+** General Public License version 2.1 as published by the Free Software
+** Foundation and appearing in the file LICENSE.LGPL included in the
+** packaging of this file. Please review the following information to
+** ensure the GNU Lesser General Public License version 2.1 requirements
+** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
+**
+** In addition, as a special exception, Digia gives you certain additional
+** rights. These rights are described in the Digia Qt LGPL Exception
+** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
+**
+****************************************************************************/
+
+#ifndef QV4ISEL_P_H
+#define QV4ISEL_P_H
+
+#include <qglobal.h>
+
+namespace QQmlJS {
+
+namespace IR {
+struct Function;
+struct Module;
+} // namespace IR;
+
+namespace VM {
+struct ExecutionEngine;
+} // namespace VM
+
+class EvalInstructionSelection
+{
+public:
+ virtual ~EvalInstructionSelection() = 0;
+
+ virtual void run(IR::Function *function) = 0;
+ virtual bool finishModule(size_t codeSize) = 0;
+};
+
+class EValISelFactory
+{
+public:
+ virtual ~EValISelFactory() = 0;
+ virtual EvalInstructionSelection *create(VM::ExecutionEngine *engine, IR::Module *module, uchar *code) = 0;
+};
+
+} // namespace QQmlJS
+
+#endif // QV4ISEL_P_H