| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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_COMPILER_H_ | 5 #ifndef VM_COMPILER_H_ |
| 6 #define VM_COMPILER_H_ | 6 #define VM_COMPILER_H_ |
| 7 | 7 |
| 8 #include "vm/allocation.h" | 8 #include "vm/allocation.h" |
| 9 #include "vm/growable_array.h" | 9 #include "vm/growable_array.h" |
| 10 #include "vm/runtime_entry.h" | 10 #include "vm/runtime_entry.h" |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 | 44 |
| 45 void SetFromQElement(QueueElement* value); | 45 void SetFromQElement(QueueElement* value); |
| 46 | 46 |
| 47 // Returns true if all relevant gen-counts are current and code is valid. | 47 // Returns true if all relevant gen-counts are current and code is valid. |
| 48 bool IsValid() const; | 48 bool IsValid() const; |
| 49 | 49 |
| 50 // Remove gen-counts from validation check. | 50 // Remove gen-counts from validation check. |
| 51 void ClearCHAInvalidationGen() { | 51 void ClearCHAInvalidationGen() { |
| 52 cha_invalidation_gen_ = Isolate::kInvalidGen; | 52 cha_invalidation_gen_ = Isolate::kInvalidGen; |
| 53 } | 53 } |
| 54 void ClearFieldInnvalidationGen() { | 54 void ClearFieldInvalidationGen() { |
| 55 field_invalidation_gen_ = Isolate::kInvalidGen; | 55 field_invalidation_gen_ = Isolate::kInvalidGen; |
| 56 } | 56 } |
| 57 void ClearPrefixInnvalidationGen() { | 57 void ClearPrefixInvalidationGen() { |
| 58 prefix_invalidation_gen_ = Isolate::kInvalidGen; | 58 prefix_invalidation_gen_ = Isolate::kInvalidGen; |
| 59 } | 59 } |
| 60 | 60 |
| 61 void PrintValidity() const; | 61 void PrintValidity() const; |
| 62 | 62 |
| 63 private: | 63 private: |
| 64 Code& result_code_; | 64 Code& result_code_; |
| 65 uint32_t cha_invalidation_gen_; | 65 uint32_t cha_invalidation_gen_; |
| 66 uint32_t field_invalidation_gen_; | 66 uint32_t field_invalidation_gen_; |
| 67 uint32_t prefix_invalidation_gen_; | 67 uint32_t prefix_invalidation_gen_; |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 | 193 |
| 194 BackgroundCompilationQueue* function_queue_; | 194 BackgroundCompilationQueue* function_queue_; |
| 195 BackgroundCompilationQueue* result_queue_; | 195 BackgroundCompilationQueue* result_queue_; |
| 196 | 196 |
| 197 DISALLOW_IMPLICIT_CONSTRUCTORS(BackgroundCompiler); | 197 DISALLOW_IMPLICIT_CONSTRUCTORS(BackgroundCompiler); |
| 198 }; | 198 }; |
| 199 | 199 |
| 200 } // namespace dart | 200 } // namespace dart |
| 201 | 201 |
| 202 #endif // VM_COMPILER_H_ | 202 #endif // VM_COMPILER_H_ |
| OLD | NEW |