| Index: runtime/vm/regexp.cc
|
| diff --git a/runtime/vm/regexp.cc b/runtime/vm/regexp.cc
|
| index 93e4997fc548edce12b6b28d04f6966f5a215281..a5d4fece801efed3927f35a1ae7e785686a6e889 100644
|
| --- a/runtime/vm/regexp.cc
|
| +++ b/runtime/vm/regexp.cc
|
| @@ -5102,7 +5102,12 @@ static void CreateSpecializedFunction(Isolate* isolate,
|
| const intptr_t kParamCount = RegExpMacroAssembler::kParamCount;
|
|
|
| Function& fn = Function::Handle(isolate, Function::New(
|
| - Symbols::IrregExp(),
|
| + // Append the regexp pattern to the function name.
|
| + String::Handle(isolate, String::Concat(
|
| + String::Handle(isolate, String::Concat(
|
| + Symbols::Irregexp(),
|
| + Symbols::ColonSpace(), Heap::kOld)),
|
| + String::Handle(regexp.pattern()), Heap::kOld)),
|
| RawFunction::kIrregexpFunction,
|
| true, // Static.
|
| false, // Not const.
|
|
|