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