OLD | NEW |
---|---|
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 #ifndef RUNTIME_VM_ISOLATE_H_ | 5 #ifndef RUNTIME_VM_ISOLATE_H_ |
6 #define RUNTIME_VM_ISOLATE_H_ | 6 #define RUNTIME_VM_ISOLATE_H_ |
7 | 7 |
8 #include "include/dart_api.h" | 8 #include "include/dart_api.h" |
9 #include "platform/assert.h" | 9 #include "platform/assert.h" |
10 #include "vm/atomic.h" | 10 #include "vm/atomic.h" |
(...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
461 return defer_finalization_count_--; | 461 return defer_finalization_count_--; |
462 } | 462 } |
463 | 463 |
464 bool AllowClassFinalization() { | 464 bool AllowClassFinalization() { |
465 ASSERT(defer_finalization_count_ >= 0); | 465 ASSERT(defer_finalization_count_ >= 0); |
466 return defer_finalization_count_ == 0; | 466 return defer_finalization_count_ == 0; |
467 } | 467 } |
468 | 468 |
469 #ifndef PRODUCT | 469 #ifndef PRODUCT |
470 void PrintJSON(JSONStream* stream, bool ref = true); | 470 void PrintJSON(JSONStream* stream, bool ref = true); |
471 void PrintThreadsInfoToJSONObject(JSONObject* obj); | |
siva
2016/12/07 22:12:52
Can these two methods PrintJSON and PrintThreadsIn
bkonyi
2016/12/08 18:04:14
ServiceEvent requires an Isolate* argument and has
| |
472 static void PrintAllIsolatesMemoryInfoToJSONLocked(JSONStream* stream); | |
471 #endif | 473 #endif |
472 | 474 |
473 // Mutator thread is used to aggregate compiler stats. | 475 // Mutator thread is used to aggregate compiler stats. |
474 CompilerStats* aggregate_compiler_stats() { | 476 CompilerStats* aggregate_compiler_stats() { |
475 return mutator_thread()->compiler_stats(); | 477 return mutator_thread()->compiler_stats(); |
476 } | 478 } |
477 | 479 |
478 VMTagCounters* vm_tag_counters() { return &vm_tag_counters_; } | 480 VMTagCounters* vm_tag_counters() { return &vm_tag_counters_; } |
479 | 481 |
480 bool IsReloading() const { return reload_context_ != NULL; } | 482 bool IsReloading() const { return reload_context_ != NULL; } |
(...skipping 507 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
988 intptr_t* spawn_count_; | 990 intptr_t* spawn_count_; |
989 | 991 |
990 Dart_IsolateFlags isolate_flags_; | 992 Dart_IsolateFlags isolate_flags_; |
991 bool paused_; | 993 bool paused_; |
992 bool errors_are_fatal_; | 994 bool errors_are_fatal_; |
993 }; | 995 }; |
994 | 996 |
995 } // namespace dart | 997 } // namespace dart |
996 | 998 |
997 #endif // RUNTIME_VM_ISOLATE_H_ | 999 #endif // RUNTIME_VM_ISOLATE_H_ |
OLD | NEW |