Index: runtime/vm/intrinsifier_x64.cc |
diff --git a/runtime/vm/intrinsifier_x64.cc b/runtime/vm/intrinsifier_x64.cc |
index 9a5baf3e75234e54c7c6cfd8a4e11481eb4174ba..c39f2c720bd1222fab28bc63ed670a00f8e03140 100644 |
--- a/runtime/vm/intrinsifier_x64.cc |
+++ b/runtime/vm/intrinsifier_x64.cc |
@@ -1782,7 +1782,7 @@ void Intrinsifier::OneByteString_substringUnchecked(Assembler* assembler) { |
const intptr_t kStartIndexOffset = 2 * kWordSize; |
const intptr_t kEndIndexOffset = 1 * kWordSize; |
Label fall_through, ok; |
- __ movq(RSI, Address(RSP, + kEndIndexOffset)); |
+ __ movq(RSI, Address(RSP, + kStartIndexOffset)); |
__ movq(RDI, Address(RSP, + kEndIndexOffset)); |
__ orq(RSI, RDI); |
__ testq(RSI, Immediate(kSmiTagMask)); |