Index: runtime/vm/ast_printer.cc |
diff --git a/runtime/vm/ast_printer.cc b/runtime/vm/ast_printer.cc |
index 4877eac3266d9dc54af13435c655b5caaf3731ed..16b9468d6eb77071f2a9262f3d2ae2b4ded46c49 100644 |
--- a/runtime/vm/ast_printer.cc |
+++ b/runtime/vm/ast_printer.cc |
@@ -506,7 +506,7 @@ void AstPrinter::PrintLocalScope(const LocalScope* scope, |
void AstPrinter::PrintFunctionScope(const ParsedFunction& parsed_function) { |
- HANDLESCOPE(Isolate::Current()); |
+ HANDLESCOPE(parsed_function.thread()); |
const Function& function = parsed_function.function(); |
SequenceNode* node_sequence = parsed_function.node_sequence(); |
ASSERT(node_sequence != NULL); |
@@ -558,7 +558,7 @@ void AstPrinter::PrintFunctionScope(const ParsedFunction& parsed_function) { |
void AstPrinter::PrintFunctionNodes(const ParsedFunction& parsed_function) { |
- HANDLESCOPE(Isolate::Current()); |
+ HANDLESCOPE(parsed_function.thread()); |
SequenceNode* node_sequence = parsed_function.node_sequence(); |
ASSERT(node_sequence != NULL); |
AstPrinter ast_printer; |