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

Unified Diff: runtime/vm/parser.cc

Issue 293963008: Make compilation VM tags more fine grained (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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 4e6182335fe4a3185e5f1996f927567ef31e0ed8..ac4d44e0edffd9dbbff2fbbf3e7153a5a1fd9be3 100644
--- a/runtime/vm/parser.cc
+++ b/runtime/vm/parser.cc
@@ -381,7 +381,7 @@ void Parser::ParseCompilationUnit(const Library& library,
Isolate* isolate = Isolate::Current();
ASSERT(isolate->long_jump_base()->IsSafeToJump());
TimerScope timer(FLAG_compiler_stats, &CompilerStats::parser_timer);
- VMTagScope tagScope(isolate, VMTag::kCompileTagId);
+ VMTagScope tagScope(isolate, VMTag::kCompileTopLevelTagId);
Parser parser(script, library, 0);
parser.ParseTopLevel();
}
@@ -730,7 +730,7 @@ static bool HasReturnNode(SequenceNode* seq) {
void Parser::ParseClass(const Class& cls) {
if (!cls.is_synthesized_class()) {
Isolate* isolate = Isolate::Current();
- VMTagScope tagScope(isolate, VMTag::kCompileTagId);
+ VMTagScope tagScope(isolate, VMTag::kCompileTopLevelTagId);
TimerScope timer(FLAG_compiler_stats, &CompilerStats::parser_timer);
ASSERT(isolate->long_jump_base()->IsSafeToJump());
const Script& script = Script::Handle(isolate, cls.script());
@@ -789,7 +789,7 @@ RawObject* Parser::ParseFunctionParameters(const Function& func) {
void Parser::ParseFunction(ParsedFunction* parsed_function) {
Isolate* isolate = Isolate::Current();
- VMTagScope tagScope(isolate, VMTag::kCompileTagId);
+ VMTagScope tagScope(isolate, VMTag::kCompileTopLevelTagId);
TimerScope timer(FLAG_compiler_stats, &CompilerStats::parser_timer);
CompilerStats::num_functions_compiled++;
ASSERT(isolate->long_jump_base()->IsSafeToJump());
« runtime/vm/object.cc ('K') | « runtime/vm/object.cc ('k') | runtime/vm/scanner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698