diff options
author | Lars Knoll <lars.knoll@digia.com> | 2013-09-18 16:36:02 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-09-22 01:06:20 +0200 |
commit | df5edd28bc4258b89d9d5ffdddf837f339a17aad (patch) | |
tree | 2a5939d5e3c49928aadf43337832d3ef5a58df08 /src/qml/jsruntime/qv4lookup_p.h | |
parent | 700ba1bcb39e082049c96fafdfaccfe5d83cd77e (diff) |
convert Managed::put() API to be GC safe
Change-Id: I09198ce372fa545372db389fac26828d21ad5731
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/jsruntime/qv4lookup_p.h')
-rw-r--r-- | src/qml/jsruntime/qv4lookup_p.h | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/src/qml/jsruntime/qv4lookup_p.h b/src/qml/jsruntime/qv4lookup_p.h index b79e91028f..9966d36604 100644 --- a/src/qml/jsruntime/qv4lookup_p.h +++ b/src/qml/jsruntime/qv4lookup_p.h @@ -55,9 +55,9 @@ namespace QV4 { struct Lookup { enum { Size = 4 }; union { - ReturnedValue (*getter)(Lookup *l, const Value &object); + ReturnedValue (*getter)(Lookup *l, const ValueRef object); ReturnedValue (*globalGetter)(Lookup *l, ExecutionContext *ctx); - void (*setter)(Lookup *l, const Value &object, const Value &v); + void (*setter)(Lookup *l, const ValueRef object, const ValueRef v); }; union { InternalClass *classList[Size]; @@ -72,19 +72,19 @@ struct Lookup { uint index; String *name; - static ReturnedValue getterGeneric(Lookup *l, const Value &object); - static ReturnedValue getter0(Lookup *l, const Value &object); - static ReturnedValue getter1(Lookup *l, const Value &object); - static ReturnedValue getter2(Lookup *l, const Value &object); - static ReturnedValue getterAccessor0(Lookup *l, const Value &object); - static ReturnedValue getterAccessor1(Lookup *l, const Value &object); - static ReturnedValue getterAccessor2(Lookup *l, const Value &object); + static ReturnedValue getterGeneric(Lookup *l, const ValueRef object); + static ReturnedValue getter0(Lookup *l, const ValueRef object); + static ReturnedValue getter1(Lookup *l, const ValueRef object); + static ReturnedValue getter2(Lookup *l, const ValueRef object); + static ReturnedValue getterAccessor0(Lookup *l, const ValueRef object); + static ReturnedValue getterAccessor1(Lookup *l, const ValueRef object); + static ReturnedValue getterAccessor2(Lookup *l, const ValueRef object); - static ReturnedValue primitiveGetter0(Lookup *l, const Value &object); - static ReturnedValue primitiveGetter1(Lookup *l, const Value &object); - static ReturnedValue primitiveGetterAccessor0(Lookup *l, const Value &object); - static ReturnedValue primitiveGetterAccessor1(Lookup *l, const Value &object); - static ReturnedValue stringLengthGetter(Lookup *l, const Value &object); + static ReturnedValue primitiveGetter0(Lookup *l, const ValueRef object); + static ReturnedValue primitiveGetter1(Lookup *l, const ValueRef object); + static ReturnedValue primitiveGetterAccessor0(Lookup *l, const ValueRef object); + static ReturnedValue primitiveGetterAccessor1(Lookup *l, const ValueRef object); + static ReturnedValue stringLengthGetter(Lookup *l, const ValueRef object); static ReturnedValue globalGetterGeneric(Lookup *l, ExecutionContext *ctx); static ReturnedValue globalGetter0(Lookup *l, ExecutionContext *ctx); @@ -94,11 +94,11 @@ struct Lookup { static ReturnedValue globalGetterAccessor1(Lookup *l, ExecutionContext *ctx); static ReturnedValue globalGetterAccessor2(Lookup *l, ExecutionContext *ctx); - static void setterGeneric(Lookup *l, const Value &object, const Value &value); - static void setter0(Lookup *l, const Value &object, const Value &value); - static void setterInsert0(Lookup *l, const Value &object, const Value &value); - static void setterInsert1(Lookup *l, const Value &object, const Value &value); - static void setterInsert2(Lookup *l, const Value &object, const Value &value); + static void setterGeneric(Lookup *l, const ValueRef object, const ValueRef value); + static void setter0(Lookup *l, const ValueRef object, const ValueRef value); + static void setterInsert0(Lookup *l, const ValueRef object, const ValueRef value); + static void setterInsert1(Lookup *l, const ValueRef object, const ValueRef value); + static void setterInsert2(Lookup *l, const ValueRef object, const ValueRef value); Property *lookup(Object *obj, PropertyAttributes *attrs); |