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

Side by Side Diff: src/optimizing-compiler-thread.h

Issue 23542029: Simplify installing concurrently recompiled code. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: add stack check when calling function that is in recompile queue. Created 7 years, 3 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 113
114 // Queue of incoming recompilation tasks (including OSR). 114 // Queue of incoming recompilation tasks (including OSR).
115 UnboundQueue<OptimizingCompiler*> input_queue_; 115 UnboundQueue<OptimizingCompiler*> input_queue_;
116 // Queue of recompilation tasks ready to be installed (excluding OSR). 116 // Queue of recompilation tasks ready to be installed (excluding OSR).
117 UnboundQueue<OptimizingCompiler*> output_queue_; 117 UnboundQueue<OptimizingCompiler*> output_queue_;
118 // List of all OSR related recompilation tasks (both incoming and ready ones). 118 // List of all OSR related recompilation tasks (both incoming and ready ones).
119 List<OptimizingCompiler*> osr_candidates_; 119 List<OptimizingCompiler*> osr_candidates_;
120 // List of recompilation tasks ready for OSR. 120 // List of recompilation tasks ready for OSR.
121 List<OptimizingCompiler*> ready_for_osr_; 121 List<OptimizingCompiler*> ready_for_osr_;
122 122
123 Mutex install_mutex_;
124 volatile AtomicWord stop_thread_; 123 volatile AtomicWord stop_thread_;
125 volatile Atomic32 queue_length_; 124 volatile Atomic32 queue_length_;
126 TimeDelta time_spent_compiling_; 125 TimeDelta time_spent_compiling_;
127 TimeDelta time_spent_total_; 126 TimeDelta time_spent_total_;
128 127
129 Mutex osr_list_mutex_; 128 Mutex osr_list_mutex_;
130 int osr_hits_; 129 int osr_hits_;
131 int osr_attempts_; 130 int osr_attempts_;
132 131
133 static const int kReadyForOSRLimit = 4; 132 static const int kReadyForOSRLimit = 4;
134 }; 133 };
135 134
136 } } // namespace v8::internal 135 } } // namespace v8::internal
137 136
138 #endif // V8_OPTIMIZING_COMPILER_THREAD_H_ 137 #endif // V8_OPTIMIZING_COMPILER_THREAD_H_
OLDNEW
« src/objects.h ('K') | « src/objects-inl.h ('k') | src/optimizing-compiler-thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698