Index: src/ia32/codegen-ia32.cc |
diff --git a/src/ia32/codegen-ia32.cc b/src/ia32/codegen-ia32.cc |
index 0e2cc01949d6ba6741600b61f58cf2245efc2e5b..0e3a08aa74a906931f10750fda7e62c3bdd2ab61 100644 |
--- a/src/ia32/codegen-ia32.cc |
+++ b/src/ia32/codegen-ia32.cc |
@@ -9968,7 +9968,8 @@ void SubStringStub::Generate(MacroAssembler* masm) { |
Immediate(SeqTwoByteString::kHeaderSize - kHeapObjectTag)); |
// Load string argument and locate character of sub string start. |
__ mov(esi, Operand(esp, 3 * kPointerSize)); |
- __ add(Operand(esi), Immediate(SeqAsciiString::kHeaderSize - kHeapObjectTag)); |
+ __ add(Operand(esi), |
+ Immediate(SeqTwoByteString::kHeaderSize - kHeapObjectTag)); |
__ mov(ebx, Operand(esp, 2 * kPointerSize)); // from |
// As from is a smi it is 2 times the value which matches the size of a two |
// byte character. |