Index: runtime/vm/regexp_test.cc |
diff --git a/runtime/vm/regexp_test.cc b/runtime/vm/regexp_test.cc |
index e7c5ba89054236554d8bd32401d7cb11752435b5..3948f6457cf0e3ccd0d60326b16f09391d8c0345 100644 |
--- a/runtime/vm/regexp_test.cc |
+++ b/runtime/vm/regexp_test.cc |
@@ -13,9 +13,10 @@ |
namespace dart { |
static RawArray* Match(const String& pat, const String& str) { |
- Zone* zone = Thread::Current()->zone(); |
+ Thread* thread = Thread::Current(); |
+ Zone* zone = thread->zone(); |
const RegExp& regexp = RegExp::Handle( |
- RegExpEngine::CreateRegExp(zone, pat, false, false)); |
+ RegExpEngine::CreateRegExp(thread, pat, false, false)); |
const Smi& idx = Smi::Handle(Smi::New(0)); |
return IRRegExpMacroAssembler::Execute(regexp, str, idx, zone); |
} |