aboutsummaryrefslogtreecommitdiffstats
path: root/qmljs_engine.cpp
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 /qmljs_engine.cpp
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 'qmljs_engine.cpp')
-rw-r--r--qmljs_engine.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/qmljs_engine.cpp b/qmljs_engine.cpp
index 4415231934..40cf7f3294 100644
--- a/qmljs_engine.cpp
+++ b/qmljs_engine.cpp
@@ -45,7 +45,7 @@
namespace QQmlJS {
namespace VM {
-ExecutionEngine::ExecutionEngine()
+ExecutionEngine::ExecutionEngine(EValISelFactory *factory)
{
rootContext = newContext();
rootContext->init(this);
@@ -160,7 +160,7 @@ ExecutionEngine::ExecutionEngine()
glo->__put__(rootContext, identifier(QStringLiteral("undefined")), Value::undefinedValue());
glo->__put__(rootContext, identifier(QStringLiteral("NaN")), Value::fromDouble(nan("")));
glo->__put__(rootContext, identifier(QStringLiteral("Infinity")), Value::fromDouble(INFINITY));
- glo->__put__(rootContext, identifier(QStringLiteral("eval")), Value::fromObject(new EvalFunction(rootContext)));
+ glo->__put__(rootContext, identifier(QStringLiteral("eval")), Value::fromObject(new EvalFunction(rootContext, factory)));
// TODO: parseInt [15.1.2.2]
// TODO: parseFloat [15.1.2.3]