Lines Matching refs:code
2 // Use of this source code is governed by a BSD-style license that can be
5 #include "src/heap/code-object-registry.h"
14 void CodeObjectRegistry::RegisterNewlyAllocatedCodeObject(Address code) {
18 (code_object_registry_.empty() || code_object_registry_.back() < code);
20 code_object_registry_.push_back(code);
23 void CodeObjectRegistry::RegisterAlreadyExistingCodeObject(Address code) {
27 DCHECK(code_object_registry_.empty() || code_object_registry_.back() < code);
28 code_object_registry_.push_back(code);
63 // The code registry can't be empty, else the code object can't exist.
66 // std::upper_bound returns the first code object strictly greater than
67 // address, so the code object containing the address has to be the previous
71 // The address has to be contained in a code object, so necessarily the
72 // address can't be smaller than the first code object.