Index: src/builtins/builtins-string.cc |
diff --git a/src/builtins/builtins-string.cc b/src/builtins/builtins-string.cc |
index dddd32a8cd04a1c78ccf6a159e91df86d343f1e1..e9dd140d3c7a4552fffe9bbf8ca981e1d7cbabdc 100644 |
--- a/src/builtins/builtins-string.cc |
+++ b/src/builtins/builtins-string.cc |
@@ -1197,8 +1197,9 @@ TF_BUILTIN(StringPrototypeReplace, StringBuiltinsAssembler) { |
// slices works only when the replaced string is a single character, being |
// replaced by a simple string and only pays off for long strings. |
// TODO(jgruber): Reevaluate if this is still beneficial. |
- TailCallRuntime(Runtime::kStringReplaceOneCharWithString, context, |
- subject_string, search_string, replace); |
+ // TODO(jgruber): TailCallRuntime when it correctly handles adapter frames. |
+ Return(CallRuntime(Runtime::kStringReplaceOneCharWithString, context, |
+ subject_string, search_string, replace)); |
Bind(&next); |
} |