Index: runtime/vm/flow_graph_compiler_arm.cc |
diff --git a/runtime/vm/flow_graph_compiler_arm.cc b/runtime/vm/flow_graph_compiler_arm.cc |
index 6b81354e1b615d90b86c2be6d7d5ec12893390f3..46028f977c9270c3d12128fdb9f4c30c093cf258 100644 |
--- a/runtime/vm/flow_graph_compiler_arm.cc |
+++ b/runtime/vm/flow_graph_compiler_arm.cc |
@@ -556,7 +556,6 @@ RawSubtypeTestCache* FlowGraphCompiler::GenerateInlineInstanceof( |
void FlowGraphCompiler::GenerateInstanceOf(TokenPosition token_pos, |
intptr_t deopt_id, |
const AbstractType& type, |
- bool negate_result, |
LocationSummary* locs) { |
ASSERT(type.IsFinalized() && !type.IsMalformed() && !type.IsMalbounded()); |
ASSERT(!type.IsObjectType() && !type.IsDynamicType()); |
@@ -600,23 +599,15 @@ void FlowGraphCompiler::GenerateInstanceOf(TokenPosition token_pos, |
// Pop the parameters supplied to the runtime entry. The result of the |
// instanceof runtime call will be left as the result of the operation. |
__ Drop(4); |
- if (negate_result) { |
- __ Pop(R1); |
- __ LoadObject(R0, Bool::True()); |
- __ cmp(R1, Operand(R0)); |
- __ b(&done, NE); |
- __ LoadObject(R0, Bool::False()); |
- } else { |
- __ Pop(R0); |
- } |
+ __ Pop(R0); |
__ b(&done); |
} |
__ Bind(&is_not_instance); |
- __ LoadObject(R0, Bool::Get(negate_result)); |
+ __ LoadObject(R0, Bool::Get(false)); |
__ b(&done); |
__ Bind(&is_instance); |
- __ LoadObject(R0, Bool::Get(!negate_result)); |
+ __ LoadObject(R0, Bool::Get(true)); |
__ Bind(&done); |
// Remove instantiator type arguments (R1). |
__ Drop(1); |