Index: src/crankshaft/ia32/lithium-codegen-ia32.cc |
diff --git a/src/crankshaft/ia32/lithium-codegen-ia32.cc b/src/crankshaft/ia32/lithium-codegen-ia32.cc |
index 436304d549b0222120ae074825892aef93709af6..fa1173a9157245b44a8ce6ddafb0fbfe211ea809 100644 |
--- a/src/crankshaft/ia32/lithium-codegen-ia32.cc |
+++ b/src/crankshaft/ia32/lithium-codegen-ia32.cc |
@@ -5124,8 +5124,8 @@ Condition LCodeGen::EmitTypeofIs(LTypeofIsAndBranch* instr, Register input) { |
final_branch_condition = equal; |
} else if (String::Equals(type_name, factory()->undefined_string())) { |
- __ cmp(input, factory()->undefined_value()); |
- __ j(equal, true_label, true_distance); |
+ __ cmp(input, factory()->null_value()); |
+ __ j(equal, false_label, false_distance); |
__ JumpIfSmi(input, false_label, false_distance); |
// Check for undetectable objects => true. |
__ mov(input, FieldOperand(input, HeapObject::kMapOffset)); |