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

Side by Side Diff: runtime/vm/isolate.cc

Issue 1348383002: Fix compiler stats (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 3 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 unified diff | Download patch
« no previous file with comments | « runtime/vm/compiler_stats.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "vm/isolate.h" 5 #include "vm/isolate.h"
6 6
7 #include "include/dart_api.h" 7 #include "include/dart_api.h"
8 #include "include/dart_native_api.h" 8 #include "include/dart_native_api.h"
9 #include "platform/assert.h" 9 #include "platform/assert.h"
10 #include "platform/json.h" 10 #include "platform/json.h"
(...skipping 1478 matching lines...) Expand 10 before | Expand all | Expand 10 after
1489 1489
1490 1490
1491 void Isolate::LowLevelShutdown() { 1491 void Isolate::LowLevelShutdown() {
1492 // Ensure we have a zone and handle scope so that we can call VM functions, 1492 // Ensure we have a zone and handle scope so that we can call VM functions,
1493 // but we no longer allocate new heap objects. 1493 // but we no longer allocate new heap objects.
1494 Thread* thread = Thread::Current(); 1494 Thread* thread = Thread::Current();
1495 StackZone stack_zone(thread); 1495 StackZone stack_zone(thread);
1496 HandleScope handle_scope(thread); 1496 HandleScope handle_scope(thread);
1497 NoSafepointScope no_safepoint_scope; 1497 NoSafepointScope no_safepoint_scope;
1498 1498
1499 if (FLAG_compiler_stats) { 1499 if (FLAG_compiler_stats
1500 && !ServiceIsolate::IsServiceIsolate(this)
1501 && (this != Dart::vm_isolate())) {
1500 OS::Print("%s", compiler_stats()->PrintToZone()); 1502 OS::Print("%s", compiler_stats()->PrintToZone());
1501 } 1503 }
1502 1504
1503 // Notify exit listeners that this isolate is shutting down. 1505 // Notify exit listeners that this isolate is shutting down.
1504 if (object_store() != NULL) { 1506 if (object_store() != NULL) {
1505 NotifyExitListeners(); 1507 NotifyExitListeners();
1506 } 1508 }
1507 1509
1508 // Clean up debugger resources. 1510 // Clean up debugger resources.
1509 debugger()->Shutdown(); 1511 debugger()->Shutdown();
(...skipping 980 matching lines...) Expand 10 before | Expand all | Expand 10 after
2490 serialized_message_, serialized_message_len_); 2492 serialized_message_, serialized_message_len_);
2491 } 2493 }
2492 2494
2493 2495
2494 void IsolateSpawnState::Cleanup() { 2496 void IsolateSpawnState::Cleanup() {
2495 SwitchIsolateScope switch_scope(I); 2497 SwitchIsolateScope switch_scope(I);
2496 Dart::ShutdownIsolate(); 2498 Dart::ShutdownIsolate();
2497 } 2499 }
2498 2500
2499 } // namespace dart 2501 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/compiler_stats.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698