Index: runtime/vm/flow_graph_compiler_arm64.cc |
diff --git a/runtime/vm/flow_graph_compiler_arm64.cc b/runtime/vm/flow_graph_compiler_arm64.cc |
index 7fc43413f425ab497a33e49206e8236f461a8947..e5665b1ef29babb6ada1d660752c3fdb3160130e 100644 |
--- a/runtime/vm/flow_graph_compiler_arm64.cc |
+++ b/runtime/vm/flow_graph_compiler_arm64.cc |
@@ -1337,7 +1337,8 @@ Condition FlowGraphCompiler::EmitEqualityRegConstCompare( |
Register reg, |
const Object& obj, |
bool needs_number_check, |
- TokenPosition token_pos) { |
+ TokenPosition token_pos, |
+ intptr_t deopt_id) { |
if (needs_number_check) { |
ASSERT(!obj.IsMint() && !obj.IsDouble() && !obj.IsBigint()); |
__ Push(reg); |
@@ -1349,10 +1350,7 @@ Condition FlowGraphCompiler::EmitEqualityRegConstCompare( |
__ BranchLinkPatchable( |
*StubCode::UnoptimizedIdenticalWithNumberCheck_entry()); |
} |
- if (token_pos.IsReal()) { |
- AddCurrentDescriptor(RawPcDescriptors::kRuntimeCall, Thread::kNoDeoptId, |
- token_pos); |
- } |
+ AddCurrentDescriptor(RawPcDescriptors::kRuntimeCall, deopt_id, token_pos); |
// Stub returns result in flags (result of a cmp, we need Z computed). |
__ Drop(1); // Discard constant. |
__ Pop(reg); // Restore 'reg'. |
@@ -1363,11 +1361,11 @@ Condition FlowGraphCompiler::EmitEqualityRegConstCompare( |
} |
-Condition FlowGraphCompiler::EmitEqualityRegRegCompare( |
- Register left, |
- Register right, |
- bool needs_number_check, |
- TokenPosition token_pos) { |
+Condition FlowGraphCompiler::EmitEqualityRegRegCompare(Register left, |
+ Register right, |
+ bool needs_number_check, |
+ TokenPosition token_pos, |
+ intptr_t deopt_id) { |
if (needs_number_check) { |
__ Push(left); |
__ Push(right); |
@@ -1378,10 +1376,7 @@ Condition FlowGraphCompiler::EmitEqualityRegRegCompare( |
__ BranchLinkPatchable( |
*StubCode::UnoptimizedIdenticalWithNumberCheck_entry()); |
} |
- if (token_pos.IsReal()) { |
- AddCurrentDescriptor(RawPcDescriptors::kRuntimeCall, Thread::kNoDeoptId, |
- token_pos); |
- } |
+ AddCurrentDescriptor(RawPcDescriptors::kRuntimeCall, deopt_id, token_pos); |
// Stub returns result in flags (result of a cmp, we need Z computed). |
__ Pop(right); |
__ Pop(left); |