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 "platform/thread.h" | 10 #include "platform/thread.h" |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 106 return OFFSET_OF(Isolate, store_buffer_); | 106 return OFFSET_OF(Isolate, store_buffer_); |
| 107 } | 107 } |
| 108 | 108 |
| 109 ClassTable* class_table() { return &class_table_; } | 109 ClassTable* class_table() { return &class_table_; } |
| 110 static intptr_t class_table_offset() { | 110 static intptr_t class_table_offset() { |
| 111 return OFFSET_OF(Isolate, class_table_); | 111 return OFFSET_OF(Isolate, class_table_); |
| 112 } | 112 } |
| 113 | 113 |
| 114 ObjectHistogram* object_histogram() { return object_histogram_; } | 114 ObjectHistogram* object_histogram() { return object_histogram_; } |
| 115 | 115 |
| 116 bool cha_used() const { return cha_used_; } | |
| 117 void set_cha_used(bool value) { cha_used_ = value; } | |
| 118 | |
| 116 MegamorphicCacheTable* megamorphic_cache_table() { | 119 MegamorphicCacheTable* megamorphic_cache_table() { |
| 117 return &megamorphic_cache_table_; | 120 return &megamorphic_cache_table_; |
| 118 } | 121 } |
| 119 | 122 |
| 120 Dart_MessageNotifyCallback message_notify_callback() const { | 123 Dart_MessageNotifyCallback message_notify_callback() const { |
| 121 return message_notify_callback_; | 124 return message_notify_callback_; |
| 122 } | 125 } |
| 123 void set_message_notify_callback(Dart_MessageNotifyCallback value) { | 126 void set_message_notify_callback(Dart_MessageNotifyCallback value) { |
| 124 message_notify_callback_ = value; | 127 message_notify_callback_ = value; |
| 125 } | 128 } |
| (...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 450 GcPrologueCallbacks gc_prologue_callbacks_; | 453 GcPrologueCallbacks gc_prologue_callbacks_; |
| 451 GcEpilogueCallbacks gc_epilogue_callbacks_; | 454 GcEpilogueCallbacks gc_epilogue_callbacks_; |
| 452 intptr_t defer_finalization_count_; | 455 intptr_t defer_finalization_count_; |
| 453 DeoptContext* deopt_context_; | 456 DeoptContext* deopt_context_; |
| 454 | 457 |
| 455 // Status support. | 458 // Status support. |
| 456 char* stacktrace_; | 459 char* stacktrace_; |
| 457 intptr_t stack_frame_index_; | 460 intptr_t stack_frame_index_; |
| 458 ObjectHistogram* object_histogram_; | 461 ObjectHistogram* object_histogram_; |
| 459 | 462 |
| 463 bool cha_used_; | |
|
Florian Schneider
2014/02/05 10:36:31
The bool variables should be grouped together so t
| |
| 464 | |
| 460 // Ring buffer of objects assigned an id. | 465 // Ring buffer of objects assigned an id. |
| 461 ObjectIdRing* object_id_ring_; | 466 ObjectIdRing* object_id_ring_; |
| 462 | 467 |
| 463 IsolateProfilerData* profiler_data_; | 468 IsolateProfilerData* profiler_data_; |
| 464 Mutex profiler_data_mutex_; | 469 Mutex profiler_data_mutex_; |
| 465 | 470 |
| 466 // Reusable handles support. | 471 // Reusable handles support. |
| 467 #define REUSABLE_HANDLE_FIELDS(object) \ | 472 #define REUSABLE_HANDLE_FIELDS(object) \ |
| 468 object* object##_handle_; \ | 473 object* object##_handle_; \ |
| 469 | 474 |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 577 char* script_url_; | 582 char* script_url_; |
| 578 char* library_url_; | 583 char* library_url_; |
| 579 char* class_name_; | 584 char* class_name_; |
| 580 char* function_name_; | 585 char* function_name_; |
| 581 char* exception_callback_name_; | 586 char* exception_callback_name_; |
| 582 }; | 587 }; |
| 583 | 588 |
| 584 } // namespace dart | 589 } // namespace dart |
| 585 | 590 |
| 586 #endif // VM_ISOLATE_H_ | 591 #endif // VM_ISOLATE_H_ |
| OLD | NEW |