diff options
author | Nicolas Geoffray <ngeoffray@google.com> | 2015-05-07 11:46:05 +0100 |
---|---|---|
committer | Nicolas Geoffray <ngeoffray@google.com> | 2015-05-07 11:46:05 +0100 |
commit | 8c0c91a845568624815df026cfdac8c42ecccdf6 (patch) | |
tree | 48f4a1f6158234c3257ed75405122b1fb0941f96 /compiler/optimizing/nodes.h | |
parent | 46a4b26855ae9fcd14c6e4435f37f09ceb134f61 (diff) | |
download | art-8c0c91a845568624815df026cfdac8c42ecccdf6.tar.gz art-8c0c91a845568624815df026cfdac8c42ecccdf6.tar.bz2 art-8c0c91a845568624815df026cfdac8c42ecccdf6.zip |
Use a growable array instead of an environment during SSA.
Using an environment was convenient because it contains
a growable array. But there's no need for the environment
abstraction when being used as a temporary holder for values
of locals.
Change-Id: Idf2883fe4b8f97a31ee70b3627c1bdd23ebfff0e
Diffstat (limited to 'compiler/optimizing/nodes.h')
-rw-r--r-- | compiler/optimizing/nodes.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler/optimizing/nodes.h b/compiler/optimizing/nodes.h index 53a4d84eac..5fc0470310 100644 --- a/compiler/optimizing/nodes.h +++ b/compiler/optimizing/nodes.h @@ -1068,7 +1068,9 @@ class HEnvironment : public ArenaObject<kArenaAllocMisc> { } } - void CopyFrom(HEnvironment* env); + void CopyFrom(const GrowableArray<HInstruction*>& locals); + void CopyFrom(HEnvironment* environment); + // Copy from `env`. If it's a loop phi for `loop_header`, copy the first // input to the loop phi instead. This is for inserting instructions that // require an environment (like HDeoptimization) in the loop pre-header. |