Lines Matching refs:Smi
274 handle(Smi::FromInt(-1), isolate()), "undefined",
420 vector->set_optimized_code_weak_or_smi(MaybeObject::FromSmi(Smi::FromEnum(
517 result->set(FrameArray::kFrameCountIndex, Smi::kZero);
1360 context->set_errors_thrown(Smi::kZero);
1361 context->set_math_random_index(Smi::kZero);
1686 // TODO(7881): Smi length check
1687 DCHECK(0 <= length && length <= Smi::kMaxValue);
1693 elements->set_base_pointer(Smi::kZero, SKIP_WRITE_BARRIER);
1702 // TODO(7881): Smi length check
1703 DCHECK(0 <= length && length <= Smi::kMaxValue);
1771 cell->set_property_details(PropertyDetails(Smi::kZero));
1789 MaybeObject::FromObject(Smi::kZero));
1792 MaybeObject::FromObject(Smi::FromInt(number_of_transitions)));
1843 map->set_prototype_validity_cell(Smi::FromInt(Map::kPrototypeChainValid));
1847 map->set_raw_transitions(MaybeObject::FromSmi(Smi::kZero));
2143 // Materialize as a SMI if possible.
2146 return handle(Smi::FromInt(int_value), isolate());
2153 if (Smi::IsValid(value)) return handle(Smi::FromInt(value), isolate());
2161 if (int32v >= 0 && Smi::IsValid(int32v)) {
2162 return handle(Smi::FromInt(int32v), isolate());
2847 // to a number (e.g. Smi::kZero) and the elements initialized to a
2943 array->set_length(Smi::FromInt(length));
2953 array->set_length(Smi::kZero);
2979 array->set_length(Smi::FromInt(length));
3038 module->set_hash(isolate()->GenerateIdentityHash(Smi::kMaxValue));
3104 result->set_index(Smi::FromInt(index));
3114 result->set_index(Smi::FromInt(index));
3192 obj->SetEmbedderField(i, Smi::kZero);
3237 // TODO(7881): Smi length check
3238 CHECK(length <= static_cast<size_t>(Smi::kMaxValue));
3261 obj->SetEmbedderField(i, Smi::kZero);
3270 // TODO(7881): Smi length check
3271 CHECK(number_of_elements <= static_cast<size_t>(Smi::kMaxValue));
3274 obj->set_byte_offset(Smi::kZero);
3514 // Set integer fields (smi or int, depending on the architecture).
3541 inline int NumberToStringCacheHash(Handle<FixedArray> cache, Smi* number) {
3587 if (number->IsSmi()) return NumberToString(Smi::cast(*number), check_cache);
3593 return NumberToString(Smi::FromInt(smi_value), check_cache);
3610 Handle<String> Factory::NumberToString(Smi* number, bool check_cache) {
3686 stack_frame_info->set_script_name(Smi::kZero);
3687 stack_frame_info->set_script_name_or_source_url(Smi::kZero);
3688 stack_frame_info->set_function_name(Smi::kZero);
3718 Handle<Smi> value(Smi::FromInt(length), isolate());
3821 store->set(JSRegExp::kTagIndex, Smi::FromInt(type));
3823 store->set(JSRegExp::kFlagsIndex, Smi::FromInt(flags));
3832 Smi* uninitialized = Smi::FromInt(JSRegExp::kUninitializedValue);
3833 store->set(JSRegExp::kTagIndex, Smi::FromInt(type));
3835 store->set(JSRegExp::kFlagsIndex, Smi::FromInt(flags));
3838 store->set(JSRegExp::kIrregexpMaxRegisterCountIndex, Smi::kZero);
3839 store->set(JSRegExp::kIrregexpCaptureCountIndex, Smi::FromInt(capture_count));
4077 promise->set_reactions_or_result(Smi::kZero);
4080 promise->SetEmbedderField(i, Smi::kZero);