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/base_isolate.h" | 10 #include "vm/base_isolate.h" |
| (...skipping 19 matching lines...) Expand all Loading... | |
| 30 | 30 |
| 31 // Forward declarations. | 31 // Forward declarations. |
| 32 class AbstractType; | 32 class AbstractType; |
| 33 class ApiState; | 33 class ApiState; |
| 34 class Array; | 34 class Array; |
| 35 class Capability; | 35 class Capability; |
| 36 class CHA; | 36 class CHA; |
| 37 class Class; | 37 class Class; |
| 38 class Code; | 38 class Code; |
| 39 class CodeIndexTable; | 39 class CodeIndexTable; |
| 40 class CompilerStats; | |
| 40 class Debugger; | 41 class Debugger; |
| 41 class DeoptContext; | 42 class DeoptContext; |
| 42 class Error; | 43 class Error; |
| 43 class ExceptionHandlers; | 44 class ExceptionHandlers; |
| 44 class Field; | 45 class Field; |
| 45 class Function; | 46 class Function; |
| 46 class GrowableObjectArray; | 47 class GrowableObjectArray; |
| 47 class HandleScope; | 48 class HandleScope; |
| 48 class HandleVisitor; | 49 class HandleVisitor; |
| 49 class Heap; | 50 class Heap; |
| (...skipping 539 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 589 | 590 |
| 590 void set_thread_state(InterruptableThreadState* state) { | 591 void set_thread_state(InterruptableThreadState* state) { |
| 591 ASSERT((thread_state_ == NULL) || (state == NULL)); | 592 ASSERT((thread_state_ == NULL) || (state == NULL)); |
| 592 thread_state_ = state; | 593 thread_state_ = state; |
| 593 } | 594 } |
| 594 | 595 |
| 595 InterruptableThreadState* thread_state() const { | 596 InterruptableThreadState* thread_state() const { |
| 596 return thread_state_; | 597 return thread_state_; |
| 597 } | 598 } |
| 598 | 599 |
| 600 CompilerStats* compiler_stats() { | |
| 601 return compiler_stats_; | |
| 602 } | |
| 603 | |
| 599 // Returns the number of sampled threads. | 604 // Returns the number of sampled threads. |
| 600 intptr_t ProfileInterrupt(); | 605 intptr_t ProfileInterrupt(); |
| 601 | 606 |
| 602 VMTagCounters* vm_tag_counters() { | 607 VMTagCounters* vm_tag_counters() { |
| 603 return &vm_tag_counters_; | 608 return &vm_tag_counters_; |
| 604 } | 609 } |
| 605 | 610 |
| 606 uword user_tag() const { | 611 uword user_tag() const { |
| 607 return user_tag_; | 612 return user_tag_; |
| 608 } | 613 } |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 731 int32_t stack_overflow_count_; | 736 int32_t stack_overflow_count_; |
| 732 MessageHandler* message_handler_; | 737 MessageHandler* message_handler_; |
| 733 IsolateSpawnState* spawn_state_; | 738 IsolateSpawnState* spawn_state_; |
| 734 bool is_runnable_; | 739 bool is_runnable_; |
| 735 Dart_GcPrologueCallback gc_prologue_callback_; | 740 Dart_GcPrologueCallback gc_prologue_callback_; |
| 736 Dart_GcEpilogueCallback gc_epilogue_callback_; | 741 Dart_GcEpilogueCallback gc_epilogue_callback_; |
| 737 intptr_t defer_finalization_count_; | 742 intptr_t defer_finalization_count_; |
| 738 DeoptContext* deopt_context_; | 743 DeoptContext* deopt_context_; |
| 739 int32_t edge_counter_increment_size_; | 744 int32_t edge_counter_increment_size_; |
| 740 | 745 |
| 746 CompilerStats* compiler_stats_; | |
|
siva
2015/05/12 17:39:52
Can this be a regular field here instead of a poin
hausner
2015/05/12 21:52:16
Changed the TimerScope class so it can handle NULL
| |
| 747 | |
| 741 // Log. | 748 // Log. |
| 742 bool is_service_isolate_; | 749 bool is_service_isolate_; |
| 743 class Log* log_; | 750 class Log* log_; |
| 744 | 751 |
| 745 // Status support. | 752 // Status support. |
| 746 char* stacktrace_; | 753 char* stacktrace_; |
| 747 intptr_t stack_frame_index_; | 754 intptr_t stack_frame_index_; |
| 748 | 755 |
| 749 // Timestamps of last operation via service. | 756 // Timestamps of last operation via service. |
| 750 int64_t last_allocationprofile_accumulator_reset_timestamp_; | 757 int64_t last_allocationprofile_accumulator_reset_timestamp_; |
| (...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 958 uint8_t* serialized_args_; | 965 uint8_t* serialized_args_; |
| 959 intptr_t serialized_args_len_; | 966 intptr_t serialized_args_len_; |
| 960 uint8_t* serialized_message_; | 967 uint8_t* serialized_message_; |
| 961 intptr_t serialized_message_len_; | 968 intptr_t serialized_message_len_; |
| 962 bool paused_; | 969 bool paused_; |
| 963 }; | 970 }; |
| 964 | 971 |
| 965 } // namespace dart | 972 } // namespace dart |
| 966 | 973 |
| 967 #endif // VM_ISOLATE_H_ | 974 #endif // VM_ISOLATE_H_ |
| OLD | NEW |