Commit c8e6340a authored by Ross McIlroy's avatar Ross McIlroy Committed by Commit Bot

[Compiler] Fast-path CompilerDispatcher::IsEnqueued when jobs_ is empty.

BUG=v8:5203

Change-Id: Iee83ac42fc17bb455ea2104540d2d3bc60260a42
Reviewed-on: https://chromium-review.googlesource.com/441705Reviewed-by: 's avatarJochen Eisinger <jochen@chromium.org>
Commit-Queue: Ross McIlroy <rmcilroy@chromium.org>
Cr-Commit-Position: refs/heads/master@{#43194}
parent 566e05c1
...@@ -356,6 +356,7 @@ bool CompilerDispatcher::EnqueueAndStep( ...@@ -356,6 +356,7 @@ bool CompilerDispatcher::EnqueueAndStep(
bool CompilerDispatcher::IsEnabled() const { return FLAG_compiler_dispatcher; } bool CompilerDispatcher::IsEnabled() const { return FLAG_compiler_dispatcher; }
bool CompilerDispatcher::IsEnqueued(Handle<SharedFunctionInfo> function) const { bool CompilerDispatcher::IsEnqueued(Handle<SharedFunctionInfo> function) const {
if (jobs_.empty()) return false;
return GetJobFor(function) != jobs_.end(); return GetJobFor(function) != jobs_.end();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment