diff options
author | Erik Verbruggen <erik.verbruggen@digia.com> | 2012-11-19 13:15:25 +0100 |
---|---|---|
committer | Lars Knoll <lars.knoll@digia.com> | 2012-11-19 14:02:58 +0100 |
commit | e1bbbb6cf9e6e4790eca41416c93cf271b0b7c02 (patch) | |
tree | 0e20c4f3a6be6c9a05aec270cdfee7dfb34376bb /qmljs_engine.cpp | |
parent | b072fd9317fa20d9206e9faaca7b0b45ae28a519 (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.cpp | 4 |
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] |