5#ifndef RUNTIME_VM_UNIBROW_INL_H_
6#define RUNTIME_VM_UNIBROW_INL_H_
14template <
class T,
intptr_t s>
16 CacheEntry entry = entries_[c & kMask];
17 if (entry.code_point_ == c) {
18 if (entry.offset_ == 0) {
21 result[0] = c + entry.offset_;
25 return CalculateValue(c, n,
result);
29template <
class T,
intptr_t s>
31 bool allow_caching =
true;
35 entries_[c & kMask] = CacheEntry(c,
result[0] - c);
38 entries_[c & kMask] = CacheEntry(c, 0);
intptr_t get(int32_t c, int32_t n, int32_t *result)
std::unique_ptr< Expression > Convert(const Context &context, Position pos, const Type &type, ExpressionArray args)