Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(59)

Side by Side Diff: runtime/vm/isolate.h

Issue 1419533011: Redo background compilation queues to allocate queue and its element in the C-heap (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: cleanup Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 600 matching lines...) Expand 10 before | Expand all | Expand 10 after
611 void set_compilation_allowed(bool allowed) { 611 void set_compilation_allowed(bool allowed) {
612 compilation_allowed_ = allowed; 612 compilation_allowed_ = allowed;
613 } 613 }
614 614
615 // In precompilation we finalize all regular classes before compiling. 615 // In precompilation we finalize all regular classes before compiling.
616 bool all_classes_finalized() const { return all_classes_finalized_; } 616 bool all_classes_finalized() const { return all_classes_finalized_; }
617 void set_all_classes_finalized(bool value) { 617 void set_all_classes_finalized(bool value) {
618 all_classes_finalized_ = value; 618 all_classes_finalized_ = value;
619 } 619 }
620 620
621 void IncrCHAInvalidationGen() { cha_invalidation_gen_++; } 621 static const uint32_t kInvalidGen = 0;
622 void ResetCHAInvalidationGen() { cha_invalidation_gen_ = 0; } 622
623 void IncrCHAInvalidationGen() {
624 cha_invalidation_gen_++;
625 if (cha_invalidation_gen_ == kInvalidGen) cha_invalidation_gen_++;
626 }
627 void ResetCHAInvalidationGen() { cha_invalidation_gen_ = kInvalidGen; }
623 uint32_t cha_invalidation_gen() const { return cha_invalidation_gen_; } 628 uint32_t cha_invalidation_gen() const { return cha_invalidation_gen_; }
624 629
625 void IncrFieldInvalidationGen() { field_invalidation_gen_++; } 630
626 void ResetFieldInvalidationGen() { field_invalidation_gen_ = 0; } 631 void IncrFieldInvalidationGen() {
632 field_invalidation_gen_++;
633 if (field_invalidation_gen_ == kInvalidGen) field_invalidation_gen_++;
634 }
635
636 void ResetFieldInvalidationGen() { field_invalidation_gen_ = kInvalidGen; }
627 uint32_t field_invalidation_gen() const { return field_invalidation_gen_; } 637 uint32_t field_invalidation_gen() const { return field_invalidation_gen_; }
628 638
629 void IncrPrefixInvalidationGen() { prefix_invalidation_gen_++; } 639 void IncrPrefixInvalidationGen() {
630 void ResetPrefixInvalidationGen() { prefix_invalidation_gen_ = 0; } 640 prefix_invalidation_gen_++;
641 if (prefix_invalidation_gen_ == kInvalidGen) prefix_invalidation_gen_++;
642 }
643 void ResetPrefixInvalidationGen() { prefix_invalidation_gen_ = kInvalidGen; }
631 uint32_t prefix_invalidation_gen() const { return prefix_invalidation_gen_; } 644 uint32_t prefix_invalidation_gen() const { return prefix_invalidation_gen_; }
632 645
633 RawObject* InvokePendingServiceExtensionCalls(); 646 RawObject* InvokePendingServiceExtensionCalls();
634 void AppendServiceExtensionCall(const Instance& closure, 647 void AppendServiceExtensionCall(const Instance& closure,
635 const String& method_name, 648 const String& method_name,
636 const Array& parameter_keys, 649 const Array& parameter_keys,
637 const Array& parameter_values, 650 const Array& parameter_values,
638 const Instance& reply_port, 651 const Instance& reply_port,
639 const Instance& id); 652 const Instance& id);
640 void RegisterServiceExtensionHandler(const String& name, 653 void RegisterServiceExtensionHandler(const String& name,
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after
973 uint8_t* serialized_message_; 986 uint8_t* serialized_message_;
974 intptr_t serialized_message_len_; 987 intptr_t serialized_message_len_;
975 Isolate::Flags isolate_flags_; 988 Isolate::Flags isolate_flags_;
976 bool paused_; 989 bool paused_;
977 bool errors_are_fatal_; 990 bool errors_are_fatal_;
978 }; 991 };
979 992
980 } // namespace dart 993 } // namespace dart
981 994
982 #endif // VM_ISOLATE_H_ 995 #endif // VM_ISOLATE_H_
OLDNEW
« runtime/vm/compiler.cc ('K') | « runtime/vm/compiler.cc ('k') | runtime/vm/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698