summaryrefslogtreecommitdiff
path: root/compiler/optimizing/intrinsics.h
diff options
context:
space:
mode:
author Nicolas Geoffray <ngeoffray@google.com> 2020-11-06 13:39:54 +0000
committer Treehugger Robot <treehugger-gerrit@google.com> 2020-11-06 15:26:27 +0000
commit8f2eb25ca40136a36a5d7002c8ca5a05723e334e (patch)
tree51778c592bdd3eb65d3fde8c21997eec30bd1e23 /compiler/optimizing/intrinsics.h
parent8411c5ddb824bae1d3202a3bc2e42c77d351e916 (diff)
Remove NeedsDexCache logic from the compiler.
The compiled code and runtime stubs don't need to have direct access to the dex cache anymore. Test: test.py Change-Id: Id3aab9b10445ba2599e1a9ffd8e36506a745bfec
Diffstat (limited to 'compiler/optimizing/intrinsics.h')
-rw-r--r--compiler/optimizing/intrinsics.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/compiler/optimizing/intrinsics.h b/compiler/optimizing/intrinsics.h
index a0f9420d95..96f178e25e 100644
--- a/compiler/optimizing/intrinsics.h
+++ b/compiler/optimizing/intrinsics.h
@@ -163,9 +163,8 @@ class IntrinsicOptimizations : public ValueObject {
explicit IntrinsicOptimizations(const HInvoke& invoke)
: value_(invoke.GetIntrinsicOptimizations()) {}
- static constexpr int kNumberOfGenericOptimizations = 2;
- GENERIC_OPTIMIZATION(DoesNotNeedDexCache, 0);
- GENERIC_OPTIMIZATION(DoesNotNeedEnvironment, 1);
+ static constexpr int kNumberOfGenericOptimizations = 1;
+ GENERIC_OPTIMIZATION(DoesNotNeedEnvironment, 0);
protected:
bool IsBitSet(uint32_t bit) const {