Lines Matching defs:callback
38 static int Iterate(SlotSet* slot_set, MemoryChunk* chunk, Callback callback,
43 callback, mode);
136 // Iterates and filters the remembered set with the given callback.
137 // The callback should take (Address slot) and return SlotCallbackResult.
140 Callback callback) {
141 IterateMemoryChunks(heap, [mode, callback](MemoryChunk* chunk) {
143 Iterate(chunk, callback);
149 // The callback should take (MemoryChunk* chunk) and return void.
151 static void IterateMemoryChunks(Heap* heap, Callback callback) {
159 callback(chunk);
165 // the given callback. The callback should take (Address slot) and return
171 static int Iterate(MemoryChunk* chunk, Callback callback,
174 return RememberedSetOperations::Iterate(slot_set, chunk, callback, mode);
179 MemoryChunk* chunk, Callback callback,
187 chunk->buckets(), callback,
248 // Iterates and filters the remembered set with the given callback.
249 // The callback should take (SlotType slot_type, Address addr) and return
253 Callback callback) {
254 IterateMemoryChunks(heap, [mode, callback](MemoryChunk* chunk) {
256 IterateTyped(chunk, callback);
262 // given callback. The callback should take (SlotType slot_type, Address addr)
265 static void IterateTyped(MemoryChunk* chunk, Callback callback) {
269 slot_set->Iterate(callback, TypedSlotSet::KEEP_EMPTY_CHUNKS);
294 // Updates a typed slot using an untyped slot callback where |addr| depending
297 // The callback accepts FullMaybeObjectSlot and returns SlotCallbackResult.
300 Address addr, Callback callback);
303 // Updates a code entry slot using an untyped slot callback.
304 // The callback accepts FullMaybeObjectSlot and returns SlotCallbackResult.
307 Callback callback) {
310 SlotCallbackResult result = callback(FullMaybeObjectSlot(&code));
318 // Updates a code target slot using an untyped slot callback.
319 // The callback accepts FullMaybeObjectSlot and returns SlotCallbackResult.
322 Callback callback) {
326 SlotCallbackResult result = callback(FullMaybeObjectSlot(&new_target));
334 // Updates an embedded pointer slot using an untyped slot callback.
335 // The callback accepts FullMaybeObjectSlot and returns SlotCallbackResult.
338 Callback callback) {
342 SlotCallbackResult result = callback(FullMaybeObjectSlot(&new_target));