Lines Matching refs:Smi
105 return isolate->heap()->ToBoolean(Smi::IsValid(number));
177 // Converts a Number to a Smi, if possible. Returns NaN if the number is not
189 if (value == FastI2D(int_value) && Smi::IsValid(int_value)) {
190 return Smi::FromInt(int_value);
206 if (x_value == y_value) return Smi::FromInt(EQUAL);
211 return Smi::FromInt(x_value < y_value ? LESS : GREATER);
222 if (y_value >= 0) return Smi::FromInt(LESS);
223 if (x_value >= 0) return Smi::FromInt(GREATER);
267 if (x_scaled < y_scaled) return Smi::FromInt(LESS);
268 if (x_scaled > y_scaled) return Smi::FromInt(GREATER);
269 return Smi::FromInt(tie);
276 return Smi::FromInt(Smi::kMaxValue);