| Index: runtime/vm/regexp_assembler.cc
|
| diff --git a/runtime/vm/regexp_assembler.cc b/runtime/vm/regexp_assembler.cc
|
| index c1d5d510c17feadd078f3c8764db29dc8292abab..4a2fed2b7f93b2dd3b80b529a14357286c94a715 100644
|
| --- a/runtime/vm/regexp_assembler.cc
|
| +++ b/runtime/vm/regexp_assembler.cc
|
| @@ -199,7 +199,11 @@ void IRRegExpMacroAssembler::GenerateEntryBlock() {
|
| // Generate a local list variable to represent the backtracking stack.
|
| StoreLocal(stack_, Bind(new(I) ConstantInstr(stack_array_)));
|
| PushArgumentInstr* stack_push = PushLocal(stack_);
|
| - Do(InstanceCall(InstanceCallDescriptor(Symbols::clear()), stack_push));
|
| + PushArgumentInstr* zero_push = PushArgument(Bind(Uint64Constant(0)));
|
| + Do(InstanceCall(InstanceCallDescriptor(
|
| + Library::PrivateCoreLibName(Symbols::_setLength())),
|
| + stack_push,
|
| + zero_push));
|
|
|
| // Jump to the start block.
|
| current_instruction_->Goto(start_block_);
|
|
|