Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(465)

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

Issue 2407813002: [stubs] Port StringAddStub to TF (Closed)
Patch Set: Make ASSERT cheaper Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/builtins/builtins-conversion.cc ('k') | src/code-stub-assembler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « src/builtins/builtins-conversion.cc ('k') | src/code-stub-assembler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698