From b0afac3daf1cbb9daacbeac0183ef6254de6cc95 Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Mon, 28 Oct 2013 15:18:31 +0100 Subject: Implement setting of values to resolved QObject properties After the resolution of a property, we can set it by index at run-time instead of via name resolution. Change-Id: I479599dabe343cf9e6582dcda12291aebfcce418 Reviewed-by: Lars Knoll --- src/qml/jsruntime/qv4vme_moth.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/qml/jsruntime/qv4vme_moth.cpp') diff --git a/src/qml/jsruntime/qv4vme_moth.cpp b/src/qml/jsruntime/qv4vme_moth.cpp index 1797f0b2ee..ecbc78cd26 100644 --- a/src/qml/jsruntime/qv4vme_moth.cpp +++ b/src/qml/jsruntime/qv4vme_moth.cpp @@ -305,6 +305,11 @@ QV4::ReturnedValue VME::run(QV4::ExecutionContext *context, const uchar *code, CHECK_EXCEPTION; MOTH_END_INSTR(SetLookup) + MOTH_BEGIN_INSTR(StoreQObjectProperty) + __qmljs_set_qobject_property(context, VALUEPTR(instr.base), instr.propertyIndex, VALUEPTR(instr.source)); + CHECK_EXCEPTION; + MOTH_END_INSTR(StoreQObjectProperty) + MOTH_BEGIN_INSTR(LoadQObjectProperty) STOREVALUE(instr.result, __qmljs_get_qobject_property(context, VALUEPTR(instr.base), instr.propertyIndex)); MOTH_END_INSTR(LoadQObjectProperty) -- cgit v1.2.3