diff options
author | Lars Knoll <[email protected]> | 2014-03-26 08:53:59 +0100 |
---|---|---|
committer | The Qt Project <[email protected]> | 2014-03-27 20:39:59 +0100 |
commit | c0fe2ec596410a664990df9023bf21b393d119c7 (patch) | |
tree | 0d09ccab659d6b48b98ef53e4af199159e8e2d14 /src/qml/jsruntime/qv4functionobject.cpp | |
parent | cd1d5313ba5b122ad0117ac47958aa4779d91464 (diff) |
Optimize construct calls
Optimize construction of the internalClass for the object
being constructed.
Change-Id: Id5fc02c291664ec01c3595ae0acbb6895cc5b147
Reviewed-by: Simon Hausmann <[email protected]>
Diffstat (limited to 'src/qml/jsruntime/qv4functionobject.cpp')
-rw-r--r-- | src/qml/jsruntime/qv4functionobject.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/jsruntime/qv4functionobject.cpp b/src/qml/jsruntime/qv4functionobject.cpp index 6bd56d8fb2..e048bf1646 100644 --- a/src/qml/jsruntime/qv4functionobject.cpp +++ b/src/qml/jsruntime/qv4functionobject.cpp @@ -540,7 +540,7 @@ InternalClass *SimpleScriptFunction::internalClassForConstructor() Scope scope(internalClass->engine); ScopedObject p(scope, proto); if (p) - classForConstructor = InternalClass::create(scope.engine, Object::staticVTable(), p.getPointer()); + classForConstructor = internalClass->engine->constructClass->changePrototype(p.getPointer()); else classForConstructor = scope.engine->objectClass; |