aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4lookup_p.h
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@digia.com>2014-11-11 16:07:54 +0100
committerSimon Hausmann <simon.hausmann@digia.com>2014-11-12 12:13:54 +0100
commit9bad6eea0f30f6a6c1878c2773dc39071cb41584 (patch)
tree2306235d1db4f4abce697de2564a935229517bfd /src/qml/jsruntime/qv4lookup_p.h
parent345a5ee67bf80f7c18869fe080bf7dd7cf4a0d90 (diff)
Change signature or runtime methods to take an engine pointer
This makes a lot more sense in the long term and is the more maintainable solution, once the GC starts moving objects around in memory Change-Id: I8f327c0f5b5b0af38c5fe1a217852ee8c4a5c2fc 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.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/qml/jsruntime/qv4lookup_p.h b/src/qml/jsruntime/qv4lookup_p.h
index 8ff7e98d0f..a46e712606 100644
--- a/src/qml/jsruntime/qv4lookup_p.h
+++ b/src/qml/jsruntime/qv4lookup_p.h
@@ -50,7 +50,7 @@ struct Lookup {
ReturnedValue (*indexedGetter)(Lookup *l, const ValueRef object, const ValueRef index);
void (*indexedSetter)(Lookup *l, const ValueRef object, const ValueRef index, const ValueRef v);
ReturnedValue (*getter)(Lookup *l, const ValueRef object);
- ReturnedValue (*globalGetter)(Lookup *l, ExecutionContext *ctx);
+ ReturnedValue (*globalGetter)(Lookup *l, ExecutionEngine *engine);
void (*setter)(Lookup *l, const ValueRef object, const ValueRef v);
};
union {
@@ -99,13 +99,13 @@ struct Lookup {
static ReturnedValue stringLengthGetter(Lookup *l, const ValueRef object);
static ReturnedValue arrayLengthGetter(Lookup *l, const ValueRef object);
- static ReturnedValue globalGetterGeneric(Lookup *l, ExecutionContext *ctx);
- static ReturnedValue globalGetter0(Lookup *l, ExecutionContext *ctx);
- static ReturnedValue globalGetter1(Lookup *l, ExecutionContext *ctx);
- static ReturnedValue globalGetter2(Lookup *l, ExecutionContext *ctx);
- static ReturnedValue globalGetterAccessor0(Lookup *l, ExecutionContext *ctx);
- static ReturnedValue globalGetterAccessor1(Lookup *l, ExecutionContext *ctx);
- static ReturnedValue globalGetterAccessor2(Lookup *l, ExecutionContext *ctx);
+ static ReturnedValue globalGetterGeneric(Lookup *l, ExecutionEngine *engine);
+ static ReturnedValue globalGetter0(Lookup *l, ExecutionEngine *engine);
+ static ReturnedValue globalGetter1(Lookup *l, ExecutionEngine *engine);
+ static ReturnedValue globalGetter2(Lookup *l, ExecutionEngine *engine);
+ static ReturnedValue globalGetterAccessor0(Lookup *l, ExecutionEngine *engine);
+ static ReturnedValue globalGetterAccessor1(Lookup *l, ExecutionEngine *engine);
+ static ReturnedValue globalGetterAccessor2(Lookup *l, ExecutionEngine *engine);
static void setterGeneric(Lookup *l, const ValueRef object, const ValueRef value);
static void setterTwoClasses(Lookup *l, const ValueRef object, const ValueRef value);