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 565 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
576 intptr_t loading_invalidation_gen() { | 576 intptr_t loading_invalidation_gen() { |
577 return AtomicOperations::LoadRelaxedIntPtr(&loading_invalidation_gen_); | 577 return AtomicOperations::LoadRelaxedIntPtr(&loading_invalidation_gen_); |
578 } | 578 } |
579 | 579 |
580 // Used by background compiler which field became boxed and must trigger | 580 // Used by background compiler which field became boxed and must trigger |
581 // deoptimization in the mutator thread. | 581 // deoptimization in the mutator thread. |
582 void AddDeoptimizingBoxedField(const Field& field); | 582 void AddDeoptimizingBoxedField(const Field& field); |
583 // Returns Field::null() if none available in the list. | 583 // Returns Field::null() if none available in the list. |
584 RawField* GetDeoptimizingBoxedField(); | 584 RawField* GetDeoptimizingBoxedField(); |
585 | 585 |
| 586 #ifndef PRODUCT |
586 RawObject* InvokePendingServiceExtensionCalls(); | 587 RawObject* InvokePendingServiceExtensionCalls(); |
587 void AppendServiceExtensionCall(const Instance& closure, | 588 void AppendServiceExtensionCall(const Instance& closure, |
588 const String& method_name, | 589 const String& method_name, |
589 const Array& parameter_keys, | 590 const Array& parameter_keys, |
590 const Array& parameter_values, | 591 const Array& parameter_values, |
591 const Instance& reply_port, | 592 const Instance& reply_port, |
592 const Instance& id); | 593 const Instance& id); |
593 void RegisterServiceExtensionHandler(const String& name, | 594 void RegisterServiceExtensionHandler(const String& name, |
594 const Instance& closure); | 595 const Instance& closure); |
595 RawInstance* LookupServiceExtensionHandler(const String& name); | 596 RawInstance* LookupServiceExtensionHandler(const String& name); |
| 597 #endif |
596 | 598 |
597 static void VisitIsolates(IsolateVisitor* visitor); | 599 static void VisitIsolates(IsolateVisitor* visitor); |
598 | 600 |
599 // Handle service messages until we are told to resume execution. | 601 // Handle service messages until we are told to resume execution. |
600 void PauseEventHandler(); | 602 void PauseEventHandler(); |
601 | 603 |
602 void AddClosureFunction(const Function& function) const; | 604 void AddClosureFunction(const Function& function) const; |
603 RawFunction* LookupClosureFunction(const Function& parent, | 605 RawFunction* LookupClosureFunction(const Function& parent, |
604 TokenPosition token_pos) const; | 606 TokenPosition token_pos) const; |
605 intptr_t FindClosureIndex(const Function& needle) const; | 607 intptr_t FindClosureIndex(const Function& needle) const; |
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
987 intptr_t* spawn_count_; | 989 intptr_t* spawn_count_; |
988 | 990 |
989 Dart_IsolateFlags isolate_flags_; | 991 Dart_IsolateFlags isolate_flags_; |
990 bool paused_; | 992 bool paused_; |
991 bool errors_are_fatal_; | 993 bool errors_are_fatal_; |
992 }; | 994 }; |
993 | 995 |
994 } // namespace dart | 996 } // namespace dart |
995 | 997 |
996 #endif // VM_ISOLATE_H_ | 998 #endif // VM_ISOLATE_H_ |
OLD | NEW |