| 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 484 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 495 return value > 0; | 495 return value > 0; |
| 496 } | 496 } |
| 497 | 497 |
| 498 void IncrTopLevelParsingCount() { | 498 void IncrTopLevelParsingCount() { |
| 499 AtomicOperations::IncrementBy(&top_level_parsing_count_, 1); | 499 AtomicOperations::IncrementBy(&top_level_parsing_count_, 1); |
| 500 } | 500 } |
| 501 void DecrTopLevelParsingCount() { | 501 void DecrTopLevelParsingCount() { |
| 502 AtomicOperations::DecrementBy(&top_level_parsing_count_, 1); | 502 AtomicOperations::DecrementBy(&top_level_parsing_count_, 1); |
| 503 } | 503 } |
| 504 | 504 |
| 505 static const uint32_t kInvalidGen = 0; | 505 static const intptr_t kInvalidGen = 0; |
| 506 | 506 |
| 507 void IncrFieldInvalidationGen() { | 507 void IncrFieldInvalidationGen() { |
| 508 AtomicOperations::IncrementBy(&field_invalidation_gen_, 1); | 508 AtomicOperations::IncrementBy(&field_invalidation_gen_, 1); |
| 509 if (field_invalidation_gen_ == kInvalidGen) { | 509 if (field_invalidation_gen_ == kInvalidGen) { |
| 510 AtomicOperations::IncrementBy(&field_invalidation_gen_, 1); | 510 AtomicOperations::IncrementBy(&field_invalidation_gen_, 1); |
| 511 } | 511 } |
| 512 } | 512 } |
| 513 intptr_t field_invalidation_gen() const { return field_invalidation_gen_; } | 513 intptr_t field_invalidation_gen() const { return field_invalidation_gen_; } |
| 514 | 514 |
| 515 void IncrLoadingInvalidationGen() { | 515 void IncrLoadingInvalidationGen() { |
| (...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 913 intptr_t* spawn_count_; | 913 intptr_t* spawn_count_; |
| 914 | 914 |
| 915 Dart_IsolateFlags isolate_flags_; | 915 Dart_IsolateFlags isolate_flags_; |
| 916 bool paused_; | 916 bool paused_; |
| 917 bool errors_are_fatal_; | 917 bool errors_are_fatal_; |
| 918 }; | 918 }; |
| 919 | 919 |
| 920 } // namespace dart | 920 } // namespace dart |
| 921 | 921 |
| 922 #endif // VM_ISOLATE_H_ | 922 #endif // VM_ISOLATE_H_ |
| OLD | NEW |