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

Unified Diff: runtime/vm/parser.cc

Issue 1952023002: Minor cleanup based on profiler output of CompileParseFunction. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 7 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
Index: runtime/vm/parser.cc
diff --git a/runtime/vm/parser.cc b/runtime/vm/parser.cc
index ee0c2d98fd0a0ae48d608b063bbfc709b8b25555..1cc59ac84955a31f19b572bd8b5da81ac20a7aa1 100644
--- a/runtime/vm/parser.cc
+++ b/runtime/vm/parser.cc
@@ -364,10 +364,11 @@ void Parser::TryStack::AddNodeForFinallyInlining(AstNode* node) {
Parser::Parser(const Script& script,
const Library& library,
TokenPosition token_pos)
- : isolate_(Thread::Current()->isolate()),
- thread_(Thread::Current()),
+ : thread_(Thread::Current()),
+ isolate_(thread()->isolate()),
script_(Script::Handle(zone(), script.raw())),
- tokens_iterator_(TokenStream::Handle(zone(), script.tokens()),
+ tokens_iterator_(zone(),
+ TokenStream::Handle(zone(), script.tokens()),
token_pos),
token_kind_(Token::kILLEGAL),
current_block_(NULL),
@@ -395,10 +396,11 @@ Parser::Parser(const Script& script,
Parser::Parser(const Script& script,
ParsedFunction* parsed_function,
TokenPosition token_pos)
- : isolate_(Thread::Current()->isolate()),
- thread_(Thread::Current()),
+ : thread_(Thread::Current()),
+ isolate_(thread()->isolate()),
script_(Script::Handle(zone(), script.raw())),
- tokens_iterator_(TokenStream::Handle(zone(), script.tokens()),
+ tokens_iterator_(zone(),
+ TokenStream::Handle(zone(), script.tokens()),
token_pos),
token_kind_(Token::kILLEGAL),
current_block_(NULL),
« no previous file with comments | « runtime/vm/parser.h ('k') | runtime/vm/profiler_service.cc » ('j') | runtime/vm/raw_object.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698