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

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: Address comments 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
« no previous file with comments | « runtime/vm/compiler.cc ('k') | runtime/vm/isolate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 606 matching lines...) Expand 10 before | Expand all | Expand 10 after
617 void set_compilation_allowed(bool allowed) { 617 void set_compilation_allowed(bool allowed) {
618 compilation_allowed_ = allowed; 618 compilation_allowed_ = allowed;
619 } 619 }
620 620
621 // In precompilation we finalize all regular classes before compiling. 621 // In precompilation we finalize all regular classes before compiling.
622 bool all_classes_finalized() const { return all_classes_finalized_; } 622 bool all_classes_finalized() const { return all_classes_finalized_; }
623 void set_all_classes_finalized(bool value) { 623 void set_all_classes_finalized(bool value) {
624 all_classes_finalized_ = value; 624 all_classes_finalized_ = value;
625 } 625 }
626 626
627 void IncrCHAInvalidationGen() { cha_invalidation_gen_++; } 627 static const uint32_t kInvalidGen = 0;
628 void ResetCHAInvalidationGen() { cha_invalidation_gen_ = 0; } 628
629 void IncrCHAInvalidationGen() {
630 cha_invalidation_gen_++;
631 if (cha_invalidation_gen_ == kInvalidGen) cha_invalidation_gen_++;
632 }
633 void ResetCHAInvalidationGen() { cha_invalidation_gen_ = kInvalidGen; }
629 uint32_t cha_invalidation_gen() const { return cha_invalidation_gen_; } 634 uint32_t cha_invalidation_gen() const { return cha_invalidation_gen_; }
630 635
631 void IncrFieldInvalidationGen() { field_invalidation_gen_++; } 636
632 void ResetFieldInvalidationGen() { field_invalidation_gen_ = 0; } 637 void IncrFieldInvalidationGen() {
638 field_invalidation_gen_++;
639 if (field_invalidation_gen_ == kInvalidGen) field_invalidation_gen_++;
640 }
641
642 void ResetFieldInvalidationGen() { field_invalidation_gen_ = kInvalidGen; }
633 uint32_t field_invalidation_gen() const { return field_invalidation_gen_; } 643 uint32_t field_invalidation_gen() const { return field_invalidation_gen_; }
634 644
635 void IncrPrefixInvalidationGen() { prefix_invalidation_gen_++; } 645 void IncrPrefixInvalidationGen() {
636 void ResetPrefixInvalidationGen() { prefix_invalidation_gen_ = 0; } 646 prefix_invalidation_gen_++;
647 if (prefix_invalidation_gen_ == kInvalidGen) prefix_invalidation_gen_++;
648 }
649 void ResetPrefixInvalidationGen() { prefix_invalidation_gen_ = kInvalidGen; }
637 uint32_t prefix_invalidation_gen() const { return prefix_invalidation_gen_; } 650 uint32_t prefix_invalidation_gen() const { return prefix_invalidation_gen_; }
638 651
639 RawObject* InvokePendingServiceExtensionCalls(); 652 RawObject* InvokePendingServiceExtensionCalls();
640 void AppendServiceExtensionCall(const Instance& closure, 653 void AppendServiceExtensionCall(const Instance& closure,
641 const String& method_name, 654 const String& method_name,
642 const Array& parameter_keys, 655 const Array& parameter_keys,
643 const Array& parameter_values, 656 const Array& parameter_values,
644 const Instance& reply_port, 657 const Instance& reply_port,
645 const Instance& id); 658 const Instance& id);
646 void RegisterServiceExtensionHandler(const String& name, 659 void RegisterServiceExtensionHandler(const String& name,
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after
980 uint8_t* serialized_message_; 993 uint8_t* serialized_message_;
981 intptr_t serialized_message_len_; 994 intptr_t serialized_message_len_;
982 Isolate::Flags isolate_flags_; 995 Isolate::Flags isolate_flags_;
983 bool paused_; 996 bool paused_;
984 bool errors_are_fatal_; 997 bool errors_are_fatal_;
985 }; 998 };
986 999
987 } // namespace dart 1000 } // namespace dart
988 1001
989 #endif // VM_ISOLATE_H_ 1002 #endif // VM_ISOLATE_H_
OLDNEW
« no previous file with comments | « runtime/vm/compiler.cc ('k') | runtime/vm/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698