| 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/atomic.h" | 10 #include "vm/atomic.h" |
| (...skipping 1084 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1095 char* package_root() const { return package_root_; } | 1095 char* package_root() const { return package_root_; } |
| 1096 char* library_url() const { return library_url_; } | 1096 char* library_url() const { return library_url_; } |
| 1097 char* class_name() const { return class_name_; } | 1097 char* class_name() const { return class_name_; } |
| 1098 char* function_name() const { return function_name_; } | 1098 char* function_name() const { return function_name_; } |
| 1099 bool is_spawn_uri() const { return library_url_ == NULL; } | 1099 bool is_spawn_uri() const { return library_url_ == NULL; } |
| 1100 bool paused() const { return paused_; } | 1100 bool paused() const { return paused_; } |
| 1101 bool errors_are_fatal() const { return errors_are_fatal_; } | 1101 bool errors_are_fatal() const { return errors_are_fatal_; } |
| 1102 Isolate::Flags* isolate_flags() { return &isolate_flags_; } | 1102 Isolate::Flags* isolate_flags() { return &isolate_flags_; } |
| 1103 | 1103 |
| 1104 RawObject* ResolveFunction(); | 1104 RawObject* ResolveFunction(); |
| 1105 RawInstance* BuildArgs(Zone* zone); | 1105 RawInstance* BuildArgs(Thread* thread); |
| 1106 RawInstance* BuildMessage(Zone* zone); | 1106 RawInstance* BuildMessage(Thread* thread); |
| 1107 void Cleanup(); | 1107 void Cleanup(); |
| 1108 | 1108 |
| 1109 private: | 1109 private: |
| 1110 Isolate* isolate_; | 1110 Isolate* isolate_; |
| 1111 Dart_Port parent_port_; | 1111 Dart_Port parent_port_; |
| 1112 Dart_Port on_exit_port_; | 1112 Dart_Port on_exit_port_; |
| 1113 Dart_Port on_error_port_; | 1113 Dart_Port on_error_port_; |
| 1114 char* script_url_; | 1114 char* script_url_; |
| 1115 char* package_root_; | 1115 char* package_root_; |
| 1116 char* library_url_; | 1116 char* library_url_; |
| 1117 char* class_name_; | 1117 char* class_name_; |
| 1118 char* function_name_; | 1118 char* function_name_; |
| 1119 uint8_t* serialized_args_; | 1119 uint8_t* serialized_args_; |
| 1120 intptr_t serialized_args_len_; | 1120 intptr_t serialized_args_len_; |
| 1121 uint8_t* serialized_message_; | 1121 uint8_t* serialized_message_; |
| 1122 intptr_t serialized_message_len_; | 1122 intptr_t serialized_message_len_; |
| 1123 Isolate::Flags isolate_flags_; | 1123 Isolate::Flags isolate_flags_; |
| 1124 bool paused_; | 1124 bool paused_; |
| 1125 bool errors_are_fatal_; | 1125 bool errors_are_fatal_; |
| 1126 }; | 1126 }; |
| 1127 | 1127 |
| 1128 } // namespace dart | 1128 } // namespace dart |
| 1129 | 1129 |
| 1130 #endif // VM_ISOLATE_H_ | 1130 #endif // VM_ISOLATE_H_ |
| OLD | NEW |