Index: src/optimizing-compiler-thread.h |
diff --git a/src/optimizing-compiler-thread.h b/src/optimizing-compiler-thread.h |
index 01cd2a0f210a65d2ae0b1488ca89bb989a96d415..f45665b47fbc6122313b085ecf60623be184d11d 100644 |
--- a/src/optimizing-compiler-thread.h |
+++ b/src/optimizing-compiler-thread.h |
@@ -71,9 +71,7 @@ class OptimizingCompilerThread : public Thread { |
uint32_t osr_pc_offset); |
bool IsQueuedForOSR(Handle<JSFunction> function, uint32_t osr_pc_offset); |
- // Remove the oldest OSR candidates that are ready so that we |
- // only have |limit| left waiting. |
- void RemoveStaleOSRCandidates(int limit = kReadyForOSRLimit); |
+ bool IsQueuedForOSR(JSFunction* function); |
inline bool IsQueueAvailable() { |
// We don't need a barrier since we have a data dependency right |
@@ -96,6 +94,10 @@ class OptimizingCompilerThread : public Thread { |
private: |
enum StopFlag { CONTINUE, STOP, FLUSH }; |
+ // Remove the oldest OSR candidates that are ready so that we |
+ // only have |limit| left waiting. |
+ void RemoveStaleOSRCandidates(int limit = kReadyForOSRLimit); |
+ |
void FlushInputQueue(bool restore_function_code); |
void FlushOutputQueue(bool restore_function_code); |
void CompileNext(); |