Index: runtime/vm/intermediate_language_arm64.cc |
diff --git a/runtime/vm/intermediate_language_arm64.cc b/runtime/vm/intermediate_language_arm64.cc |
index abe7a075bb32a118942db4f378644d862f306164..5ed869920c2cb30f6b32df6522e9e86cfbacf22b 100644 |
--- a/runtime/vm/intermediate_language_arm64.cc |
+++ b/runtime/vm/intermediate_language_arm64.cc |
@@ -2214,15 +2214,9 @@ void CreateArrayInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
const Code& stub = Code::ZoneHandle(compiler->zone(), |
StubCode::AllocateArray_entry()->code()); |
compiler->AddStubCallTarget(stub); |
- if (deopt_id() == Thread::kNoDeoptId) { |
- ASSERT(compiler->is_optimizing()); |
- compiler->GenerateCall(token_pos(), *StubCode::AllocateArray_entry(), |
- RawPcDescriptors::kOther, locs()); |
- } else { |
- compiler->GenerateCallWithDeopt(token_pos(), deopt_id(), |
- *StubCode::AllocateArray_entry(), |
- RawPcDescriptors::kOther, locs()); |
- } |
+ compiler->GenerateCallWithDeopt(token_pos(), deopt_id(), |
+ *StubCode::AllocateArray_entry(), |
+ RawPcDescriptors::kOther, locs()); |
ASSERT(locs()->out(0).reg() == kResultReg); |
} |