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

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

Issue 1904153002: Add a stress testing flag --background-compilation-stop-alot; add an extra check if background comp… (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: r Created 4 years, 8 months 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/flag_list.h ('k') | no next file » | 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 363 matching lines...) Expand 10 before | Expand all | Expand 10 after
374 DeoptContext* deopt_context() const { return deopt_context_; } 374 DeoptContext* deopt_context() const { return deopt_context_; }
375 void set_deopt_context(DeoptContext* value) { 375 void set_deopt_context(DeoptContext* value) {
376 ASSERT(value == NULL || deopt_context_ == NULL); 376 ASSERT(value == NULL || deopt_context_ == NULL);
377 deopt_context_ = value; 377 deopt_context_ = value;
378 } 378 }
379 379
380 BackgroundCompiler* background_compiler() const { 380 BackgroundCompiler* background_compiler() const {
381 return background_compiler_; 381 return background_compiler_;
382 } 382 }
383 void set_background_compiler(BackgroundCompiler* value) { 383 void set_background_compiler(BackgroundCompiler* value) {
384 // Do not overwrite a background compiler (memory leak).
385 ASSERT((value == NULL) || (background_compiler_ == NULL));
384 background_compiler_ = value; 386 background_compiler_ = value;
385 } 387 }
386 388
387 void UpdateLastAllocationProfileAccumulatorResetTimestamp() { 389 void UpdateLastAllocationProfileAccumulatorResetTimestamp() {
388 last_allocationprofile_accumulator_reset_timestamp_ = 390 last_allocationprofile_accumulator_reset_timestamp_ =
389 OS::GetCurrentTimeMillis(); 391 OS::GetCurrentTimeMillis();
390 } 392 }
391 393
392 int64_t last_allocationprofile_accumulator_reset_timestamp() const { 394 int64_t last_allocationprofile_accumulator_reset_timestamp() const {
393 return last_allocationprofile_accumulator_reset_timestamp_; 395 return last_allocationprofile_accumulator_reset_timestamp_;
(...skipping 530 matching lines...) Expand 10 before | Expand all | Expand 10 after
924 intptr_t* spawn_count_; 926 intptr_t* spawn_count_;
925 927
926 Dart_IsolateFlags isolate_flags_; 928 Dart_IsolateFlags isolate_flags_;
927 bool paused_; 929 bool paused_;
928 bool errors_are_fatal_; 930 bool errors_are_fatal_;
929 }; 931 };
930 932
931 } // namespace dart 933 } // namespace dart
932 934
933 #endif // VM_ISOLATE_H_ 935 #endif // VM_ISOLATE_H_
OLDNEW
« no previous file with comments | « runtime/vm/flag_list.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698