From 40090cebe11d62615c5ac09c23c2dfd9b6816052 Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Tue, 14 May 2013 02:33:03 +0200 Subject: [PATCH] Don't GC constructors and prototypes Change-Id: Iedc894927bc93dc3f5778a4f7855eb3ec37b946b Reviewed-by: Simon Hausmann --- src/qml/qml/v4/qv4engine.cpp | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/src/qml/qml/v4/qv4engine.cpp b/src/qml/qml/v4/qv4engine.cpp index 1c4bf25..ac1936e 100644 --- a/src/qml/qml/v4/qv4engine.cpp +++ b/src/qml/qml/v4/qv4engine.cpp @@ -594,6 +594,40 @@ void ExecutionEngine::markObjects() id_eval->mark(); id_uintMax->mark(); id_name->mark(); + + objectCtor.mark(); + stringCtor.mark(); + numberCtor.mark(); + booleanCtor.mark(); + arrayCtor.mark(); + functionCtor.mark(); + dateCtor.mark(); + regExpCtor.mark(); + errorCtor.mark(); + evalErrorCtor.mark(); + rangeErrorCtor.mark(); + referenceErrorCtor.mark(); + syntaxErrorCtor.mark(); + typeErrorCtor.mark(); + uRIErrorCtor.mark(); + + objectPrototype->mark(); + stringPrototype->mark(); + numberPrototype->mark(); + booleanPrototype->mark(); + arrayPrototype->mark(); + functionPrototype->mark(); + datePrototype->mark(); + regExpPrototype->mark(); + errorPrototype->mark(); + evalErrorPrototype->mark(); + rangeErrorPrototype->mark(); + referenceErrorPrototype->mark(); + syntaxErrorPrototype->mark(); + typeErrorPrototype->mark(); + uRIErrorPrototype->mark(); + + variantPrototype->mark(); } Value ExecutionEngine::run(Function *function, ExecutionContext *ctx) -- 2.7.4