diff options
author | Lars Knoll <[email protected]> | 2015-04-26 09:22:17 +0200 |
---|---|---|
committer | Simon Hausmann <[email protected]> | 2015-06-10 15:01:17 +0000 |
commit | 864988474a96145f0506a80aa36c341a9f29e85b (patch) | |
tree | 8f4097dc3a65b85d77660ec2b74d37adc615feab /src/qml/jsruntime/qv4script.cpp | |
parent | 58e712a9dd5d22c0ea90a49ecee85724ecce6ace (diff) |
Move the StringValue members of ExecutionEngine onto the JS stack
Change-Id: Ib55c05f1730b7659e2f6fee7e1fa79c10c759167
Reviewed-by: Simon Hausmann <[email protected]>
Diffstat (limited to 'src/qml/jsruntime/qv4script.cpp')
-rw-r--r-- | src/qml/jsruntime/qv4script.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/qml/jsruntime/qv4script.cpp b/src/qml/jsruntime/qv4script.cpp index bd5529294c..c54bcefd20 100644 --- a/src/qml/jsruntime/qv4script.cpp +++ b/src/qml/jsruntime/qv4script.cpp @@ -87,7 +87,7 @@ DEFINE_OBJECT_VTABLE(QmlBindingWrapper); DEFINE_OBJECT_VTABLE(CompilationUnitHolder); Heap::QmlBindingWrapper::QmlBindingWrapper(QV4::ExecutionContext *scope, Function *f, QV4::Object *qml) - : Heap::FunctionObject(scope, scope->d()->engine->id_eval, /*createProto = */ false) + : Heap::FunctionObject(scope, scope->d()->engine->id_eval(), /*createProto = */ false) , qml(qml->d()) { Q_ASSERT(scope->inUse()); @@ -99,7 +99,7 @@ Heap::QmlBindingWrapper::QmlBindingWrapper(QV4::ExecutionContext *scope, Functio Scope s(scope); Scoped<QV4::QmlBindingWrapper> o(s, this); - o->defineReadonlyProperty(scope->d()->engine->id_length, Primitive::fromInt32(1)); + o->defineReadonlyProperty(scope->d()->engine->id_length(), Primitive::fromInt32(1)); ScopedContext ctx(s, s.engine->currentContext()); o->d()->qmlContext = ctx->newQmlContext(o, qml); @@ -107,7 +107,7 @@ Heap::QmlBindingWrapper::QmlBindingWrapper(QV4::ExecutionContext *scope, Functio } Heap::QmlBindingWrapper::QmlBindingWrapper(QV4::ExecutionContext *scope, QV4::Object *qml) - : Heap::FunctionObject(scope, scope->d()->engine->id_eval, /*createProto = */ false) + : Heap::FunctionObject(scope, scope->d()->engine->id_eval(), /*createProto = */ false) , qml(qml->d()) { Q_ASSERT(scope->inUse()); @@ -115,7 +115,7 @@ Heap::QmlBindingWrapper::QmlBindingWrapper(QV4::ExecutionContext *scope, QV4::Ob Scope s(scope); Scoped<QV4::QmlBindingWrapper> o(s, this); - o->defineReadonlyProperty(scope->d()->engine->id_length, Primitive::fromInt32(1)); + o->defineReadonlyProperty(scope->d()->engine->id_length(), Primitive::fromInt32(1)); ScopedContext ctx(s, s.engine->currentContext()); o->d()->qmlContext = ctx->newQmlContext(o, qml); |