Index: src/crankshaft/mips64/lithium-codegen-mips64.cc |
diff --git a/src/crankshaft/mips64/lithium-codegen-mips64.cc b/src/crankshaft/mips64/lithium-codegen-mips64.cc |
index 26c368e1794db66246ab7defe17ab65ba54c1a66..d079364081eb787575ef444edd54e3f4fb8b82e3 100644 |
--- a/src/crankshaft/mips64/lithium-codegen-mips64.cc |
+++ b/src/crankshaft/mips64/lithium-codegen-mips64.cc |
@@ -5457,8 +5457,8 @@ Condition LCodeGen::EmitTypeofIs(Label* true_label, |
final_branch_condition = eq; |
} else if (String::Equals(type_name, factory->undefined_string())) { |
- __ LoadRoot(at, Heap::kUndefinedValueRootIndex); |
- __ Branch(USE_DELAY_SLOT, true_label, eq, at, Operand(input)); |
+ __ LoadRoot(at, Heap::kNullValueRootIndex); |
+ __ Branch(USE_DELAY_SLOT, false_label, eq, at, Operand(input)); |
// The first instruction of JumpIfSmi is an And - it is safe in the delay |
// slot. |
__ JumpIfSmi(input, false_label); |