| 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 469 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 480 | 480 |
| 481 void set_thread_state(InterruptableThreadState* state) { | 481 void set_thread_state(InterruptableThreadState* state) { |
| 482 ASSERT((thread_state_ == NULL) || (state == NULL)); | 482 ASSERT((thread_state_ == NULL) || (state == NULL)); |
| 483 thread_state_ = state; | 483 thread_state_ = state; |
| 484 } | 484 } |
| 485 | 485 |
| 486 InterruptableThreadState* thread_state() const { | 486 InterruptableThreadState* thread_state() const { |
| 487 return thread_state_; | 487 return thread_state_; |
| 488 } | 488 } |
| 489 | 489 |
| 490 void ProfileInterrupt(); | 490 // Returns the number of sampled threads. |
| 491 intptr_t ProfileInterrupt(); |
| 491 | 492 |
| 492 VMTagCounters* vm_tag_counters() { | 493 VMTagCounters* vm_tag_counters() { |
| 493 return &vm_tag_counters_; | 494 return &vm_tag_counters_; |
| 494 } | 495 } |
| 495 | 496 |
| 496 uword user_tag() const { | 497 uword user_tag() const { |
| 497 return user_tag_; | 498 return user_tag_; |
| 498 } | 499 } |
| 499 static intptr_t user_tag_offset() { | 500 static intptr_t user_tag_offset() { |
| 500 return OFFSET_OF(Isolate, user_tag_); | 501 return OFFSET_OF(Isolate, user_tag_); |
| (...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 736 char* script_url_; | 737 char* script_url_; |
| 737 char* library_url_; | 738 char* library_url_; |
| 738 char* class_name_; | 739 char* class_name_; |
| 739 char* function_name_; | 740 char* function_name_; |
| 740 char* exception_callback_name_; | 741 char* exception_callback_name_; |
| 741 }; | 742 }; |
| 742 | 743 |
| 743 } // namespace dart | 744 } // namespace dart |
| 744 | 745 |
| 745 #endif // VM_ISOLATE_H_ | 746 #endif // VM_ISOLATE_H_ |
| OLD | NEW |