diff options
author | Erik Verbruggen <erik.verbruggen@digia.com> | 2012-11-20 13:24:24 +0100 |
---|---|---|
committer | Lars Knoll <lars.knoll@digia.com> | 2012-11-20 13:31:05 +0100 |
commit | 1dab0e59049dbe2b9dee048c32a8f38f557dc29d (patch) | |
tree | 515de8ecdc3a912c30fafa0ece39d2b670ff0281 /qmljs_engine.cpp | |
parent | 06454ec1e949fe6aec961d74677be1262d88c482 (diff) |
Use an isel factory instead of MASM in FunctionCTor.
Change-Id: I070f056411f16d837ff5eac191fac11cd0bd3c47
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'qmljs_engine.cpp')
-rw-r--r-- | qmljs_engine.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/qmljs_engine.cpp b/qmljs_engine.cpp index 31ed260bee..6bb89378ff 100644 --- a/qmljs_engine.cpp +++ b/qmljs_engine.cpp @@ -92,7 +92,7 @@ ExecutionEngine::ExecutionEngine(EValISelFactory *factory) numberCtor = Value::fromObject(new NumberCtor(rootContext)); booleanCtor = Value::fromObject(new BooleanCtor(rootContext)); arrayCtor = Value::fromObject(new ArrayCtor(rootContext)); - functionCtor = Value::fromObject(new FunctionCtor(rootContext)); + functionCtor = Value::fromObject(new FunctionCtor(rootContext, factory)); dateCtor = Value::fromObject(new DateCtor(rootContext)); regExpCtor = Value::fromObject(new RegExpCtor(rootContext)); errorCtor = Value::fromObject(new ErrorCtor(rootContext)); @@ -258,11 +258,6 @@ Object *ExecutionEngine::newFunctionObject(ExecutionContext *ctx) return object; } -FunctionObject *ExecutionEngine::newFunctionCtor(ExecutionContext *ctx) -{ - return new FunctionCtor(ctx); -} - Object *ExecutionEngine::newArrayObject() { ArrayObject *object = new ArrayObject(); |