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

Unified Diff: runtime/vm/compiler.cc

Issue 1850693004: Fix product run (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: 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 | « no previous file | runtime/vm/compiler_stats.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/compiler.cc
diff --git a/runtime/vm/compiler.cc b/runtime/vm/compiler.cc
index 890338473ae1edbc84c50300a17a9713e9664926..64874fcc4d5fc30fa9244ca1142364d1da858bd9 100644
--- a/runtime/vm/compiler.cc
+++ b/runtime/vm/compiler.cc
@@ -1675,7 +1675,6 @@ void BackgroundCompiler::Run() {
ASSERT(result);
{
Thread* thread = Thread::Current();
- Isolate* isolate = thread->isolate();
StackZone stack_zone(thread);
Zone* zone = stack_zone.GetZone();
HANDLESCOPE(thread);
@@ -1693,11 +1692,14 @@ void BackgroundCompiler::Run() {
// unoptimized code. Any issues while optimizing are flagged by
// making the result invalid.
ASSERT(error.IsNull());
+#ifndef PRODUCT
+ Isolate* isolate = thread->isolate();
// We cannot aggregate stats if isolate is shutting down.
if (isolate->HasMutatorThread()) {
isolate->aggregate_compiler_stats()->Add(*thread->compiler_stats());
}
thread->compiler_stats()->Clear();
+#endif // PRODUCT
QueueElement* qelem = function_queue()->Remove();
delete qelem;
function = function_queue()->PeekFunction();
« no previous file with comments | « no previous file | runtime/vm/compiler_stats.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698