// Copyright 2019 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef V8_TOOLS_DEBUG_HELPER_HEAP_CONSTANTS_H_ #define V8_TOOLS_DEBUG_HELPER_HEAP_CONSTANTS_H_ #include #include #include "debug-helper.h" namespace d = v8::debug_helper; namespace v8_debug_helper_internal { // Functions generated by gen-heap-constants.py, based on data from mkgrokdump: std::string FindKnownObjectInOldSpace(uintptr_t offset); std::string FindKnownObjectInReadOnlySpace(uintptr_t offset); std::string FindKnownObjectInMapSpace(uintptr_t offset); std::string FindKnownMapInstanceTypeInMapSpace(uintptr_t offset); std::string FindKnownMapInstanceTypeInReadOnlySpace(uintptr_t offset); void FillInUnknownHeapAddresses(d::HeapAddresses* heap_addresses, uintptr_t any_uncompressed_ptr); std::string FindKnownObject(uintptr_t address, const d::HeapAddresses& heap_addresses); } // namespace v8_debug_helper_internal #endif