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

Unified Diff: src/compiler-dispatcher/optimizing-compile-dispatcher.cc

Issue 2161033003: Create compiler-scheduler subdir and move existing scheduler there (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/compiler-dispatcher/optimizing-compile-dispatcher.h ('k') | src/isolate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler-dispatcher/optimizing-compile-dispatcher.cc
diff --git a/src/optimizing-compile-dispatcher.cc b/src/compiler-dispatcher/optimizing-compile-dispatcher.cc
similarity index 99%
rename from src/optimizing-compile-dispatcher.cc
rename to src/compiler-dispatcher/optimizing-compile-dispatcher.cc
index d5059f60f54fe0d3563c122fa30c258bcf324bab..c7b2f31b467efd8b1a058ddbd0b4a64730776c63 100644
--- a/src/optimizing-compile-dispatcher.cc
+++ b/src/compiler-dispatcher/optimizing-compile-dispatcher.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "src/optimizing-compile-dispatcher.h"
+#include "src/compiler-dispatcher/optimizing-compile-dispatcher.h"
#include "src/base/atomicops.h"
#include "src/full-codegen/full-codegen.h"
@@ -29,7 +29,6 @@ void DisposeCompilationJob(CompilationJob* job, bool restore_function_code) {
} // namespace
-
class OptimizingCompileDispatcher::CompileTask : public v8::Task {
public:
explicit CompileTask(Isolate* isolate) : isolate_(isolate) {
@@ -76,7 +75,6 @@ class OptimizingCompileDispatcher::CompileTask : public v8::Task {
DISALLOW_COPY_AND_ASSIGN(CompileTask);
};
-
OptimizingCompileDispatcher::~OptimizingCompileDispatcher() {
#ifdef DEBUG
{
@@ -120,7 +118,6 @@ void OptimizingCompileDispatcher::CompileNext(CompilationJob* job) {
isolate_->stack_guard()->RequestInstallCode();
}
-
void OptimizingCompileDispatcher::FlushOutputQueue(bool restore_function_code) {
for (;;) {
CompilationJob* job = NULL;
@@ -135,7 +132,6 @@ void OptimizingCompileDispatcher::FlushOutputQueue(bool restore_function_code) {
}
}
-
void OptimizingCompileDispatcher::Flush() {
base::Release_Store(&mode_, static_cast<base::AtomicWord>(FLUSH));
if (FLAG_block_concurrent_recompilation) Unblock();
@@ -150,7 +146,6 @@ void OptimizingCompileDispatcher::Flush() {
}
}
-
void OptimizingCompileDispatcher::Stop() {
base::Release_Store(&mode_, static_cast<base::AtomicWord>(FLUSH));
if (FLAG_block_concurrent_recompilation) Unblock();
@@ -170,7 +165,6 @@ void OptimizingCompileDispatcher::Stop() {
}
}
-
void OptimizingCompileDispatcher::InstallOptimizedFunctions() {
HandleScope handle_scope(isolate_);
@@ -214,7 +208,6 @@ void OptimizingCompileDispatcher::QueueForOptimization(CompilationJob* job) {
}
}
-
void OptimizingCompileDispatcher::Unblock() {
while (blocked_jobs_ > 0) {
V8::GetCurrentPlatform()->CallOnBackgroundThread(
@@ -223,6 +216,5 @@ void OptimizingCompileDispatcher::Unblock() {
}
}
-
} // namespace internal
} // namespace v8
« no previous file with comments | « src/compiler-dispatcher/optimizing-compile-dispatcher.h ('k') | src/isolate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698