Index: src/arm/code-stubs-arm.cc |
diff --git a/src/arm/code-stubs-arm.cc b/src/arm/code-stubs-arm.cc |
index f857de692383873a8232939e1df660cc8271f5be..45c0c5f352fcf3a815deb9c3dc97efc6e66c74f7 100644 |
--- a/src/arm/code-stubs-arm.cc |
+++ b/src/arm/code-stubs-arm.cc |
@@ -3167,8 +3167,8 @@ void SubStringStub::Generate(MacroAssembler* masm) { |
// r2: length |
// r3: from index (untagged) |
__ SmiTag(r3, r3); |
- StringCharAtGenerator generator( |
- r0, r3, r2, r0, &runtime, &runtime, &runtime, STRING_INDEX_IS_NUMBER); |
+ StringCharAtGenerator generator(r0, r3, r2, r0, &runtime, &runtime, &runtime, |
+ STRING_INDEX_IS_NUMBER, RECEIVER_IS_STRING); |
generator.GenerateFast(masm); |
__ Drop(3); |
__ Ret(); |