diff options
| author | Ulf Hermann <ulf.hermann@qt.io> | 2022-09-23 13:30:05 +0200 |
|---|---|---|
| committer | Ulf Hermann <ulf.hermann@qt.io> | 2022-09-23 16:53:08 +0200 |
| commit | b101be9be64b6cc82dc357da0faeffbaab771b8f (patch) | |
| tree | 69bcd4c3377b409d8f5f51b2ec7f90b21ce3d233 /src/qml/jsruntime/qv4function_p.h | |
| parent | ac0468f9299657dd4612d50934be4a48c353de95 (diff) | |
QV4::Function: Reduce nFormals to 16 bits
This saves some space due to better alignment.
We cannot have more bits in the compilation unit anyway. If we were to
get a signal with more formal parameters than that, we just produce an
error now.
Change-Id: I02c329590b2d18337eca7441529b5cd4e19349f7
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4function_p.h')
| -rw-r--r-- | src/qml/jsruntime/qv4function_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/jsruntime/qv4function_p.h b/src/qml/jsruntime/qv4function_p.h index 072c0fb9cc..67d31b6c6c 100644 --- a/src/qml/jsruntime/qv4function_p.h +++ b/src/qml/jsruntime/qv4function_p.h @@ -78,8 +78,8 @@ public: // first nArguments names in internalClass are the actual arguments Heap::InternalClass *internalClass; - uint nFormals; int interpreterCallCount = 0; + quint16 nFormals; bool isEval = false; bool detectedInjectedParameters = false; |
