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

Unified Diff: test/cctest/test-debug.cc

Issue 10417010: Run Crankshaft on a separate thread. (Closed) Base URL: https://chromiumcodereview.appspot.com/10387157
Patch Set: Set optimize_in_parallel to false by default. Created 8 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/v8-counters.h ('k') | test/cctest/test-deoptimization.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/test-debug.cc
diff --git a/test/cctest/test-debug.cc b/test/cctest/test-debug.cc
index e40f406c3c5f869743cb13e2f0d75b4afb95b480..cc68df7dc1c7a63127ccfad98c83ea517b126133 100644
--- a/test/cctest/test-debug.cc
+++ b/test/cctest/test-debug.cc
@@ -461,10 +461,17 @@ void ForceUnloadDebugger() {
// Check that the debugger has been fully unloaded.
static void CheckDebuggerUnloaded(bool check_functions = false) {
- // Let debugger to unload itself synchronously
- v8::Debug::ProcessDebugMessages();
+ if (i::FLAG_optimize_in_parallel) {
+ v8::HandleScope scope;
- v8::internal::CheckDebuggerUnloaded(check_functions);
+ // Let debugger to unload itself synchronously
+ v8::Debug::ProcessDebugMessages();
+ v8::internal::CheckDebuggerUnloaded(check_functions);
+ } else {
+ // Let debugger to unload itself synchronously
+ v8::Debug::ProcessDebugMessages();
+ v8::internal::CheckDebuggerUnloaded(check_functions);
+ }
}
« no previous file with comments | « src/v8-counters.h ('k') | test/cctest/test-deoptimization.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698