Index: src/builtins/builtins-regexp.cc |
diff --git a/src/builtins/builtins-regexp.cc b/src/builtins/builtins-regexp.cc |
index a877c6b94b4082ebbb0d1eda136d79174d0603e0..10dff90dcd0d5cde4f6cd26d635447a81ad7154f 100644 |
--- a/src/builtins/builtins-regexp.cc |
+++ b/src/builtins/builtins-regexp.cc |
@@ -293,7 +293,8 @@ |
a->AllocateRegExpResult(context, num_results, start, string); |
Node* const result_elements = a->LoadElements(result); |
- a->StoreFixedArrayElement(result_elements, 0, first, SKIP_WRITE_BARRIER); |
+ a->StoreFixedArrayElement(result_elements, a->IntPtrConstant(0), first, |
+ SKIP_WRITE_BARRIER); |
a->GotoIf(a->SmiEqual(num_results, a->SmiConstant(Smi::FromInt(1))), &out); |
@@ -1845,7 +1846,7 @@ |
Node* const replacement_str = a->ToString(context, replacement_obj); |
a->StoreFixedArrayElement(res_elems, index, replacement_str, |
- UPDATE_WRITE_BARRIER, 0, mode); |
+ UPDATE_WRITE_BARRIER, mode); |
a->Goto(&do_continue); |
a->Bind(&do_continue); |