Index: src/code-stub-assembler.cc |
diff --git a/src/code-stub-assembler.cc b/src/code-stub-assembler.cc |
index a656a963c64c4096559ff1d867481f99dff0a6aa..633bc1259fb9781cde7719108775ce8763c33a71 100644 |
--- a/src/code-stub-assembler.cc |
+++ b/src/code-stub-assembler.cc |
@@ -609,7 +609,7 @@ Node* CodeStubAssembler::AllocateSeqOneByteString(int length) { |
StoreMapNoWriteBarrier(result, LoadRoot(Heap::kOneByteStringMapRootIndex)); |
StoreObjectFieldNoWriteBarrier(result, SeqOneByteString::kLengthOffset, |
SmiConstant(Smi::FromInt(length))); |
- StoreObjectFieldNoWriteBarrier(result, SeqOneByteString::kHashFieldOffset, |
+ StoreObjectFieldNoWriteBarrier(result, SeqOneByteString::kHashFieldSlot, |
IntPtrConstant(String::kEmptyHashField)); |
return result; |
} |
@@ -619,7 +619,7 @@ Node* CodeStubAssembler::AllocateSeqTwoByteString(int length) { |
StoreMapNoWriteBarrier(result, LoadRoot(Heap::kStringMapRootIndex)); |
StoreObjectFieldNoWriteBarrier(result, SeqTwoByteString::kLengthOffset, |
SmiConstant(Smi::FromInt(length))); |
- StoreObjectFieldNoWriteBarrier(result, SeqTwoByteString::kHashFieldOffset, |
+ StoreObjectFieldNoWriteBarrier(result, SeqTwoByteString::kHashFieldSlot, |
IntPtrConstant(String::kEmptyHashField)); |
return result; |
} |