Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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_THREAD_H_ | 5 #ifndef VM_THREAD_H_ |
| 6 #define VM_THREAD_H_ | 6 #define VM_THREAD_H_ |
| 7 | 7 |
| 8 #include "vm/isolate.h" | 8 #include "vm/isolate.h" |
| 9 | 9 |
| 10 namespace dart { | 10 namespace dart { |
| (...skipping 13 matching lines...) Expand all Loading... | |
| 24 // The topmost zone used for allocation in this thread. | 24 // The topmost zone used for allocation in this thread. |
| 25 Zone* zone() { | 25 Zone* zone() { |
| 26 return reinterpret_cast<BaseIsolate*>(this)->current_zone(); | 26 return reinterpret_cast<BaseIsolate*>(this)->current_zone(); |
| 27 } | 27 } |
| 28 | 28 |
| 29 // The isolate that this thread is operating on. | 29 // The isolate that this thread is operating on. |
| 30 Isolate* isolate() { | 30 Isolate* isolate() { |
| 31 return reinterpret_cast<Isolate*>(this); | 31 return reinterpret_cast<Isolate*>(this); |
| 32 } | 32 } |
| 33 | 33 |
| 34 // The log for with this thread. | |
|
koda
2015/02/09 17:57:29
"for with" -> "for"
Cutch
2015/02/09 18:19:39
Done.
| |
| 35 Log* Log() { | |
| 36 return reinterpret_cast<Isolate*>(this)->Log(); | |
| 37 } | |
| 38 | |
| 34 private: | 39 private: |
| 35 DISALLOW_COPY_AND_ASSIGN(Thread); | 40 DISALLOW_COPY_AND_ASSIGN(Thread); |
| 36 }; | 41 }; |
| 37 | 42 |
| 38 } // namespace dart | 43 } // namespace dart |
| 39 | 44 |
| 40 #endif // VM_THREAD_H_ | 45 #endif // VM_THREAD_H_ |
| OLD | NEW |