Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(196)

Unified Diff: runtime/vm/regexp.cc

Issue 831423006: Append the regexp pattern to the name of the generated irregexp function. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: handle Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | runtime/vm/symbols.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
« no previous file with comments | « no previous file | runtime/vm/symbols.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698