diff options
author | Erik Verbruggen <erik.verbruggen@digia.com> | 2014-04-15 15:34:03 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-04-30 15:01:31 +0200 |
commit | 5f66ce2d962b5cf6720303173747e15ad6df0788 (patch) | |
tree | 02e5b8cf648e745b2a828ae63e2c0221fcd4454f /src/qml/compiler/qv4ssa_p.h | |
parent | a719ccf476273f17bf72dbf0909a7663fe64f2b0 (diff) |
V4 regalloc: optimize fixed interval creation.
Instead of creating ranges for all caller saved registers one at a time,
create a single template for all of them. Then change the template for
a (all) specific registers. So, instead of building the ranges every
time for all registers, do it once, and re-use the array. We currently
treat all registers as caller saved, so the ranges can actually be
shared.
Change-Id: I39111ba88be5c49bbab8fe4f2f8c5ad1c89ef282
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/compiler/qv4ssa_p.h')
-rw-r--r-- | src/qml/compiler/qv4ssa_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/compiler/qv4ssa_p.h b/src/qml/compiler/qv4ssa_p.h index e53573fdd5..40ca44dc55 100644 --- a/src/qml/compiler/qv4ssa_p.h +++ b/src/qml/compiler/qv4ssa_p.h @@ -77,7 +77,7 @@ private: public: enum { Invalid = -1 }; - LifeTimeInterval(int rangeCapacity = 2) + explicit LifeTimeInterval(int rangeCapacity = 2) : _end(Invalid) , _reg(Invalid) , _isFixedInterval(0) |