aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4context_p.h
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2017-08-08 16:56:59 +0200
committerLars Knoll <lars.knoll@qt.io>2017-08-10 08:19:24 +0000
commit55f17d0faad79dbb9adf793f7ce6e75ff5b70033 (patch)
tree5a5e34a98a196173c707f62d972a3a4984c146de /src/qml/jsruntime/qv4context_p.h
parent5bc4f4d958a3b76f3435d61206ca0109f07aa1a3 (diff)
Get rid of simpleCall
After the recent changes this can easily be unified with the call method without loss of performance. Change-Id: I0385b47b6a86e890f97dcbada3a1be1129ae0b84 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4context_p.h')
-rw-r--r--src/qml/jsruntime/qv4context_p.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/qml/jsruntime/qv4context_p.h b/src/qml/jsruntime/qv4context_p.h
index 44c434e637..1f62c64a23 100644
--- a/src/qml/jsruntime/qv4context_p.h
+++ b/src/qml/jsruntime/qv4context_p.h
@@ -193,7 +193,7 @@ struct Q_QML_EXPORT ExecutionContext : public Managed
Q_MANAGED_TYPE(ExecutionContext)
V4_INTERNALCLASS(ExecutionContext)
- Heap::CallContext *newCallContext(Function *f, CallData *callData);
+ static Heap::CallContext *newCallContext(Heap::ExecutionContext *outer, Function *f, CallData *callData);
Heap::ExecutionContext *newWithContext(Heap::Object *with);
Heap::CatchContext *newCatchContext(Heap::String *exceptionVarName, ReturnedValue exceptionValue);
@@ -222,8 +222,7 @@ struct Q_QML_EXPORT ExecutionContext : public Managed
return d()->callData->argument(i);
}
- ReturnedValue call(ExecutionEngine *engine, CallData *callData, QV4::Function *function, const QV4::FunctionObject *f = 0);
- ReturnedValue simpleCall(ExecutionEngine *engine, CallData *callData, QV4::Function *function);
+ static ReturnedValue call(Heap::ExecutionContext *context, CallData *callData, QV4::Function *function, const QV4::FunctionObject *f = 0);
};
struct Q_QML_EXPORT CallContext : public ExecutionContext