Lines Matching refs:FromInt
523 object->set_length(Smi::FromInt(copied_elements_values->length())); in CreateArrayLiteralBoilerplate()
813 weakmap->set_next(Smi::FromInt(0)); in RUNTIME_FUNCTION()
1777 array->set_length(Smi::FromInt(elements_count)); in RUNTIME_FUNCTION()
1815 Smi::FromInt(0), in RUNTIME_FUNCTION()
1846 Smi::FromInt(0), in RUNTIME_FUNCTION()
1861 return Smi::FromInt(0); in RUNTIME_FUNCTION()
2035 return Smi::FromInt(pos); in RUNTIME_FUNCTION()
2048 return Smi::FromInt(code->SourcePosition(pc)); in RUNTIME_FUNCTION()
2282 return Smi::FromInt(subject->Get(i)); in RUNTIME_FUNCTION()
2363 result_array->set_length(Smi::FromInt(length_)); in ToJSArray()
2369 target_array->set_length(Smi::FromInt(length_)); in ToJSArray()
2423 builder->Add(Smi::FromInt(encoded_slice)); in AddSubjectSlice()
2426 builder->Add(Smi::FromInt(-length)); in AddSubjectSlice()
2427 builder->Add(Smi::FromInt(from)); in AddSubjectSlice()
3410 if (!index->ToArrayIndex(&start_index)) return Smi::FromInt(-1); in RUNTIME_FUNCTION()
3415 return Smi::FromInt(position); in RUNTIME_FUNCTION()
3462 if (!index->ToArrayIndex(&start_index)) return Smi::FromInt(-1); in RUNTIME_FUNCTION()
3472 return Smi::FromInt(start_index); in RUNTIME_FUNCTION()
3508 return Smi::FromInt(position); in RUNTIME_FUNCTION()
3519 if (str1 == str2) return Smi::FromInt(0); // Equal. in RUNTIME_FUNCTION()
3525 if (str2_length == 0) return Smi::FromInt(0); // Equal. in RUNTIME_FUNCTION()
3526 return Smi::FromInt(-str2_length); in RUNTIME_FUNCTION()
3528 if (str2_length == 0) return Smi::FromInt(str1_length); in RUNTIME_FUNCTION()
3537 if (d != 0) return Smi::FromInt(d); in RUNTIME_FUNCTION()
3553 if (char1 != char2) return Smi::FromInt(char1 - char2); in RUNTIME_FUNCTION()
3556 return Smi::FromInt(str1_length - str2_length); in RUNTIME_FUNCTION()
3637 result->set_length(Smi::FromInt(matches)); in RUNTIME_FUNCTION()
3925 elements->set(capture_count + 1, Smi::FromInt(match_start)); in SearchRegExpMultiple()
5026 return Smi::FromInt(0); in RUNTIME_FUNCTION()
5034 return Smi::FromInt(result); in RUNTIME_FUNCTION()
5153 if (key->Equals(isolate->heap()->length_symbol())) return Smi::FromInt(n); in RUNTIME_FUNCTION()
5268 if (len == 0) return Smi::FromInt(0); in RUNTIME_FUNCTION()
5304 return Smi::FromInt(d); in RUNTIME_FUNCTION()
6022 return Smi::FromInt(current_length); in ConvertCaseHelper()
6280 if (*cached_answer != Smi::FromInt(0)) { in RUNTIME_FUNCTION()
6317 result->set_length(Smi::FromInt(part_count)); in RUNTIME_FUNCTION()
6370 ASSERT(Smi::FromInt(0) == 0); in CopyCachedAsciiCharsToArray()
6376 ASSERT(element == Smi::FromInt(0) || in CopyCachedAsciiCharsToArray()
6482 return Smi::FromInt(static_cast<int>(number)); in RUNTIME_FUNCTION()
6496 return Smi::FromInt(static_cast<int>(number)); in RUNTIME_FUNCTION()
6524 return Smi::FromInt(static_cast<int>(number)); in RUNTIME_FUNCTION()
6544 return Smi::FromInt(int_value); in RUNTIME_FUNCTION()
7089 if (isnan(x)) return Smi::FromInt(NOT_EQUAL); in RUNTIME_FUNCTION()
7090 if (isnan(y)) return Smi::FromInt(NOT_EQUAL); in RUNTIME_FUNCTION()
7091 if (x == y) return Smi::FromInt(EQUAL); in RUNTIME_FUNCTION()
7094 result = Smi::FromInt(EQUAL); in RUNTIME_FUNCTION()
7096 result = Smi::FromInt(NOT_EQUAL); in RUNTIME_FUNCTION()
7116 return Smi::FromInt(not_equal); in RUNTIME_FUNCTION()
7127 if (x == y) return Smi::FromInt(EQUAL); in RUNTIME_FUNCTION()
7128 if (isless(x, y)) return Smi::FromInt(LESS); in RUNTIME_FUNCTION()
7129 return Smi::FromInt(GREATER); in RUNTIME_FUNCTION()
7142 if (x_value == y_value) return Smi::FromInt(EQUAL); in RUNTIME_FUNCTION()
7147 return Smi::FromInt(x_value < y_value ? LESS : GREATER); in RUNTIME_FUNCTION()
7158 if (y_value >= 0) return Smi::FromInt(LESS); in RUNTIME_FUNCTION()
7159 if (x_value >= 0) return Smi::FromInt(GREATER); in RUNTIME_FUNCTION()
7204 if (x_scaled < y_scaled) return Smi::FromInt(LESS); in RUNTIME_FUNCTION()
7205 if (x_scaled > y_scaled) return Smi::FromInt(GREATER); in RUNTIME_FUNCTION()
7206 return Smi::FromInt(tie); in RUNTIME_FUNCTION()
7219 if (d < 0) return Smi::FromInt(LESS); in StringInputBufferCompare()
7220 else if (d > 0) return Smi::FromInt(GREATER); in StringInputBufferCompare()
7224 if (bufy.has_more()) return Smi::FromInt(LESS); in StringInputBufferCompare()
7226 return Smi::FromInt(bufx.has_more() ? GREATER : EQUAL); in StringInputBufferCompare()
7233 Object* equal_prefix_result = Smi::FromInt(EQUAL); in FlatStringCompare()
7237 equal_prefix_result = Smi::FromInt(GREATER); in FlatStringCompare()
7239 equal_prefix_result = Smi::FromInt(LESS); in FlatStringCompare()
7267 result = (r < 0) ? Smi::FromInt(LESS) : Smi::FromInt(GREATER); in FlatStringCompare()
7285 if (x == y) return Smi::FromInt(EQUAL); in RUNTIME_FUNCTION()
7287 if (x->length() == 0) return Smi::FromInt(EQUAL); in RUNTIME_FUNCTION()
7288 return Smi::FromInt(GREATER); in RUNTIME_FUNCTION()
7290 return Smi::FromInt(LESS); in RUNTIME_FUNCTION()
7294 if (d < 0) return Smi::FromInt(LESS); in RUNTIME_FUNCTION()
7295 else if (d > 0) return Smi::FromInt(GREATER); in RUNTIME_FUNCTION()
7459 return Smi::FromInt(1); in RUNTIME_FUNCTION()
7488 return Smi::FromInt(0); in RUNTIME_FUNCTION()
7495 return Smi::FromInt(static_cast<int>(value + 0.5)); in RUNTIME_FUNCTION()
7548 return Smi::FromInt(isolate->date_cache()->DaysFromYearMonth(year, month)); in RUNTIME_FUNCTION()
7664 parameter_map->set(index + 2, Smi::FromInt( in RUNTIME_FUNCTION()
8251 return Smi::FromInt(4); // 4 == "never". in RUNTIME_FUNCTION()
8254 return Smi::FromInt(3); // 3 == "always". in RUNTIME_FUNCTION()
8257 return function->IsOptimized() ? Smi::FromInt(1) // 1 == "yes". in RUNTIME_FUNCTION()
8258 : Smi::FromInt(2); // 2 == "no". in RUNTIME_FUNCTION()
8266 return Smi::FromInt(function->shared()->opt_count()); in RUNTIME_FUNCTION()
8385 return Smi::FromInt(ast_id); in RUNTIME_FUNCTION()
8390 return Smi::FromInt(-1); in RUNTIME_FUNCTION()
9484 Handle<Smi> e(Smi::FromInt(static_cast<int>(array->get_scalar(j)))); in IterateExternalArrayElements()
9492 Handle<Smi> e(Smi::FromInt(static_cast<int>(val))); in IterateExternalArrayElements()
9703 Handle<Smi> e(Smi::FromInt(pixels->get_scalar(j))); in IterateElements()
9911 from->set_length(Smi::FromInt(0)); in RUNTIME_FUNCTION()
9923 return Smi::FromInt(result); in RUNTIME_FUNCTION()
9927 return Smi::FromInt(FixedArray::cast(elements)->length()); in RUNTIME_FUNCTION()
9966 single_interval->set(0, Smi::FromInt(-1)); in RUNTIME_FUNCTION()
9999 return Smi::FromInt(id >> 2); in WrapFrameId()
10223 return Smi::FromInt(static_cast<int>(details.type())); in RUNTIME_FUNCTION()
10232 return Smi::FromInt(static_cast<int>(details.attributes())); in RUNTIME_FUNCTION()
10241 return Smi::FromInt(details.index()); in RUNTIME_FUNCTION()
10304 return Smi::FromInt(0); in RUNTIME_FUNCTION()
10310 return Smi::FromInt(n); in RUNTIME_FUNCTION()
10584 details->set(kFrameDetailsArgumentCountIndex, Smi::FromInt(argument_count)); in RUNTIME_FUNCTION()
10588 Smi::FromInt(scope_info->LocalCount())); in RUNTIME_FUNCTION()
10592 details->set(kFrameDetailsSourcePositionIndex, Smi::FromInt(position)); in RUNTIME_FUNCTION()
10615 details->set(kFrameDetailsFlagsIndex, Smi::FromInt(flags)); in RUNTIME_FUNCTION()
11223 return Smi::FromInt(n); in RUNTIME_FUNCTION()
11274 details->set(kScopeDetailsTypeIndex, Smi::FromInt(it.Type())); in RUNTIME_FUNCTION()
11322 return Smi::FromInt(n + 1); in RUNTIME_FUNCTION()
11359 Smi::FromInt(ThreadId::Current().ToInteger())); in RUNTIME_FUNCTION()
11377 Smi::FromInt(thread->id().ToInteger())); in RUNTIME_FUNCTION()
11428 return Smi::FromInt(source_position); in RUNTIME_FUNCTION()
11547 return Smi::FromInt(position); in RUNTIME_FUNCTION()
11596 return Smi::FromInt(result); in RUNTIME_FUNCTION()
12369 result->set_length(Smi::FromInt(number)); in RUNTIME_FUNCTION()
12558 return Smi::FromInt(closest_pc); in RUNTIME_FUNCTION()
12615 return Smi::FromInt(usage); in RUNTIME_FUNCTION()
12974 Handle<Smi> offset(Smi::FromInt(frames[i].offset())); in RUNTIME_FUNCTION()
12986 result->set_length(Smi::FromInt(cursor)); in RUNTIME_FUNCTION()
13140 return Smi::FromInt(message->start_position()); in RUNTIME_FUNCTION()
13180 pair_elements->set(1, Smi::FromInt(argc)); \ in RUNTIME_FUNCTION()
13279 Smi::FromInt(i), in InitializeIntrinsicFunctionNames()