summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErik Verbruggen <erik.verbruggen@digia.com>2015-12-23 12:27:47 +0100
committerErik Verbruggen <erik.verbruggen@theqtcompany.com>2015-12-23 13:31:36 +0000
commit7842c2c19c16e6d52d1b138fb33ee563bae0faae (patch)
tree661499d1259cda7ba823b3ef87dad728ac612ff2
parent7a7584d260f2229fe68c63db29ab84120e6afa98 (diff)
V4: Shrink IR::Temp by removing unnecessary padding.
On 64bit systems, the size goes from 32 bytes to 24. Change-Id: Ic97f98b8f64fd5452f259e825a6bfd1656484fc5 Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
-rw-r--r--src/qml/compiler/qv4jsir_p.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/qml/compiler/qv4jsir_p.h b/src/qml/compiler/qv4jsir_p.h
index 568ded5337..514ba3b906 100644
--- a/src/qml/compiler/qv4jsir_p.h
+++ b/src/qml/compiler/qv4jsir_p.h
@@ -366,18 +366,18 @@ struct Q_AUTOTEST_EXPORT Temp: Expr {
StackSlot
};
- // Used when temp is used as base in member expression
- MemberExpressionResolver *memberResolver;
-
unsigned index : 28;
unsigned isReadOnly : 1;
unsigned kind : 3;
+ // Used when temp is used as base in member expression
+ MemberExpressionResolver *memberResolver;
+
Temp()
- : memberResolver(0)
- , index((1 << 28) - 1)
+ : index((1 << 28) - 1)
, isReadOnly(0)
, kind(Invalid)
+ , memberResolver(0)
{}
void init(unsigned kind, unsigned index)