diff options
| author | 2015-11-23 12:14:45 +0000 | |
|---|---|---|
| committer | 2015-11-23 12:14:45 +0000 | |
| commit | c61ac2785c236a556fc4d70eca7b7e0fd83060f5 (patch) | |
| tree | 182079e5ab2802bd85470cd4fed614432c869df1 /compiler/optimizing/nodes.h | |
| parent | f2550c7330c5bc012a6aafdcc0188472ed332dc1 (diff) | |
| parent | 6d92d59fb0acc1f9fde1d736f80e6cb1a8541da9 (diff) | |
Merge "Do not change to the access check entrypoint when inlined."
am: 6d92d59fb0
* commit '6d92d59fb0acc1f9fde1d736f80e6cb1a8541da9':
Do not change to the access check entrypoint when inlined.
Diffstat (limited to 'compiler/optimizing/nodes.h')
| -rw-r--r-- | compiler/optimizing/nodes.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/compiler/optimizing/nodes.h b/compiler/optimizing/nodes.h index a5ea15408c..3b5c384c84 100644 --- a/compiler/optimizing/nodes.h +++ b/compiler/optimizing/nodes.h @@ -1631,6 +1631,11 @@ class HEnvironment : public ArenaObject<kArenaAllocEnvironment> { return holder_; } + + bool IsFromInlinedInvoke() const { + return GetParent() != nullptr; + } + private: // Record instructions' use entries of this environment for constant-time removal. // It should only be called by HInstruction when a new environment use is added. @@ -3243,7 +3248,7 @@ class HInvoke : public HInstruction { void SetIntrinsic(Intrinsics intrinsic, IntrinsicNeedsEnvironmentOrCache needs_env_or_cache); bool IsFromInlinedInvoke() const { - return GetEnvironment()->GetParent() != nullptr; + return GetEnvironment()->IsFromInlinedInvoke(); } bool CanThrow() const OVERRIDE { return true; } |