Index: src/json-stringifier.h |
diff --git a/src/json-stringifier.h b/src/json-stringifier.h |
index c85f0b96d81a473a802d40c3253fec8b5d4bfca2..dcb5cc549645b5c9ba5c5953bf0817f1865af81c 100644 |
--- a/src/json-stringifier.h |
+++ b/src/json-stringifier.h |
@@ -305,7 +305,7 @@ MaybeObject* BasicJsonStringifier::StringifyString(Isolate* isolate, |
return stringifier.Stringify(object); |
} |
- FlattenString(object); |
+ object = String::Flatten(object); |
ASSERT(object->IsFlat()); |
if (object->IsOneByteRepresentationUnderneath()) { |
Handle<String> result = isolate->factory()->NewRawOneByteString( |
@@ -873,7 +873,7 @@ Vector<const uc16> BasicJsonStringifier::GetCharVector(Handle<String> string) { |
void BasicJsonStringifier::SerializeString(Handle<String> object) { |
- object = FlattenGetString(object); |
+ object = String::Flatten(object); |
if (is_ascii_) { |
if (object->IsOneByteRepresentationUnderneath()) { |
SerializeString_<true, uint8_t>(object); |