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

Unified Diff: runtime/vm/ast_printer.cc

Issue 1310463005: - Ensure that HandleScope is initialized with a thread. (Remove (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Address review comments Created 5 years, 4 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 | « runtime/lib/mirrors.cc ('k') | runtime/vm/benchmark_test.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « runtime/lib/mirrors.cc ('k') | runtime/vm/benchmark_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698