Index: src/x87/code-stubs-x87.cc |
diff --git a/src/x87/code-stubs-x87.cc b/src/x87/code-stubs-x87.cc |
index cba6734a6f9ccf4811a6480116d284f9efa6c4da..335837abdf14ccb0226c47d5ca1af9b26a69e2aa 100644 |
--- a/src/x87/code-stubs-x87.cc |
+++ b/src/x87/code-stubs-x87.cc |
@@ -1385,6 +1385,9 @@ void CompareICStub::GenerateGeneric(MacroAssembler* masm) { |
// Call runtime on identical JSObjects. Otherwise return equal. |
__ CmpObjectType(eax, FIRST_SPEC_OBJECT_TYPE, ecx); |
__ j(above_equal, ¬_identical); |
+ // Call runtime on identical symbols since we need to throw a TypeError. |
+ __ CmpObjectType(eax, SYMBOL_TYPE, ecx); |
+ __ j(equal, ¬_identical); |
} |
__ Move(eax, Immediate(Smi::FromInt(EQUAL))); |
__ ret(0); |