| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 "platform/assert.h" | 8 #include "platform/assert.h" |
| 9 #include "lib/mirrors.h" | 9 #include "lib/mirrors.h" |
| 10 #include "vm/compiler_stats.h" | 10 #include "vm/compiler_stats.h" |
| (...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 445 if (FLAG_report_usage_count) { | 445 if (FLAG_report_usage_count) { |
| 446 PrintInvokedFunctions(); | 446 PrintInvokedFunctions(); |
| 447 } | 447 } |
| 448 CompilerStats::Print(); | 448 CompilerStats::Print(); |
| 449 if (FLAG_generate_gdb_symbols) { | 449 if (FLAG_generate_gdb_symbols) { |
| 450 DebugInfo::UnregisterAllSections(); | 450 DebugInfo::UnregisterAllSections(); |
| 451 } | 451 } |
| 452 if (FLAG_trace_isolates) { | 452 if (FLAG_trace_isolates) { |
| 453 StackZone zone(this); | 453 StackZone zone(this); |
| 454 HandleScope handle_scope(this); | 454 HandleScope handle_scope(this); |
| 455 OS::Print("Number of symbols added = %"Pd"\n", Symbols::Size(this)); | 455 heap()->PrintSizes(); |
| 456 megamorphic_cache_table()->PrintSizes(); |
| 457 Symbols::DumpStats(); |
| 456 OS::Print("[-] Stopping isolate:\n" | 458 OS::Print("[-] Stopping isolate:\n" |
| 457 "\tisolate: %s\n", name()); | 459 "\tisolate: %s\n", name()); |
| 458 } | 460 } |
| 459 // TODO(5411455): For now just make sure there are no current isolates | 461 // TODO(5411455): For now just make sure there are no current isolates |
| 460 // as we are shutting down the isolate. | 462 // as we are shutting down the isolate. |
| 461 SetCurrent(NULL); | 463 SetCurrent(NULL); |
| 462 } | 464 } |
| 463 | 465 |
| 464 | 466 |
| 465 Dart_IsolateCreateCallback Isolate::create_callback_ = NULL; | 467 Dart_IsolateCreateCallback Isolate::create_callback_ = NULL; |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 517 | 519 |
| 518 | 520 |
| 519 void Isolate::VisitWeakPersistentHandles(HandleVisitor* visitor, | 521 void Isolate::VisitWeakPersistentHandles(HandleVisitor* visitor, |
| 520 bool visit_prologue_weak_handles) { | 522 bool visit_prologue_weak_handles) { |
| 521 if (api_state() != NULL) { | 523 if (api_state() != NULL) { |
| 522 api_state()->VisitWeakHandles(visitor, visit_prologue_weak_handles); | 524 api_state()->VisitWeakHandles(visitor, visit_prologue_weak_handles); |
| 523 } | 525 } |
| 524 } | 526 } |
| 525 | 527 |
| 526 } // namespace dart | 528 } // namespace dart |
| OLD | NEW |