summaryrefslogtreecommitdiff
path: root/compiler/optimizing/nodes.h
diff options
context:
space:
mode:
author Nicolas Geoffray <ngeoffray@google.com> 2015-08-13 15:16:40 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2015-08-13 15:16:40 +0000
commite28dde5c7907f14042a0c9bcfa8dad436a1d82f4 (patch)
tree2a7663655fa4ca8c9aa4d40df4d6bb1480f0d2be /compiler/optimizing/nodes.h
parent7c2af0d873b7033adccf8fa7adf259166c53d369 (diff)
parentefa8468c78fdd808043dfb664b56541f3f2dd0e8 (diff)
Merge "Small optimization improvements."
Diffstat (limited to 'compiler/optimizing/nodes.h')
-rw-r--r--compiler/optimizing/nodes.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/optimizing/nodes.h b/compiler/optimizing/nodes.h
index 89709faef6..578b2208d8 100644
--- a/compiler/optimizing/nodes.h
+++ b/compiler/optimizing/nodes.h
@@ -3031,6 +3031,10 @@ class HInvokeStaticOrDirect : public HInvoke {
return false;
}
+ bool CanBeNull() const OVERRIDE {
+ return return_type_ == Primitive::kPrimNot && !IsStringInit();
+ }
+
InvokeType GetInvokeType() const { return invoke_type_; }
bool IsRecursive() const { return is_recursive_; }
bool NeedsDexCache() const OVERRIDE { return !IsRecursive(); }