Index: runtime/vm/compiler_stats.cc |
diff --git a/runtime/vm/compiler_stats.cc b/runtime/vm/compiler_stats.cc |
index d23e6f056331357f4955b5bc443438710adf1cbd..d15df5370725d8d49c3972a401655ac20169e799 100644 |
--- a/runtime/vm/compiler_stats.cc |
+++ b/runtime/vm/compiler_stats.cc |
@@ -31,7 +31,8 @@ class TokenStreamVisitor : public ObjectVisitor { |
} |
obj_ = raw_obj; |
if (obj_.GetClassId() == TokenStream::kClassId) { |
- TokenStream::Iterator tkit(TokenStream::Cast(obj_), |
+ TokenStream::Iterator tkit(Thread::Current()->zone(), |
+ TokenStream::Cast(obj_), |
TokenPosition::kMinSource, |
TokenStream::Iterator::kNoNewlines); |
Token::Kind kind = tkit.CurrentTokenKind(); |