diff options
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); |