Index: src/runtime/runtime-strings.cc |
diff --git a/src/runtime/runtime-strings.cc b/src/runtime/runtime-strings.cc |
index 8d245a509f2aeaa799129c72067994d3579041c3..82174e96bc36bddae7a5e8e406966bff79c1edcc 100644 |
--- a/src/runtime/runtime-strings.cc |
+++ b/src/runtime/runtime-strings.cc |
@@ -1182,6 +1182,14 @@ RUNTIME_FUNCTION(Runtime_StringEquals) { |
} |
+RUNTIME_FUNCTION(Runtime_FlattenString) { |
+ HandleScope scope(isolate); |
+ DCHECK(args.length() == 1); |
+ CONVERT_ARG_HANDLE_CHECKED(String, str, 0); |
+ return *String::Flatten(str); |
+} |
+ |
+ |
RUNTIME_FUNCTION(RuntimeReference_StringCharFromCode) { |
SealHandleScope shs(isolate); |
return __RT_impl_Runtime_CharFromCode(args, isolate); |