Index: src/handles.cc |
diff --git a/src/handles.cc b/src/handles.cc |
index c90365c31acd8795e1ba3d025e299a3f9cc97cd1..f2adab75678db36f383ca725578ed2f23039717f 100644 |
--- a/src/handles.cc |
+++ b/src/handles.cc |
@@ -197,7 +197,17 @@ void TransformToFastProperties(Handle<JSObject> object, |
void FlattenString(Handle<String> string) { |
CALL_HEAP_FUNCTION_VOID(string->TryFlatten()); |
+} |
+ |
+ |
+Handle<String> FlattenGetString(Handle<String> string) { |
+ Handle<String> result; |
+ CALL_AND_RETRY(string->TryFlatten(), |
+ { result = Handle<String>(String::cast(__object__)); |
+ break; }, |
+ return Handle<String>()); |
ASSERT(string->IsFlat()); |
+ return result; |
} |