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

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

Issue 2117593002: Fuchsia: Initial check-in. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Address comments Created 4 years, 5 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/heap.cc ('k') | runtime/vm/isolate.cc » ('j') | 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 #ifndef VM_ISOLATE_H_ 5 #ifndef VM_ISOLATE_H_
6 #define VM_ISOLATE_H_ 6 #define 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 437 matching lines...) Expand 10 before | Expand all | Expand 10 after
448 intptr_t UnblockClassFinalization() { 448 intptr_t UnblockClassFinalization() {
449 ASSERT(defer_finalization_count_ > 0); 449 ASSERT(defer_finalization_count_ > 0);
450 return defer_finalization_count_--; 450 return defer_finalization_count_--;
451 } 451 }
452 452
453 bool AllowClassFinalization() { 453 bool AllowClassFinalization() {
454 ASSERT(defer_finalization_count_ >= 0); 454 ASSERT(defer_finalization_count_ >= 0);
455 return defer_finalization_count_ == 0; 455 return defer_finalization_count_ == 0;
456 } 456 }
457 457
458 #ifndef PRODUCT
458 void PrintJSON(JSONStream* stream, bool ref = true); 459 void PrintJSON(JSONStream* stream, bool ref = true);
460 #endif
459 461
460 // Mutator thread is used to aggregate compiler stats. 462 // Mutator thread is used to aggregate compiler stats.
461 CompilerStats* aggregate_compiler_stats() { 463 CompilerStats* aggregate_compiler_stats() {
462 ASSERT(HasMutatorThread()); 464 ASSERT(HasMutatorThread());
463 return mutator_thread_->compiler_stats(); 465 return mutator_thread_->compiler_stats();
464 } 466 }
465 467
466 VMTagCounters* vm_tag_counters() { 468 VMTagCounters* vm_tag_counters() {
467 return &vm_tag_counters_; 469 return &vm_tag_counters_;
468 } 470 }
(...skipping 504 matching lines...) Expand 10 before | Expand all | Expand 10 after
973 intptr_t* spawn_count_; 975 intptr_t* spawn_count_;
974 976
975 Dart_IsolateFlags isolate_flags_; 977 Dart_IsolateFlags isolate_flags_;
976 bool paused_; 978 bool paused_;
977 bool errors_are_fatal_; 979 bool errors_are_fatal_;
978 }; 980 };
979 981
980 } // namespace dart 982 } // namespace dart
981 983
982 #endif // VM_ISOLATE_H_ 984 #endif // VM_ISOLATE_H_
OLDNEW
« no previous file with comments | « runtime/vm/heap.cc ('k') | runtime/vm/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698