| 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 9e2caf1fea0eef5c367b174661b26cb9b45e1764..90daaa4c86c659acc285546ba2b4625187400be7 100644
|
| --- a/src/full-codegen/mips64/full-codegen-mips64.cc
|
| +++ b/src/full-codegen/mips64/full-codegen-mips64.cc
|
| @@ -527,7 +527,7 @@ void FullCodeGenerator::TestContext::Plug(Handle<Object> lit) const {
|
| true,
|
| true_label_,
|
| false_label_);
|
| - DCHECK(!lit->IsUndetectableObject()); // There are no undetectable literals.
|
| + DCHECK(lit->IsNull() || lit->IsUndefined() || !lit->IsUndetectableObject());
|
| if (lit->IsUndefined() || lit->IsNull() || lit->IsFalse()) {
|
| if (false_label_ != fall_through_) __ Branch(false_label_);
|
| } else if (lit->IsTrue() || lit->IsJSObject()) {
|
| @@ -4312,8 +4312,8 @@ void FullCodeGenerator::EmitLiteralCompareTypeof(Expression* expr,
|
| __ LoadRoot(at, Heap::kFalseValueRootIndex);
|
| Split(eq, v0, Operand(at), if_true, if_false, fall_through);
|
| } else if (String::Equals(check, factory->undefined_string())) {
|
| - __ LoadRoot(at, Heap::kUndefinedValueRootIndex);
|
| - __ Branch(if_true, eq, v0, Operand(at));
|
| + __ LoadRoot(at, Heap::kNullValueRootIndex);
|
| + __ Branch(if_false, eq, v0, Operand(at));
|
| __ JumpIfSmi(v0, if_false);
|
| // Check for undetectable objects => true.
|
| __ ld(v0, FieldMemOperand(v0, HeapObject::kMapOffset));
|
|
|