diff options
author | 2014-09-02 15:17:15 +0100 | |
---|---|---|
committer | 2014-09-08 12:15:07 +0100 | |
commit | 3946844c34ad965515f677084b07d663d70ad1b8 (patch) | |
tree | 0d85bfba2ff69c34a2897351d1e50a1464509305 /compiler/optimizing/nodes.cc | |
parent | e2c23739c6395a83b30ece38f8a2e9e1bf7cf3ce (diff) |
Runtime support for the new stack maps for the opt compiler.
Now most of the methods supported by the compiler can be optimized,
instead of using the baseline.
Change-Id: I80ab36a34913fa4e7dd576c7bf55af63594dc1fa
Diffstat (limited to 'compiler/optimizing/nodes.cc')
-rw-r--r-- | compiler/optimizing/nodes.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/optimizing/nodes.cc b/compiler/optimizing/nodes.cc index 490d345826..f07029d6c2 100644 --- a/compiler/optimizing/nodes.cc +++ b/compiler/optimizing/nodes.cc @@ -414,6 +414,10 @@ void HInstruction::ReplaceWith(HInstruction* other) { env_uses_ = nullptr; } +size_t HInstruction::EnvironmentSize() const { + return HasEnvironment() ? environment_->Size() : 0; +} + void HPhi::AddInput(HInstruction* input) { DCHECK(input->GetBlock() != nullptr); inputs_.Add(input); |