| 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 617 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 628 const Instance& closure); | 628 const Instance& closure); |
| 629 RawInstance* LookupServiceExtensionHandler(const String& name); | 629 RawInstance* LookupServiceExtensionHandler(const String& name); |
| 630 | 630 |
| 631 static void VisitIsolates(IsolateVisitor* visitor); | 631 static void VisitIsolates(IsolateVisitor* visitor); |
| 632 | 632 |
| 633 // Handle service messages until we are told to resume execution. | 633 // Handle service messages until we are told to resume execution. |
| 634 void PauseEventHandler(); | 634 void PauseEventHandler(); |
| 635 | 635 |
| 636 void AddClosureFunction(const Function& function) const; | 636 void AddClosureFunction(const Function& function) const; |
| 637 RawFunction* LookupClosureFunction(const Function& parent, | 637 RawFunction* LookupClosureFunction(const Function& parent, |
| 638 intptr_t token_pos) const; | 638 TokenDescriptor token_pos) const; |
| 639 intptr_t FindClosureIndex(const Function& needle) const; | 639 intptr_t FindClosureIndex(const Function& needle) const; |
| 640 RawFunction* ClosureFunctionFromIndex(intptr_t idx) const; | 640 RawFunction* ClosureFunctionFromIndex(intptr_t idx) const; |
| 641 | 641 |
| 642 bool is_service_isolate() const { return is_service_isolate_; } | 642 bool is_service_isolate() const { return is_service_isolate_; } |
| 643 | 643 |
| 644 static void KillAllIsolates(LibMsgId msg_id); | 644 static void KillAllIsolates(LibMsgId msg_id); |
| 645 static void KillIfExists(Isolate* isolate, LibMsgId msg_id); | 645 static void KillIfExists(Isolate* isolate, LibMsgId msg_id); |
| 646 | 646 |
| 647 static void DisableIsolateCreation(); | 647 static void DisableIsolateCreation(); |
| 648 static void EnableIsolateCreation(); | 648 static void EnableIsolateCreation(); |
| (...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 991 intptr_t* spawn_count_; | 991 intptr_t* spawn_count_; |
| 992 | 992 |
| 993 Isolate::Flags isolate_flags_; | 993 Isolate::Flags isolate_flags_; |
| 994 bool paused_; | 994 bool paused_; |
| 995 bool errors_are_fatal_; | 995 bool errors_are_fatal_; |
| 996 }; | 996 }; |
| 997 | 997 |
| 998 } // namespace dart | 998 } // namespace dart |
| 999 | 999 |
| 1000 #endif // VM_ISOLATE_H_ | 1000 #endif // VM_ISOLATE_H_ |
| OLD | NEW |