Index: src/objects.cc |
=================================================================== |
--- src/objects.cc (revision 3160) |
+++ src/objects.cc (working copy) |
@@ -839,7 +839,7 @@ |
void String::StringShortPrint(StringStream* accumulator) { |
int len = length(); |
- if (len > kMaxMediumStringSize) { |
+ if (len > kMaxMediumSize) { |
accumulator->Add("<Very long string[%u]>", len); |
return; |
} |
@@ -4660,7 +4660,7 @@ |
uint32_t StringHasher::GetHashField() { |
ASSERT(is_valid()); |
- if (length_ <= String::kMaxShortStringSize) { |
+ if (length_ <= String::kMaxShortSize) { |
uint32_t payload; |
if (is_array_index()) { |
payload = v8::internal::HashField(array_index(), true); |
@@ -4669,7 +4669,7 @@ |
} |
return (payload & ((1 << String::kShortLengthShift) - 1)) | |
(length_ << String::kShortLengthShift); |
- } else if (length_ <= String::kMaxMediumStringSize) { |
+ } else if (length_ <= String::kMaxMediumSize) { |
uint32_t payload = v8::internal::HashField(GetHash(), false); |
return (payload & ((1 << String::kMediumLengthShift) - 1)) | |
(length_ << String::kMediumLengthShift); |