Index: src/crankshaft/ppc/lithium-codegen-ppc.cc |
diff --git a/src/crankshaft/ppc/lithium-codegen-ppc.cc b/src/crankshaft/ppc/lithium-codegen-ppc.cc |
index 819e2bb356aba98e927705e5cb0fbc07ee92b7e6..ad19ecb000726d21830dceec48b3e71a54f4879b 100644 |
--- a/src/crankshaft/ppc/lithium-codegen-ppc.cc |
+++ b/src/crankshaft/ppc/lithium-codegen-ppc.cc |
@@ -5478,8 +5478,8 @@ Condition LCodeGen::EmitTypeofIs(Label* true_label, Label* false_label, |
final_branch_condition = eq; |
} else if (String::Equals(type_name, factory->undefined_string())) { |
- __ CompareRoot(input, Heap::kUndefinedValueRootIndex); |
- __ beq(true_label); |
+ __ CompareRoot(input, Heap::kNullValueRootIndex); |
+ __ beq(false_label); |
__ JumpIfSmi(input, false_label); |
// Check for undetectable objects => true. |
__ LoadP(scratch, FieldMemOperand(input, HeapObject::kMapOffset)); |