code: function hashNumber(n) {
    if (n !== n || n === Infinity) {
      return 0;
    }
    let hash = n | 0;
    if (hash !== n) {
      hash ^= n * 0xffffffff;
    }
    while (n > 0xffffffff) {
      n /= 0xffffffff;
      hash ^= n;
    }
    return smi(hash);
  }
docs: Compress arbitrarily large numbers into smi hashes.