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 816 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
827 | 827 |
828 Isolate* isolate() const { return isolate_; } | 828 Isolate* isolate() const { return isolate_; } |
829 void set_isolate(Isolate* value) { isolate_ = value; } | 829 void set_isolate(Isolate* value) { isolate_ = value; } |
830 | 830 |
831 Dart_Port parent_port() const { return parent_port_; } | 831 Dart_Port parent_port() const { return parent_port_; } |
832 char* script_url() const { return script_url_; } | 832 char* script_url() const { return script_url_; } |
833 char* package_root() const { return package_root_; } | 833 char* package_root() const { return package_root_; } |
834 char* library_url() const { return library_url_; } | 834 char* library_url() const { return library_url_; } |
835 char* class_name() const { return class_name_; } | 835 char* class_name() const { return class_name_; } |
836 char* function_name() const { return function_name_; } | 836 char* function_name() const { return function_name_; } |
837 char* exception_callback_name() const { return exception_callback_name_; } | |
838 bool is_spawn_uri() const { return library_url_ == NULL; } | 837 bool is_spawn_uri() const { return library_url_ == NULL; } |
839 bool paused() const { return paused_; } | 838 bool paused() const { return paused_; } |
840 | 839 |
841 RawObject* ResolveFunction(); | 840 RawObject* ResolveFunction(); |
842 RawInstance* BuildArgs(); | 841 RawInstance* BuildArgs(); |
843 RawInstance* BuildMessage(); | 842 RawInstance* BuildMessage(); |
844 void Cleanup(); | 843 void Cleanup(); |
845 | 844 |
846 private: | 845 private: |
847 Isolate* isolate_; | 846 Isolate* isolate_; |
848 Dart_Port parent_port_; | 847 Dart_Port parent_port_; |
849 char* script_url_; | 848 char* script_url_; |
850 char* package_root_; | 849 char* package_root_; |
851 char* library_url_; | 850 char* library_url_; |
852 char* class_name_; | 851 char* class_name_; |
853 char* function_name_; | 852 char* function_name_; |
854 char* exception_callback_name_; | |
855 uint8_t* serialized_args_; | 853 uint8_t* serialized_args_; |
856 intptr_t serialized_args_len_; | 854 intptr_t serialized_args_len_; |
857 uint8_t* serialized_message_; | 855 uint8_t* serialized_message_; |
858 intptr_t serialized_message_len_; | 856 intptr_t serialized_message_len_; |
859 bool paused_; | 857 bool paused_; |
860 }; | 858 }; |
861 | 859 |
862 } // namespace dart | 860 } // namespace dart |
863 | 861 |
864 #endif // VM_ISOLATE_H_ | 862 #endif // VM_ISOLATE_H_ |
OLD | NEW |