1 // Copyright 2020 the V8 project authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #ifndef V8_D8_COV_H_ 6 #define V8_D8_COV_H_ 7 8 // This file is defining functions to handle coverage which are needed for 9 // fuzzilli fuzzer It communicates coverage bitmap with fuzzilli through shared 10 // memory 11 // https://clang.llvm.org/docs/SanitizerCoverage.html 12 13 #include <cstdint> 14 #include <vector> 15 16 void sanitizer_cov_reset_edgeguards(); 17 uint32_t sanitizer_cov_count_discovered_edges(); 18 void cov_init_builtins_edges(uint32_t num_edges); 19 void cov_update_builtins_basic_block_coverage(const std::vector<bool>& cov_map); 20 21 #endif // V8_D8_COV_H_ 22