Chromium Code Reviews| 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 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 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 275 void set_spawn_state(IsolateSpawnState* value) { spawn_state_ = value; } | 275 void set_spawn_state(IsolateSpawnState* value) { spawn_state_ = value; } |
| 276 | 276 |
| 277 Mutex* mutex() const { return mutex_; } | 277 Mutex* mutex() const { return mutex_; } |
| 278 Mutex* symbols_mutex() const { return symbols_mutex_; } | 278 Mutex* symbols_mutex() const { return symbols_mutex_; } |
| 279 Mutex* type_canonicalization_mutex() const { | 279 Mutex* type_canonicalization_mutex() const { |
| 280 return type_canonicalization_mutex_; | 280 return type_canonicalization_mutex_; |
| 281 } | 281 } |
| 282 Mutex* constant_canonicalization_mutex() const { | 282 Mutex* constant_canonicalization_mutex() const { |
| 283 return constant_canonicalization_mutex_; | 283 return constant_canonicalization_mutex_; |
| 284 } | 284 } |
| 285 Mutex* lookup_mutex() const { return lookup_mutex_; } | |
| 285 | 286 |
| 286 Debugger* debugger() const { | 287 Debugger* debugger() const { |
| 287 if (!FLAG_support_debugger) { | 288 if (!FLAG_support_debugger) { |
| 288 return NULL; | 289 return NULL; |
| 289 } | 290 } |
| 290 ASSERT(debugger_ != NULL); | 291 ASSERT(debugger_ != NULL); |
| 291 return debugger_; | 292 return debugger_; |
| 292 } | 293 } |
| 293 | 294 |
| 294 void set_single_step(bool value) { single_step_ = value; } | 295 void set_single_step(bool value) { single_step_ = value; } |
| (...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 710 Debugger* debugger_; | 711 Debugger* debugger_; |
| 711 bool resume_request_; | 712 bool resume_request_; |
| 712 int64_t last_resume_timestamp_; | 713 int64_t last_resume_timestamp_; |
| 713 bool has_compiled_code_; // Can check that no compilation occured. | 714 bool has_compiled_code_; // Can check that no compilation occured. |
| 714 Random random_; | 715 Random random_; |
| 715 Simulator* simulator_; | 716 Simulator* simulator_; |
| 716 Mutex* mutex_; // Protects compiler stats. | 717 Mutex* mutex_; // Protects compiler stats. |
| 717 Mutex* symbols_mutex_; // Protects concurrent access to the symbol table. | 718 Mutex* symbols_mutex_; // Protects concurrent access to the symbol table. |
| 718 Mutex* type_canonicalization_mutex_; // Protects type canonicalization. | 719 Mutex* type_canonicalization_mutex_; // Protects type canonicalization. |
| 719 Mutex* constant_canonicalization_mutex_; // Protects const canonicalization. | 720 Mutex* constant_canonicalization_mutex_; // Protects const canonicalization. |
| 721 Mutex* lookup_mutex_; // Protects megamorphic table lookup. | |
|
siva
2016/07/01 17:39:29
can we call it megamorphic_lookup_mutex_;
so that
Florian Schneider
2016/07/01 19:31:58
Done.
| |
| 720 MessageHandler* message_handler_; | 722 MessageHandler* message_handler_; |
| 721 IsolateSpawnState* spawn_state_; | 723 IsolateSpawnState* spawn_state_; |
| 722 bool is_runnable_; | 724 bool is_runnable_; |
| 723 Dart_GcPrologueCallback gc_prologue_callback_; | 725 Dart_GcPrologueCallback gc_prologue_callback_; |
| 724 Dart_GcEpilogueCallback gc_epilogue_callback_; | 726 Dart_GcEpilogueCallback gc_epilogue_callback_; |
| 725 intptr_t defer_finalization_count_; | 727 intptr_t defer_finalization_count_; |
| 726 DeoptContext* deopt_context_; | 728 DeoptContext* deopt_context_; |
| 727 | 729 |
| 728 bool is_service_isolate_; | 730 bool is_service_isolate_; |
| 729 | 731 |
| (...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 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_ |
| OLD | NEW |