| 456 | } |
| 457 | |
| 458 | int Compiler::CachedRuneByteSuffix(uint8_t lo, uint8_t hi, bool foldcase, |
| 459 | int next) { |
| 460 | uint64_t key = MakeRuneCacheKey(lo, hi, foldcase, next); |
| 461 | std::unordered_map<uint64_t, int>::const_iterator it = rune_cache_.find(key); |
| 462 | if (it != rune_cache_.end()) |
| 463 | return it->second; |
| 464 | int id = UncachedRuneByteSuffix(lo, hi, foldcase, next); |
| 465 | rune_cache_[key] = id; |
| 466 | return id; |
| 467 | } |
| 468 | |
| 469 | bool Compiler::IsCachedRuneByteSuffix(int id) { |
| 470 | uint8_t lo = inst_[id].lo_; |
nothing calls this directly
no test coverage detected