Lines Matching refs:std
57 std::cout << str << std::endl; \
64 std::cout << str << " " << type.getAsString() << std::endl; \
73 std::cout << str << std::endl; \
78 typedef std::string MangledName;
79 typedef std::set<MangledName> CalleesSet;
80 typedef std::map<MangledName, MangledName> CalleesMap;
100 static std::string EXTERNAL("EXTERNAL");
101 static std::string STATE_TAG("enum v8::internal::StateTag");
240 const std::string& function = f->getNameAsString();
251 typedef std::map<MangledName, CalleesSet* > Callgraph;
280 std::cout << i->first << "," << mangled_to_function_[i->first] << "\n";
286 std::cout << "\t" << *j << "," << mangled_to_function_[*j] << "\n";
294 std::stack<CalleesSet* > scopes_;
307 const std::vector<std::string>& args)
340 static std::map<MangledName, std::vector<MangledName>> gc_causes;
344 std::ifstream fin("gccauses");
345 std::string mangled, function;
347 std::getline(fin, mangled, ',');
348 std::getline(fin, function);
350 std::string parent = mangled;
352 std::getline(fin, mangled, ',');
354 std::getline(fin, function);
357 std::getline(fin, mangled, ',');
358 std::getline(fin, function);
372 std::ifstream fin("gcsuspects");
373 std::string mangled, function;
376 std::getline(fin, mangled, ',');
378 std::getline(fin, function);
389 std::ifstream fin("tools/gcmole/suspects.allowlist");
390 std::string s;
457 ExprEffect Define(const std::string& name);
475 const std::string BAD_EXPR_MSG(
477 const std::string DEAD_VAR_MSG("Possibly stale variable due to GCs.");
502 typedef std::map<std::string, int> SymbolTable;
504 bool IsAlive(const std::string& name) const {
512 size_t size = std::max(live_.size(), env.live_.size());
519 Environment Define(const std::string& name) const {
523 void MDefine(const std::string& name) { set_live(SymbolToCode(name)); }
525 static int SymbolToCode(const std::string& name) {
530 symbol_table_.insert(std::make_pair(name, new_code));
545 std::cout << "{";
548 if (comma) std::cout << ", ";
549 std::cout << e.first;
552 std::cout << "}" << std::endl;
595 size_t size = std::max(live_.size(), o.live_.size());
604 static std::vector<Environment*> envs_;
606 std::vector<bool> live_;
645 std::bitset<kMaxNumberOfArguments> raw = (raw_def_ | raw_use_);
653 std::bitset<kMaxNumberOfArguments> raw_def_;
654 std::bitset<kMaxNumberOfArguments> raw_use_;
655 std::bitset<kMaxNumberOfArguments> gc_;
661 std::vector<Environment*> Environment::envs_;
687 ExprEffect ExprEffect::Define(const std::string& name) {
697 static std::string THIS ("this");
848 bool IsRawPointerVar(clang::Expr* expr, std::string* var_name) {
940 std::string var_name;
998 const std::string& var_name,
1054 std::string var_name;
1470 void ReportUnsafe(const clang::Expr* expr, const std::string& msg) {
1491 std::cout << "Potential GC call chain:\n";
1492 std::set<MangledName> stack;
1495 std::cout << "\t" << name << "\n";
1498 std::vector<MangledName> calls = next->second;
1541 std::vector<GCScope> scopes_;
1548 const std::vector<std::string>& args)
1561 std::ifstream fin("tools/gcmole/ignored_files");
1562 std::string s;
1568 std::string filename = sm_.getFileEntryForID(main_file_id)->getName().str();
1644 std::set<std::string> ignored_files_;
1652 virtual std::unique_ptr<clang::ASTConsumer> CreateASTConsumer(
1654 return std::unique_ptr<clang::ASTConsumer>(
1659 const std::vector<std::string>& args) {
1667 std::vector<std::string> args_;