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

Unified Diff: src/optimizing-compiler-thread.cc

Issue 14159028: Fixed an issue with HConstant::InNewSpace() for parallel compilation. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Be able to recognize if running on the optimizer thread Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/optimizing-compiler-thread.h ('k') | src/x64/lithium-x64.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/optimizing-compiler-thread.cc
diff --git a/src/optimizing-compiler-thread.cc b/src/optimizing-compiler-thread.cc
index 1e2e0a85df11a195fdced7f8911d76055bc4d708..825c158a89b14793b6b9e9b876bf07d63fc68a7a 100644
--- a/src/optimizing-compiler-thread.cc
+++ b/src/optimizing-compiler-thread.cc
@@ -38,9 +38,7 @@ namespace internal {
void OptimizingCompilerThread::Run() {
-#ifdef DEBUG
thread_id_ = ThreadId::Current().ToInteger();
-#endif
Isolate::SetIsolateThreadLocals(isolate_, NULL);
int64_t epoch = 0;
@@ -144,12 +142,10 @@ void OptimizingCompilerThread::QueueForOptimization(
}
-#ifdef DEBUG
bool OptimizingCompilerThread::IsOptimizerThread() {
if (!FLAG_parallel_recompilation) return false;
return ThreadId::Current().ToInteger() == thread_id_;
}
-#endif
} } // namespace v8::internal
« no previous file with comments | « src/optimizing-compiler-thread.h ('k') | src/x64/lithium-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698