diff options
author | Lars Knoll <lars.knoll@qt.io> | 2017-01-31 15:00:06 +0100 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2017-03-09 08:58:37 +0000 |
commit | 9242e5a685695356b2c9101a5e1642a726a6fede (patch) | |
tree | aa01e0e116517592cc0529ad4de11f2e9ed3924d /src/qml/jsruntime/qv4functionobject.cpp | |
parent | 91714e004e0c91527e7049ff43565dda682fc2bd (diff) |
Add a set() method to HeapValue as well
And use it instead of simply assigning to it, so we can add a write
barrier later on.
Change-Id: I31c0d0b20ed5d37fee046aa02af17875679b22bf
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
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 a2433e7471..55b0175a47 100644 --- a/src/qml/jsruntime/qv4functionobject.cpp +++ b/src/qml/jsruntime/qv4functionobject.cpp @@ -540,7 +540,7 @@ void Heap::BoundFunction::init(QV4::ExecutionContext *scope, QV4::FunctionObject Heap::FunctionObject::init(scope, QStringLiteral("__bound function__")); this->target.set(s.engine, target->d()); this->boundArgs.set(s.engine, boundArgs ? boundArgs->d() : 0); - this->boundThis = boundThis; + this->boundThis.set(scope->engine(), boundThis); ScopedObject f(s, this); |