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

Unified Diff: runtime/vm/parser.cc

Issue 1841213003: Move CompilerStats from isolate to thread. Aggregate stats. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: review comments addressed Created 4 years, 9 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/vm/isolate.cc ('k') | runtime/vm/thread.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/parser.cc
diff --git a/runtime/vm/parser.cc b/runtime/vm/parser.cc
index 3e89badc93c04addb1777957561dbd15b1a2e474..8eb3d515abfffe158757b339f49a04ddeb28102e 100644
--- a/runtime/vm/parser.cc
+++ b/runtime/vm/parser.cc
@@ -12019,7 +12019,7 @@ void Parser::CacheConstantValue(TokenPosition token_pos,
ConstantsMap constants(isolate()->object_store()->compile_time_constants());
constants.InsertNewOrGetValue(key, value);
if (FLAG_compiler_stats) {
- isolate_->compiler_stats()->num_cached_consts = constants.NumOccupied();
+ thread_->compiler_stats()->num_cached_consts = constants.NumOccupied();
}
isolate()->object_store()->set_compile_time_constants(constants.Release());
}
@@ -12038,7 +12038,7 @@ bool Parser::GetCachedConstant(TokenPosition token_pos, Instance* value) {
// do not assert that 'compile_time_constants' has not changed.
constants.Release();
if (FLAG_compiler_stats && is_present) {
- isolate_->compiler_stats()->num_const_cache_hits++;
+ thread_->compiler_stats()->num_const_cache_hits++;
}
return is_present;
}
« no previous file with comments | « runtime/vm/isolate.cc ('k') | runtime/vm/thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698