Lines Matching refs:FromInt
144 if (!index->ToArrayIndex(&start_index)) return Smi::FromInt(-1); in RUNTIME_FUNCTION()
148 return Smi::FromInt(position); in RUNTIME_FUNCTION()
195 if (!index->ToArrayIndex(&start_index)) return Smi::FromInt(-1); in RUNTIME_FUNCTION()
205 return Smi::FromInt(start_index); in RUNTIME_FUNCTION()
237 return Smi::FromInt(position); in RUNTIME_FUNCTION()
248 if (str1.is_identical_to(str2)) return Smi::FromInt(0); // Equal. in RUNTIME_FUNCTION()
254 if (str2_length == 0) return Smi::FromInt(0); // Equal. in RUNTIME_FUNCTION()
255 return Smi::FromInt(-str2_length); in RUNTIME_FUNCTION()
257 if (str2_length == 0) return Smi::FromInt(str1_length); in RUNTIME_FUNCTION()
266 if (d != 0) return Smi::FromInt(d); in RUNTIME_FUNCTION()
277 return Smi::FromInt(flat1.Get(i) - flat2.Get(i)); in RUNTIME_FUNCTION()
281 return Smi::FromInt(str1_length - str2_length); in RUNTIME_FUNCTION()
383 result->set_length(Smi::FromInt(matches)); in RUNTIME_FUNCTION()
404 return Smi::FromInt(subject->Get(i)); in RUNTIME_FUNCTION()
416 return Smi::FromInt(LESS); in RUNTIME_FUNCTION()
418 return Smi::FromInt(EQUAL); in RUNTIME_FUNCTION()
420 return Smi::FromInt(GREATER); in RUNTIME_FUNCTION()
425 return Smi::FromInt(0); in RUNTIME_FUNCTION()
733 DCHECK(Smi::FromInt(0) == 0); in CopyCachedOneByteCharsToArray()
739 DCHECK(element == Smi::FromInt(0) || in CopyCachedOneByteCharsToArray()
879 return (overflows && !ignore_overflow) ? Smi::FromInt(-current_length) in ConvertCaseHelper()
880 : Smi::FromInt(current_length); in ConvertCaseHelper()
1163 return Smi::FromInt(not_equal); in RUNTIME_FUNCTION()
1190 if (!args[0]->IsString()) return Smi::FromInt(0); in RUNTIME_FUNCTION()
1191 if (!args[1]->IsNumber()) return Smi::FromInt(0); in RUNTIME_FUNCTION()
1204 return Smi::FromInt(string->SeqOneByteStringGet(index)); in RUNTIME_FUNCTION()
1224 return Smi::FromInt(string->SeqTwoByteStringGet(index)); in RUNTIME_FUNCTION()