Index: src/x87/code-stubs-x87.cc |
diff --git a/src/x87/code-stubs-x87.cc b/src/x87/code-stubs-x87.cc |
index 690c3700c47bc300f534941663b386b90a287ebb..946eda2a3a62f3d6d78f5d8838cacf1eff0a56ec 100644 |
--- a/src/x87/code-stubs-x87.cc |
+++ b/src/x87/code-stubs-x87.cc |
@@ -382,8 +382,6 @@ void LoadIndexedStringStub::Generate(MacroAssembler* masm) { |
Register result = eax; |
DCHECK(!result.is(scratch)); |
- // TODO(mvstanton): the generator doesn't need to verify that |
- // receiver is a string map, that is done outside the handler. |
StringCharAtGenerator char_at_generator(receiver, index, scratch, result, |
&miss, // When not a string. |
&miss, // When not a number. |
@@ -2848,8 +2846,9 @@ void SubStringStub::Generate(MacroAssembler* masm) { |
// ebx: instance type |
// ecx: sub string length (smi) |
// edx: from index (smi) |
- StringCharAtGenerator generator( |
- eax, edx, ecx, eax, &runtime, &runtime, &runtime, STRING_INDEX_IS_NUMBER); |
+ StringCharAtGenerator generator(eax, edx, ecx, eax, &runtime, &runtime, |
+ &runtime, STRING_INDEX_IS_NUMBER, |
+ RECEIVER_IS_STRING); |
generator.GenerateFast(masm); |
__ ret(3 * kPointerSize); |
generator.SkipSlow(masm, &runtime); |