| Index: src/arm/code-stubs-arm.cc
|
| diff --git a/src/arm/code-stubs-arm.cc b/src/arm/code-stubs-arm.cc
|
| index f0fb38fe51094995fcb9987851375e1316214b9c..e981df7e6a9112a9f817d71a7c9873f72494bb75 100644
|
| --- a/src/arm/code-stubs-arm.cc
|
| +++ b/src/arm/code-stubs-arm.cc
|
| @@ -486,7 +486,7 @@ static void EmitCheckForInternalizedStringsOrObjects(MacroAssembler* masm,
|
| (lhs.is(r1) && rhs.is(r0)));
|
|
|
| // r2 is object type of rhs.
|
| - Label object_test, return_unequal, undetectable;
|
| + Label object_test, return_equal, return_unequal, undetectable;
|
| STATIC_ASSERT(kInternalizedTag == 0 && kStringTag == 0);
|
| __ tst(r2, Operand(kIsNotStringMask));
|
| __ b(ne, &object_test);
|
| @@ -524,6 +524,16 @@ static void EmitCheckForInternalizedStringsOrObjects(MacroAssembler* masm,
|
| __ bind(&undetectable);
|
| __ tst(r5, Operand(1 << Map::kIsUndetectable));
|
| __ b(eq, &return_unequal);
|
| +
|
| + // If both sides are JSReceivers, then the result is false according to
|
| + // the HTML specification, which says that only comparisons with null or
|
| + // undefined are affected by special casing for document.all.
|
| + __ CompareInstanceType(r2, r2, ODDBALL_TYPE);
|
| + __ b(eq, &return_equal);
|
| + __ CompareInstanceType(r3, r3, ODDBALL_TYPE);
|
| + __ b(ne, &return_unequal);
|
| +
|
| + __ bind(&return_equal);
|
| __ mov(r0, Operand(EQUAL));
|
| __ Ret();
|
| }
|
|
|