Index: runtime/vm/regexp_parser.cc |
diff --git a/runtime/vm/regexp_parser.cc b/runtime/vm/regexp_parser.cc |
index 716afa46427e0ddff9d81db29ec69db73996d6bd..b24e8ca462ad8abdbc436922df755501987f73dc 100644 |
--- a/runtime/vm/regexp_parser.cc |
+++ b/runtime/vm/regexp_parser.cc |
@@ -217,7 +217,7 @@ RegExpParser::RegExpParser(const String& in, |
bool RegExpParser::ParseFunction(ParsedFunction *parsed_function) { |
- VMTagScope tagScope(Thread::Current()->isolate(), |
+ VMTagScope tagScope(parsed_function->thread(), |
VMTag::kCompileParseRegExpTagId); |
Zone* zone = parsed_function->zone(); |
JSRegExp& regexp = JSRegExp::Handle(parsed_function->function().regexp()); |