Chromium Code Reviews

Unified Diff: src/builtins/builtins-regexp.cc

Issue 2407813002: [stubs] Port StringAddStub to TF (Closed)
Patch Set: Remove printf Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: src/builtins/builtins-regexp.cc
diff --git a/src/builtins/builtins-regexp.cc b/src/builtins/builtins-regexp.cc
index 4996721addd2fd433f0ee7ec131da1e98de60338..70e712e3e320fafab234362c5def4453729ac4a1 100644
--- a/src/builtins/builtins-regexp.cc
+++ b/src/builtins/builtins-regexp.cc
@@ -1530,7 +1530,7 @@ compiler::Node* ReplaceFastPath(CodeStubAssembler* a, compiler::Node* context,
Node* const second_part =
a->SubString(context, subject_string, match_end, subject_end);
- Node* const result = a->StringConcat(context, first_part, second_part);
+ Node* const result = a->StringAdd(context, first_part, second_part);
var_result.Bind(result);
a->Goto(&out);
}
@@ -1543,8 +1543,8 @@ compiler::Node* ReplaceFastPath(CodeStubAssembler* a, compiler::Node* context,
Node* const third_part =
a->SubString(context, subject_string, match_end, subject_end);
- Node* result = a->StringConcat(context, first_part, second_part);
- result = a->StringConcat(context, result, third_part);
+ Node* result = a->StringAdd(context, first_part, second_part);
+ result = a->StringAdd(context, result, third_part);
var_result.Bind(result);
a->Goto(&out);

Powered by Google App Engine