| 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 908 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 919 | 919 |
| 920 DISALLOW_COPY_AND_ASSIGN(SwitchIsolateScope); | 920 DISALLOW_COPY_AND_ASSIGN(SwitchIsolateScope); |
| 921 }; | 921 }; |
| 922 | 922 |
| 923 | 923 |
| 924 class IsolateSpawnState { | 924 class IsolateSpawnState { |
| 925 public: | 925 public: |
| 926 IsolateSpawnState(Dart_Port parent_port, | 926 IsolateSpawnState(Dart_Port parent_port, |
| 927 const Function& func, | 927 const Function& func, |
| 928 const Instance& message, | 928 const Instance& message, |
| 929 bool paused); | 929 bool paused, |
| 930 bool checked); |
| 930 IsolateSpawnState(Dart_Port parent_port, | 931 IsolateSpawnState(Dart_Port parent_port, |
| 931 const char* script_url, | 932 const char* script_url, |
| 932 const char* package_root, | 933 const char* package_root, |
| 933 const Instance& args, | 934 const Instance& args, |
| 934 const Instance& message, | 935 const Instance& message, |
| 935 bool paused); | 936 bool paused, |
| 937 bool checked); |
| 936 ~IsolateSpawnState(); | 938 ~IsolateSpawnState(); |
| 937 | 939 |
| 938 Isolate* isolate() const { return isolate_; } | 940 Isolate* isolate() const { return isolate_; } |
| 939 void set_isolate(Isolate* value) { isolate_ = value; } | 941 void set_isolate(Isolate* value) { isolate_ = value; } |
| 940 | 942 |
| 941 Dart_Port parent_port() const { return parent_port_; } | 943 Dart_Port parent_port() const { return parent_port_; } |
| 942 char* script_url() const { return script_url_; } | 944 char* script_url() const { return script_url_; } |
| 943 char* package_root() const { return package_root_; } | 945 char* package_root() const { return package_root_; } |
| 944 char* library_url() const { return library_url_; } | 946 char* library_url() const { return library_url_; } |
| 945 char* class_name() const { return class_name_; } | 947 char* class_name() const { return class_name_; } |
| 946 char* function_name() const { return function_name_; } | 948 char* function_name() const { return function_name_; } |
| 947 bool is_spawn_uri() const { return library_url_ == NULL; } | 949 bool is_spawn_uri() const { return library_url_ == NULL; } |
| 948 bool paused() const { return paused_; } | 950 bool paused() const { return paused_; } |
| 951 bool checked_mode() const { return checked_; } |
| 949 | 952 |
| 950 RawObject* ResolveFunction(); | 953 RawObject* ResolveFunction(); |
| 951 RawInstance* BuildArgs(Zone* zone); | 954 RawInstance* BuildArgs(Zone* zone); |
| 952 RawInstance* BuildMessage(Zone* zone); | 955 RawInstance* BuildMessage(Zone* zone); |
| 953 void Cleanup(); | 956 void Cleanup(); |
| 954 | 957 |
| 955 private: | 958 private: |
| 956 Isolate* isolate_; | 959 Isolate* isolate_; |
| 957 Dart_Port parent_port_; | 960 Dart_Port parent_port_; |
| 958 char* script_url_; | 961 char* script_url_; |
| 959 char* package_root_; | 962 char* package_root_; |
| 960 char* library_url_; | 963 char* library_url_; |
| 961 char* class_name_; | 964 char* class_name_; |
| 962 char* function_name_; | 965 char* function_name_; |
| 963 uint8_t* serialized_args_; | 966 uint8_t* serialized_args_; |
| 964 intptr_t serialized_args_len_; | 967 intptr_t serialized_args_len_; |
| 965 uint8_t* serialized_message_; | 968 uint8_t* serialized_message_; |
| 966 intptr_t serialized_message_len_; | 969 intptr_t serialized_message_len_; |
| 967 bool paused_; | 970 bool paused_; |
| 971 bool checked_; |
| 968 }; | 972 }; |
| 969 | 973 |
| 970 } // namespace dart | 974 } // namespace dart |
| 971 | 975 |
| 972 #endif // VM_ISOLATE_H_ | 976 #endif // VM_ISOLATE_H_ |
| OLD | NEW |