Index: src/full-codegen/mips64/full-codegen-mips64.cc |
diff --git a/src/full-codegen/mips64/full-codegen-mips64.cc b/src/full-codegen/mips64/full-codegen-mips64.cc |
index e3c30c1bafa77a6178b5d7c2779564b60b16a479..334b28be8e5b78ab4852210f951a903929be0913 100644 |
--- a/src/full-codegen/mips64/full-codegen-mips64.cc |
+++ b/src/full-codegen/mips64/full-codegen-mips64.cc |
@@ -4011,18 +4011,18 @@ void FullCodeGenerator::EmitLiteralCompareNil(CompareOperation* expr, |
VisitForAccumulatorValue(sub_expr); |
PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); |
- __ mov(a0, result_register()); |
if (expr->op() == Token::EQ_STRICT) { |
Heap::RootListIndex nil_value = nil == kNullValue ? |
Heap::kNullValueRootIndex : |
Heap::kUndefinedValueRootIndex; |
__ LoadRoot(a1, nil_value); |
- Split(eq, a0, Operand(a1), if_true, if_false, fall_through); |
- } else { |
- Handle<Code> ic = CompareNilICStub::GetUninitialized(isolate(), nil); |
- CallIC(ic, expr->CompareOperationFeedbackId()); |
- __ LoadRoot(a1, Heap::kTrueValueRootIndex); |
Split(eq, v0, Operand(a1), if_true, if_false, fall_through); |
+ } else { |
+ __ JumpIfSmi(v0, if_false); |
+ __ ld(v0, FieldMemOperand(v0, HeapObject::kMapOffset)); |
+ __ lbu(a1, FieldMemOperand(v0, Map::kBitFieldOffset)); |
+ __ And(a1, a1, Operand(1 << Map::kIsUndetectable)); |
+ Split(ne, a1, Operand(zero_reg), if_true, if_false, fall_through); |
} |
context()->Plug(if_true, if_false); |
} |