diff options
author | Lars Knoll <lars.knoll@qt.io> | 2016-11-29 22:39:28 +0100 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2016-12-06 13:01:41 +0000 |
commit | 54c79346f1929ff14673e1ab40a1bfd66ba6e2c5 (patch) | |
tree | 67261b9c22e0fe6d4ca7ba3c13f5e4d89460766b /src/qml/jsruntime/qv4functionobject.cpp | |
parent | 83aa1933c82333b7ec5128442ac9ee2161387491 (diff) |
Use QV4::Function instead of the FunctionObject in CallContext
The prepares for being able to call binding code without having
to create a full FunctionObject.
Change-Id: I5f0dcaa4d1ae8876554cac82597351801588bc02
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4functionobject.cpp')
-rw-r--r-- | src/qml/jsruntime/qv4functionobject.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/qml/jsruntime/qv4functionobject.cpp b/src/qml/jsruntime/qv4functionobject.cpp index 8e84eaebe7..02ea763b30 100644 --- a/src/qml/jsruntime/qv4functionobject.cpp +++ b/src/qml/jsruntime/qv4functionobject.cpp @@ -539,6 +539,7 @@ void SimpleScriptFunction::construct(const Managed *that, Scope &scope, CallData CallContext::Data ctx = CallContext::Data::createOnStack(v4); ctx.function = f->d(); QV4::Function *ff = ctx.function->function; + ctx.v4Function = ff; ctx.strictMode = ff->isStrict(); ctx.callData = callData; ctx.compilationUnit = ff->compilationUnit; @@ -580,6 +581,7 @@ void SimpleScriptFunction::call(const Managed *that, Scope &scope, CallData *cal CallContext::Data ctx = CallContext::Data::createOnStack(v4); ctx.function = f->d(); QV4::Function *ff = ctx.function->function; + ctx.v4Function = ff; ctx.strictMode = ff->isStrict(); ctx.callData = callData; ctx.compilationUnit = ff->compilationUnit; |