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

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

Issue 2481873005: clang-format runtime/vm (Closed)
Patch Set: Merge Created 4 years, 1 month 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/atomic_win.h ('k') | runtime/vm/become.h » ('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) 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 #ifndef RUNTIME_VM_BASE_ISOLATE_H_ 5 #ifndef RUNTIME_VM_BASE_ISOLATE_H_
6 #define RUNTIME_VM_BASE_ISOLATE_H_ 6 #define RUNTIME_VM_BASE_ISOLATE_H_
7 7
8 #include "platform/assert.h" 8 #include "platform/assert.h"
9 #include "vm/globals.h" 9 #include "vm/globals.h"
10 10
(...skipping 13 matching lines...) Expand all
24 void AssertCurrentThreadIsMutator() const; 24 void AssertCurrentThreadIsMutator() const;
25 #else 25 #else
26 void AssertCurrentThreadIsMutator() const {} 26 void AssertCurrentThreadIsMutator() const {}
27 #endif // DEBUG 27 #endif // DEBUG
28 28
29 #if defined(DEBUG) 29 #if defined(DEBUG)
30 static void AssertCurrent(BaseIsolate* isolate); 30 static void AssertCurrent(BaseIsolate* isolate);
31 #endif 31 #endif
32 32
33 protected: 33 protected:
34 BaseIsolate() 34 BaseIsolate() : mutator_thread_(NULL) {}
35 : mutator_thread_(NULL) {
36 }
37 35
38 ~BaseIsolate() { 36 ~BaseIsolate() {
39 // Do not delete stack resources: top_resource_ and current_zone_. 37 // Do not delete stack resources: top_resource_ and current_zone_.
40 } 38 }
41 39
42 Thread* mutator_thread_; 40 Thread* mutator_thread_;
43 41
44 private: 42 private:
45 DISALLOW_COPY_AND_ASSIGN(BaseIsolate); 43 DISALLOW_COPY_AND_ASSIGN(BaseIsolate);
46 }; 44 };
47 45
48 } // namespace dart 46 } // namespace dart
49 47
50 #endif // RUNTIME_VM_BASE_ISOLATE_H_ 48 #endif // RUNTIME_VM_BASE_ISOLATE_H_
OLDNEW
« no previous file with comments | « runtime/vm/atomic_win.h ('k') | runtime/vm/become.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698