Index: src/builtins/builtins-regexp.cc |
diff --git a/src/builtins/builtins-regexp.cc b/src/builtins/builtins-regexp.cc |
index 5f62efabfe6830f15737139f4a652a86ec3a2c9b..d720bbed011dd2e67f8be57550b6b9f518f832f9 100644 |
--- a/src/builtins/builtins-regexp.cc |
+++ b/src/builtins/builtins-regexp.cc |
@@ -92,9 +92,6 @@ compiler::Node* ConstructNewResultFromMatchInfo(Isolate* isolate, |
Label out(a); |
- Callable constructresult_callable = |
- CodeFactory::RegExpConstructResult(isolate); |
- |
CodeStubAssembler::ParameterMode mode = CodeStubAssembler::INTPTR_PARAMETERS; |
Node* const num_indices = a->SmiUntag(a->LoadFixedArrayElement( |
match_elements, a->IntPtrConstant(RegExpImpl::kLastCaptureCount), 0, |
@@ -110,8 +107,8 @@ compiler::Node* ConstructNewResultFromMatchInfo(Isolate* isolate, |
// to avoid an unnecessary write barrier storing the first result. |
Node* const first = a->SubString(context, string, start, end); |
- Node* const result = a->CallStub(constructresult_callable, context, |
- num_results, start, string); |
+ Node* const result = |
+ a->AllocateRegExpResult(context, num_results, start, string); |
Node* const result_elements = a->LoadElements(result); |
a->StoreFixedArrayElement(result_elements, a->IntPtrConstant(0), first, |