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 879 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
890 Dart_Port parent_port() const { return parent_port_; } | 890 Dart_Port parent_port() const { return parent_port_; } |
891 char* script_url() const { return script_url_; } | 891 char* script_url() const { return script_url_; } |
892 char* package_root() const { return package_root_; } | 892 char* package_root() const { return package_root_; } |
893 char* library_url() const { return library_url_; } | 893 char* library_url() const { return library_url_; } |
894 char* class_name() const { return class_name_; } | 894 char* class_name() const { return class_name_; } |
895 char* function_name() const { return function_name_; } | 895 char* function_name() const { return function_name_; } |
896 bool is_spawn_uri() const { return library_url_ == NULL; } | 896 bool is_spawn_uri() const { return library_url_ == NULL; } |
897 bool paused() const { return paused_; } | 897 bool paused() const { return paused_; } |
898 | 898 |
899 RawObject* ResolveFunction(); | 899 RawObject* ResolveFunction(); |
900 RawInstance* BuildArgs(); | 900 RawInstance* BuildArgs(Zone* zone); |
901 RawInstance* BuildMessage(); | 901 RawInstance* BuildMessage(Zone* zone); |
902 void Cleanup(); | 902 void Cleanup(); |
903 | 903 |
904 private: | 904 private: |
905 Isolate* isolate_; | 905 Isolate* isolate_; |
906 Dart_Port parent_port_; | 906 Dart_Port parent_port_; |
907 char* script_url_; | 907 char* script_url_; |
908 char* package_root_; | 908 char* package_root_; |
909 char* library_url_; | 909 char* library_url_; |
910 char* class_name_; | 910 char* class_name_; |
911 char* function_name_; | 911 char* function_name_; |
912 uint8_t* serialized_args_; | 912 uint8_t* serialized_args_; |
913 intptr_t serialized_args_len_; | 913 intptr_t serialized_args_len_; |
914 uint8_t* serialized_message_; | 914 uint8_t* serialized_message_; |
915 intptr_t serialized_message_len_; | 915 intptr_t serialized_message_len_; |
916 bool paused_; | 916 bool paused_; |
917 }; | 917 }; |
918 | 918 |
919 } // namespace dart | 919 } // namespace dart |
920 | 920 |
921 #endif // VM_ISOLATE_H_ | 921 #endif // VM_ISOLATE_H_ |
OLD | NEW |