Index: src/heap-inl.h |
diff --git a/src/heap-inl.h b/src/heap-inl.h |
index c36a6fd795c0a235066da1013edde6a6d4e072c8..efad2fbf5969cf7604915db269934615e36c3a9a 100644 |
--- a/src/heap-inl.h |
+++ b/src/heap-inl.h |
@@ -137,7 +137,7 @@ MaybeObject* Heap::AllocateInternalizedStringImpl( |
MaybeObject* Heap::AllocateOneByteInternalizedString(Vector<const uint8_t> str, |
uint32_t hash_field) { |
- if (str.length() > SeqOneByteString::kMaxLength) { |
+ if (str.length() > String::kMaxLength) { |
return Failure::OutOfMemoryException(0x2); |
} |
// Compute map and object size. |
@@ -170,7 +170,7 @@ MaybeObject* Heap::AllocateOneByteInternalizedString(Vector<const uint8_t> str, |
MaybeObject* Heap::AllocateTwoByteInternalizedString(Vector<const uc16> str, |
uint32_t hash_field) { |
- if (str.length() > SeqTwoByteString::kMaxLength) { |
+ if (str.length() > String::kMaxLength) { |
return Failure::OutOfMemoryException(0x3); |
} |
// Compute map and object size. |