MCPcopy Create free account
hub / github.com/GaijinEntertainment/daScript / getAotHashComment

Function getAotHashComment

src/simulate/simulate_fn_hash.cpp:251–264  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

249 }
250
251 string getAotHashComment ( const Function * fun ) {
252 DependencyCollector collector;
253 collector.collect(fun);
254 auto vec = collector.getStableDependencies();
255 TextWriter tw;
256 tw << fun->getMangledName() << " hash=0x" << HEX << fun->hash;
257 for ( const auto & fn : vec ) {
258 if ( !fn.first->noAot && !fn.first->builtIn && fn.first != fun ) {
259 tw << ", " << fn.second << "=0x" << fn.first->hash;
260 }
261 }
262 tw << DEC;
263 return tw.str();
264 }
265
266 uint64_t getVariableListAotHash ( const vector<const Variable *> & globs, uint64_t initHash ) {
267 DependencyCollector collector;

Callers 2

linkCppAotMethod · 0.85
get_aot_hash_comment_fnFunction · 0.85

Calls 4

getStableDependenciesMethod · 0.80
collectMethod · 0.45
getMangledNameMethod · 0.45
strMethod · 0.45

Tested by

no test coverage detected