Lines Matching defs:units

107 // A set of work-stealing queues (vectors of units). Each background compile
119 // Add one first queue, to add units to.
175 // As long as any lower-tier units are outstanding we need to steal them
176 // before executing own higher-tier units.
213 base::Vector<WasmCompilationUnit> units = pair.second;
214 if (units.empty()) continue;
215 num_units_[tier].fetch_add(units.size(), std::memory_order_relaxed);
216 for (WasmCompilationUnit unit : units) {
219 queue->units[tier].push_back(unit);
226 big_units_queue_.units[tier].emplace(func_size, unit);
253 // Get the current total number of units in all queues. This is only a
309 std::priority_queue<BigUnit> units[kNumTiers];
316 // Number of units after which the task processing this queue should publish
325 std::vector<WasmCompilationUnit> units[kNumTiers];
361 if (!queue->units[tier].empty()) {
362 auto unit = queue->units[tier].back();
363 queue->units[tier].pop_back();
370 // stolen units.
394 if (big_units_queue_.units[tier].empty()) return {};
395 WasmCompilationUnit unit = big_units_queue_.units[tier].top().unit;
396 big_units_queue_.units[tier].pop();
397 if (big_units_queue_.units[tier].empty()) {
427 // stolen units.
444 // Steal units of {wanted_tier} from {steal_from_task_id} to {queue}. Return
446 // {steal_from_task_id} had no units of {wanted_tier}.
457 auto* steal_from_vector = &steal_queue->units[wanted_tier];
466 auto* target_queue = &queue->units[wanted_tier];
473 // stolen unit, or {nullopt} if {steal_from_task_id} had no priority units.
562 // Initializes compilation units based on the information encoded in the
567 // Adds compilation units for another function to the
573 // for recompilation and add the respective compilation units. The callback is
704 // Wrapper compilation units are stored in shared_ptrs so that they are kept
989 // The {CompilationUnitBuilder} builds compilation units and stores them in an
1033 // For recompilation, just treat all units like baseline units.
1499 // Execute JS to Wasm wrapper units first, so that they are ready to be
1587 // Publish after finishing a certain amount of units, to avoid contention
1617 // Returns the number of units added.
1637 // Returns the number of units added.
1836 // Initialize the compilation units and kick off background compile tasks.
1886 // NumOutstandingCompilations() does not reflect the units that running
1988 // Initialize the compilation units and kick off background compile tasks.
2301 // Even if baseline compilation units finish first, we trigger the
3268 // with lazy compilation there are no compilation units.
3323 // their units, but just start our own recompilation already.
3366 // Generate necessary compilation units on the fly.
3500 "wasm.OnFinishedUnits", "units", code_vector.size());
3504 // In case of no outstanding compilation units we can return early.
3571 // non-debugging units.
3694 // For import wrapper compilation units, add result to the cache.
3833 // Everything except for top-tier units will be processed with kBaselineOnly
3872 // {outstanding_units_} includes the units that other workers are currently
3874 // the current number of outstanding units.
3896 // Prepare compilation units in the main thread.