Index: src/ia32/ic-ia32.cc |
diff --git a/src/ia32/ic-ia32.cc b/src/ia32/ic-ia32.cc |
index 2e270979f26ec6f4db8cbae6542d7b848c470ef2..10d6c863ca726db13bfcbb38d508ab0d894f8cc0 100644 |
--- a/src/ia32/ic-ia32.cc |
+++ b/src/ia32/ic-ia32.cc |
@@ -317,7 +317,8 @@ static void GenerateKeyNameCheck(MacroAssembler* masm, |
__ test(hash, Immediate(Name::kContainsCachedArrayIndexMask)); |
__ j(zero, index_string); |
- // Is the string internalized? |
+ // Is the string internalized? We already know it's a string so a single |
+ // bit test is enough. |
STATIC_ASSERT(kInternalizedTag != 0); |
__ test_b(FieldOperand(map, Map::kInstanceTypeOffset), kIsInternalizedMask); |
__ j(zero, not_unique); |