From 6f472680ebecb3a4d700eedcf62cb423b05c4fd1 Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Wed, 21 Aug 2013 17:31:22 +0200 Subject: change calling convention for JS function calls This allows faster pass through of the data if we have nested calls. Also make sure we always reserve at least QV4::Global::ReservedArgumentCount Values on the stack to avoid stack corruption. Change-Id: I42976460f1ef11a333d4adda70fba8daac66acf3 Reviewed-by: Simon Hausmann --- src/qml/jsruntime/qv4value_p.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/qml/jsruntime/qv4value_p.h') diff --git a/src/qml/jsruntime/qv4value_p.h b/src/qml/jsruntime/qv4value_p.h index 20b78a4da1..73d5d0479d 100644 --- a/src/qml/jsruntime/qv4value_p.h +++ b/src/qml/jsruntime/qv4value_p.h @@ -320,11 +320,11 @@ inline ErrorObject *Value::asErrorObject() const } // ### -inline Value Managed::construct(Value *args, int argc) { - return vtbl->construct(this, args, argc); +inline Value Managed::construct(const CallData &d) { + return vtbl->construct(this, d); } -inline Value Managed::call(const Value &thisObject, Value *args, int argc) { - return vtbl->call(this, thisObject, args, argc); +inline Value Managed::call(const CallData &d) { + return vtbl->call(this, d); } struct Q_QML_PRIVATE_EXPORT PersistentValuePrivate -- cgit v1.2.3