From 833c99db20a6ccbf337d77855098141e008b04ee Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Wed, 26 Aug 2015 16:40:11 +0200 Subject: Inline property data into the object Append the part of the objects property data that is known ad instantiation time to the object itself and by that avoid creating a separate MemberData. Saves some memory and should speed up object creation. Currently implemented only for Object and ArrayObject. Change-Id: I7693bf2f3a28fb718522398ebb94ac115e021fa4 Reviewed-by: Simon Hausmann --- tools/qmljs/qmljs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/qmljs') diff --git a/tools/qmljs/qmljs.cpp b/tools/qmljs/qmljs.cpp index 53e520cd1f..a882c5ef50 100644 --- a/tools/qmljs/qmljs.cpp +++ b/tools/qmljs/qmljs.cpp @@ -188,7 +188,7 @@ int main(int argc, char *argv[]) QV4::Scope scope(&vm); QV4::ScopedContext ctx(scope, vm.rootContext()); - QV4::ScopedObject print(scope, vm.memoryManager->alloc(ctx)); + QV4::ScopedObject print(scope, vm.memoryManager->alloc(vm.rootContext())); vm.globalObject->put(QV4::ScopedString(scope, vm.newIdentifier(QStringLiteral("print"))).getPointer(), print); QV4::ScopedObject gc(scope, vm.memoryManager->alloc(ctx)); vm.globalObject->put(QV4::ScopedString(scope, vm.newIdentifier(QStringLiteral("gc"))).getPointer(), gc); -- cgit v1.2.3