Index: runtime/vm/flow_graph_compiler_ia32.cc |
diff --git a/runtime/vm/flow_graph_compiler_ia32.cc b/runtime/vm/flow_graph_compiler_ia32.cc |
index a8805fb205280b65d0eeedd568e4b73a60a3537d..feec49120123d7fce6827a48786451d05c04e360 100644 |
--- a/runtime/vm/flow_graph_compiler_ia32.cc |
+++ b/runtime/vm/flow_graph_compiler_ia32.cc |
@@ -1295,7 +1295,8 @@ Condition FlowGraphCompiler::EmitEqualityRegConstCompare( |
Register reg, |
const Object& obj, |
bool needs_number_check, |
- TokenPosition token_pos) { |
+ TokenPosition token_pos, |
+ intptr_t deopt_id) { |
ASSERT(!needs_number_check || |
(!obj.IsMint() && !obj.IsDouble() && !obj.IsBigint())); |
@@ -1313,10 +1314,7 @@ Condition FlowGraphCompiler::EmitEqualityRegConstCompare( |
} else { |
__ Call(*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 cmpl, we need ZF computed). |
__ popl(reg); // Discard constant. |
__ popl(reg); // Restore 'reg'. |
@@ -1327,11 +1325,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) { |
__ pushl(left); |
__ pushl(right); |
@@ -1340,10 +1338,7 @@ Condition FlowGraphCompiler::EmitEqualityRegRegCompare( |
} else { |
__ Call(*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 cmpl, we need ZF computed). |
__ popl(right); |
__ popl(left); |