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

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

Issue 1852393004: Fix background compilation issues when creating snapshots. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: more Created 4 years, 8 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.h ('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 557 matching lines...) Expand 10 before | Expand all | Expand 10 after
568 bool error_on_bad_type() const { return error_on_bad_type_; } 568 bool error_on_bad_type() const { return error_on_bad_type_; }
569 bool error_on_bad_override() const { return error_on_bad_override_; } 569 bool error_on_bad_override() const { return error_on_bad_override_; }
570 #endif // defined(PRODUCT) 570 #endif // defined(PRODUCT)
571 571
572 static void KillAllIsolates(LibMsgId msg_id); 572 static void KillAllIsolates(LibMsgId msg_id);
573 static void KillIfExists(Isolate* isolate, LibMsgId msg_id); 573 static void KillIfExists(Isolate* isolate, LibMsgId msg_id);
574 574
575 static void DisableIsolateCreation(); 575 static void DisableIsolateCreation();
576 static void EnableIsolateCreation(); 576 static void EnableIsolateCreation();
577 577
578 void StopBackgroundCompiler();
579
578 private: 580 private:
579 friend class Dart; // Init, InitOnce, Shutdown. 581 friend class Dart; // Init, InitOnce, Shutdown.
580 friend class IsolateKillerVisitor; // Kill(). 582 friend class IsolateKillerVisitor; // Kill().
581 583
582 explicit Isolate(const Dart_IsolateFlags& api_flags); 584 explicit Isolate(const Dart_IsolateFlags& api_flags);
583 585
584 static void InitOnce(); 586 static void InitOnce();
585 static Isolate* Init(const char* name_prefix, 587 static Isolate* Init(const char* name_prefix,
586 const Dart_IsolateFlags& api_flags, 588 const Dart_IsolateFlags& api_flags,
587 bool is_vm_isolate = false); 589 bool is_vm_isolate = false);
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after
911 intptr_t* spawn_count_; 913 intptr_t* spawn_count_;
912 914
913 Dart_IsolateFlags isolate_flags_; 915 Dart_IsolateFlags isolate_flags_;
914 bool paused_; 916 bool paused_;
915 bool errors_are_fatal_; 917 bool errors_are_fatal_;
916 }; 918 };
917 919
918 } // namespace dart 920 } // namespace dart
919 921
920 #endif // VM_ISOLATE_H_ 922 #endif // VM_ISOLATE_H_
OLDNEW
« no previous file with comments | « runtime/vm/heap.h ('k') | runtime/vm/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698