From 8f2eb25ca40136a36a5d7002c8ca5a05723e334e Mon Sep 17 00:00:00 2001 From: Nicolas Geoffray Date: Fri, 6 Nov 2020 13:39:54 +0000 Subject: 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 --- compiler/optimizing/instruction_simplifier.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'compiler/optimizing/instruction_simplifier.cc') diff --git a/compiler/optimizing/instruction_simplifier.cc b/compiler/optimizing/instruction_simplifier.cc index d7d5b597c0..96f82f61ca 100644 --- a/compiler/optimizing/instruction_simplifier.cc +++ b/compiler/optimizing/instruction_simplifier.cc @@ -2326,14 +2326,14 @@ void InstructionSimplifierVisitor::SimplifyFP2Int(HInvoke* invoke) { if (type == DataType::Type::kFloat64) { nan = GetGraph()->GetLongConstant(0x7ff8000000000000L); invoke->SetIntrinsic(Intrinsics::kDoubleDoubleToRawLongBits, - kNeedsEnvironmentOrCache, + kNeedsEnvironment, kNoSideEffects, kNoThrow); } else { DCHECK_EQ(type, DataType::Type::kFloat32); nan = GetGraph()->GetIntConstant(0x7fc00000); invoke->SetIntrinsic(Intrinsics::kFloatFloatToRawIntBits, - kNeedsEnvironmentOrCache, + kNeedsEnvironment, kNoSideEffects, kNoThrow); } -- cgit v1.2.3-59-g8ed1b