Index: runtime/vm/flow_graph_compiler_x64.cc |
=================================================================== |
--- runtime/vm/flow_graph_compiler_x64.cc (revision 12926) |
+++ runtime/vm/flow_graph_compiler_x64.cc (working copy) |
@@ -1134,6 +1134,16 @@ |
} |
+void FlowGraphCompiler::EmitEqualityRegConstCompare(Register reg, |
+ const Object& obj) { |
+ if (obj.IsSmi() && (Smi::Cast(obj).Value() == 0)) { |
+ __ testq(reg, reg); |
+ } else { |
+ __ CompareObject(reg, obj); |
+ } |
+} |
+ |
+ |
void FlowGraphCompiler::LoadDoubleOrSmiToXmm(XmmRegister result, |
Register reg, |
Register temp, |