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

Side by Side Diff: runtime/vm/isolate_reload.cc

Issue 2118923002: Add --hot-reload-test-mode flag to embedder and wire it up to test.py (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: rmacnak review Created 4 years, 5 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/isolate.cc ('k') | tools/testing/dart/compiler_configuration.dart » ('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) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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 #include "vm/isolate_reload.h" 5 #include "vm/isolate_reload.h"
6 6
7 #include "vm/become.h" 7 #include "vm/become.h"
8 #include "vm/code_generator.h" 8 #include "vm/code_generator.h"
9 #include "vm/compiler.h" 9 #include "vm/compiler.h"
10 #include "vm/dart_api_impl.h" 10 #include "vm/dart_api_impl.h"
11 #include "vm/hash_table.h" 11 #include "vm/hash_table.h"
12 #include "vm/isolate.h" 12 #include "vm/isolate.h"
13 #include "vm/log.h" 13 #include "vm/log.h"
14 #include "vm/object.h" 14 #include "vm/object.h"
15 #include "vm/object_store.h" 15 #include "vm/object_store.h"
16 #include "vm/parser.h" 16 #include "vm/parser.h"
17 #include "vm/safepoint.h" 17 #include "vm/safepoint.h"
18 #include "vm/service_event.h" 18 #include "vm/service_event.h"
19 #include "vm/stack_frame.h" 19 #include "vm/stack_frame.h"
20 #include "vm/thread.h" 20 #include "vm/thread.h"
21 #include "vm/timeline.h" 21 #include "vm/timeline.h"
22 #include "vm/visitor.h" 22 #include "vm/visitor.h"
23 23
24 namespace dart { 24 namespace dart {
25 25
26 DEFINE_FLAG(bool, trace_reload, false, "Trace isolate reloading"); 26 DEFINE_FLAG(bool, trace_reload, false, "Trace isolate reloading");
27 DEFINE_FLAG(bool, identity_reload, false, "Enable checks for identity reload."); 27 DEFINE_FLAG(bool, identity_reload, false, "Enable checks for identity reload.");
28 DEFINE_FLAG(int, reload_every, 0, "Reload every N stack overflow checks."); 28 DEFINE_FLAG(int, reload_every, 0, "Reload every N stack overflow checks.");
29 DEFINE_FLAG(bool, reload_every_optimized, true, "Only from optimized code."); 29 DEFINE_FLAG(bool, reload_every_optimized, true, "Only from optimized code.");
30 30 DEFINE_FLAG(bool, reload_every_back_off, false,
31 "Double the --reload-every value after each reload.");
32 DEFINE_FLAG(bool, check_reloaded, false,
33 "Assert that an isolate has reloaded at least once.")
31 #ifndef PRODUCT 34 #ifndef PRODUCT
32 35
33 #define I (isolate()) 36 #define I (isolate())
34 #define Z (thread->zone()) 37 #define Z (thread->zone())
35 38
36 #define TIMELINE_SCOPE(name) \ 39 #define TIMELINE_SCOPE(name) \
37 TimelineDurationScope tds##name(Thread::Current(), \ 40 TimelineDurationScope tds##name(Thread::Current(), \
38 Timeline::GetIsolateStream(), \ 41 Timeline::GetIsolateStream(), \
39 #name) 42 #name)
40 43
(...skipping 1114 matching lines...) Expand 10 before | Expand all | Expand 10 after
1155 ASSERT(!super_cls.IsNull()); 1158 ASSERT(!super_cls.IsNull());
1156 super_cls.AddDirectSubclass(cls); 1159 super_cls.AddDirectSubclass(cls);
1157 } 1160 }
1158 } 1161 }
1159 } 1162 }
1160 } 1163 }
1161 1164
1162 #endif // !PRODUCT 1165 #endif // !PRODUCT
1163 1166
1164 } // namespace dart 1167 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/isolate.cc ('k') | tools/testing/dart/compiler_configuration.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698