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 797 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
808 uword saved_stack_limit_; | 808 uword saved_stack_limit_; |
809 | 809 |
810 DISALLOW_COPY_AND_ASSIGN(SwitchIsolateScope); | 810 DISALLOW_COPY_AND_ASSIGN(SwitchIsolateScope); |
811 }; | 811 }; |
812 | 812 |
813 | 813 |
814 class IsolateSpawnState { | 814 class IsolateSpawnState { |
815 public: | 815 public: |
816 IsolateSpawnState(Dart_Port parent_port, | 816 IsolateSpawnState(Dart_Port parent_port, |
817 const Function& func, | 817 const Function& func, |
818 const Instance& message); | 818 const Instance& message, |
| 819 bool paused); |
819 IsolateSpawnState(Dart_Port parent_port, | 820 IsolateSpawnState(Dart_Port parent_port, |
820 const char* script_url, | 821 const char* script_url, |
821 const char* package_root, | 822 const char* package_root, |
822 const Instance& args, | 823 const Instance& args, |
823 const Instance& message); | 824 const Instance& message, |
| 825 bool paused); |
824 ~IsolateSpawnState(); | 826 ~IsolateSpawnState(); |
825 | 827 |
826 Isolate* isolate() const { return isolate_; } | 828 Isolate* isolate() const { return isolate_; } |
827 void set_isolate(Isolate* value) { isolate_ = value; } | 829 void set_isolate(Isolate* value) { isolate_ = value; } |
828 | 830 |
829 Dart_Port parent_port() const { return parent_port_; } | 831 Dart_Port parent_port() const { return parent_port_; } |
830 char* script_url() const { return script_url_; } | 832 char* script_url() const { return script_url_; } |
831 char* package_root() const { return package_root_; } | 833 char* package_root() const { return package_root_; } |
832 char* library_url() const { return library_url_; } | 834 char* library_url() const { return library_url_; } |
833 char* class_name() const { return class_name_; } | 835 char* class_name() const { return class_name_; } |
834 char* function_name() const { return function_name_; } | 836 char* function_name() const { return function_name_; } |
835 char* exception_callback_name() const { return exception_callback_name_; } | 837 char* exception_callback_name() const { return exception_callback_name_; } |
836 bool is_spawn_uri() const { return library_url_ == NULL; } | 838 bool is_spawn_uri() const { return library_url_ == NULL; } |
| 839 bool paused() const { return paused_; } |
837 | 840 |
838 RawObject* ResolveFunction(); | 841 RawObject* ResolveFunction(); |
839 RawInstance* BuildArgs(); | 842 RawInstance* BuildArgs(); |
840 RawInstance* BuildMessage(); | 843 RawInstance* BuildMessage(); |
841 void Cleanup(); | 844 void Cleanup(); |
842 | 845 |
843 private: | 846 private: |
844 Isolate* isolate_; | 847 Isolate* isolate_; |
845 Dart_Port parent_port_; | 848 Dart_Port parent_port_; |
846 char* script_url_; | 849 char* script_url_; |
847 char* package_root_; | 850 char* package_root_; |
848 char* library_url_; | 851 char* library_url_; |
849 char* class_name_; | 852 char* class_name_; |
850 char* function_name_; | 853 char* function_name_; |
851 char* exception_callback_name_; | 854 char* exception_callback_name_; |
852 uint8_t* serialized_args_; | 855 uint8_t* serialized_args_; |
853 intptr_t serialized_args_len_; | 856 intptr_t serialized_args_len_; |
854 uint8_t* serialized_message_; | 857 uint8_t* serialized_message_; |
855 intptr_t serialized_message_len_; | 858 intptr_t serialized_message_len_; |
| 859 bool paused_; |
856 }; | 860 }; |
857 | 861 |
858 } // namespace dart | 862 } // namespace dart |
859 | 863 |
860 #endif // VM_ISOLATE_H_ | 864 #endif // VM_ISOLATE_H_ |
OLD | NEW |