Index: src/builtins/builtins-regexp.cc |
diff --git a/src/builtins/builtins-regexp.cc b/src/builtins/builtins-regexp.cc |
index eba57aa0168a92b9a223ef4ec60b5d9c43a78bb1..4770d6f445eb24a44673ec5fd894c8478cde897a 100644 |
--- a/src/builtins/builtins-regexp.cc |
+++ b/src/builtins/builtins-regexp.cc |
@@ -2245,7 +2245,7 @@ Node* RegExpBuiltinsAssembler::ReplaceGlobalCallableFastPath( |
const int increment = 1; |
BuildFastLoop( |
- MachineType::PointerRepresentation(), from, to, |
+ from, to, |
[this, res_elems, isolate, native_context, context, undefined, |
replace_callable](Node* index) { |
Node* const elem = LoadFixedArrayElement(res_elems, index); |
@@ -2276,7 +2276,8 @@ Node* RegExpBuiltinsAssembler::ReplaceGlobalCallableFastPath( |
Goto(&do_continue); |
Bind(&do_continue); |
}, |
- increment, CodeStubAssembler::IndexAdvanceMode::kPost); |
+ increment, CodeStubAssembler::INTPTR_PARAMETERS, |
+ CodeStubAssembler::IndexAdvanceMode::kPost); |
Goto(&create_result); |
} |