Lines Matching refs:Smi
37 PropertyDetails::PropertyDetails(Smi* smi) { in PropertyDetails()
42 Smi* PropertyDetails::AsSmi() const { in AsSmi()
46 return Smi::FromInt(value >> 1); in AsSmi()
93 return Smi::cast(value)->value(); \
96 WRITE_FIELD(this, offset, Smi::FromInt(value)); \
102 return Smi::cast(value)->value(); \
105 RELEASE_WRITE_FIELD(this, offset, Smi::FromInt(value)); \
111 return Smi::cast(value)->value(); \
114 NOBARRIER_WRITE_FIELD(this, offset, Smi::FromInt(value)); \
313 return handle(Smi::FromInt(0), isolate); in NewStorageFor()
1092 ? static_cast<double>(reinterpret_cast<const Smi*>(this)->value()) in Number()
1111 return Representation::Smi(); in OptimalRepresentation()
1628 set_transition_info(Smi::FromInt(0)); in Initialize()
1630 set_nested_site(Smi::FromInt(0)); in Initialize()
1660 int value = Smi::cast(transition_info())->value(); in GetElementsKind()
1666 int value = Smi::cast(transition_info())->value(); in SetElementsKind()
1667 set_transition_info(Smi::FromInt(ElementsKindBits::update(value, kind)), in SetElementsKind()
1673 int value = Smi::cast(transition_info())->value(); in CanInlineCall()
1679 int value = Smi::cast(transition_info())->value(); in SetDoNotInlineCall()
1680 set_transition_info(Smi::FromInt(DoNotInlineBit::update(value, true)), in SetDoNotInlineCall()
1994 return Smi::cast(READ_FIELD(this, kKindOffset))->value(); in ACCESSORS()
1999 WRITE_FIELD(this, kKindOffset, Smi::FromInt(value)); in set_kind()
2016 return PropertyDetails(Smi::cast(property_details_raw())); in ACCESSORS()
2033 WRITE_FIELD(this, kValueOffset, Smi::FromInt(0)); in clear()
2049 bool WeakCell::cleared() const { return value() == Smi::FromInt(0); } in cleared()
2172 void JSObject::SetInternalField(int index, Smi* value) { in SetInternalField()
2378 void FixedArray::set(int index, Smi* value) { in set()
2478 FixedArray::cast(this)->set(index + kFirstIndex, Smi::FromInt(0)); in Clear()
2488 return Smi::cast(FixedArray::cast(this)->get(kLastUsedIndexIndex))->value(); in last_used_index()
2493 FixedArray::cast(this)->set(kLastUsedIndexIndex, Smi::FromInt(index)); in set_last_used_index()
2514 return Smi::cast(FixedArray::cast(this)->get(kLengthIndex))->value(); in Length()
2519 return FixedArray::cast(this)->set(kLengthIndex, Smi::FromInt(length)); in SetLength()
2644 return len == 0 ? 0 : Smi::cast(get(kDescriptorLengthIndex))->value(); in number_of_descriptors()
2661 this, kDescriptorLengthOffset, Smi::FromInt(number_of_descriptors)); in SetNumberOfDescriptors()
2965 return PropertyDetails(Smi::cast(details)); in GetDetails()
3071 return Smi::cast(get(kNumberOfElementsIndex))->value(); in NumberOfElements()
3076 return Smi::cast(get(kNumberOfDeletedElementsIndex))->value(); in NumberOfDeletedElements()
3081 return Smi::cast(get(kCapacityIndex))->value(); in Capacity()
3116 set(kNumberOfElementsIndex, Smi::FromInt(nof)); in SetNumberOfElements()
3121 set(kNumberOfDeletedElementsIndex, Smi::FromInt(nod)); in SetNumberOfDeletedElements()
3162 (Smi::cast(max_index_object)->value() & kRequiresSlowElementsMask); in requires_slow_elements()
3170 uint32_t value = static_cast<uint32_t>(Smi::cast(max_index_object)->value()); in max_number_key()
3176 set(kMaxNumberKeyIndex, Smi::FromInt(kRequiresSlowElementsMask)); in set_requires_slow_elements()
3260 CAST_ACCESSOR(Smi)
3308 DEFINE_DEOPT_ELEMENT_ACCESSORS(InlinedFunctionCount, Smi) in DEFINE_DEOPT_ELEMENT_ACCESSORS()
3310 DEFINE_DEOPT_ELEMENT_ACCESSORS(OsrAstId, Smi) in DEFINE_DEOPT_ELEMENT_ACCESSORS()
3311 DEFINE_DEOPT_ELEMENT_ACCESSORS(OsrPcOffset, Smi) in DEFINE_DEOPT_ELEMENT_ACCESSORS()
3312 DEFINE_DEOPT_ELEMENT_ACCESSORS(OptimizationId, Smi) in DEFINE_DEOPT_ELEMENT_ACCESSORS()
3327 DEFINE_DEOPT_ENTRY_ACCESSORS(AstIdRaw, Smi)
3328 DEFINE_DEOPT_ENTRY_ACCESSORS(TranslationIndex, Smi)
3329 DEFINE_DEOPT_ENTRY_ACCESSORS(ArgumentsStackHeight, Smi)
3330 DEFINE_DEOPT_ENTRY_ACCESSORS(Pc, Smi)
3341 SetAstIdRaw(i, Smi::FromInt(value.ToInt())); in SetAstId()
3354 return BailoutId(Smi::cast(get(index * 2))->value()); in AstId()
3359 set(index * 2, Smi::FromInt(id.ToInt())); in SetAstId()
3363 Smi* DeoptimizationOutputData::PcAndState(int index) { in PcAndState()
3364 return Smi::cast(get(1 + index * 2)); in PcAndState()
3368 void DeoptimizationOutputData::SetPcAndState(int index, Smi* offset) { in SetPcAndState()
3381 void LiteralsArray::set(int index, Smi* value) { in set()
3423 set(index * kRangeEntrySize + kRangeStartIndex, Smi::FromInt(value)); in SetRangeStart()
3428 set(index * kRangeEntrySize + kRangeEndIndex, Smi::FromInt(value)); in SetRangeEnd()
3436 set(index * kRangeEntrySize + kRangeHandlerIndex, Smi::FromInt(value)); in SetRangeHandler()
3441 set(index * kRangeEntrySize + kRangeDepthIndex, Smi::FromInt(value)); in SetRangeDepth()
3446 set(index * kReturnEntrySize + kReturnOffsetIndex, Smi::FromInt(value)); in SetReturnOffset()
3454 set(index * kReturnEntrySize + kReturnHandlerIndex, Smi::FromInt(value)); in SetReturnHandler()
4109 if (base_pointer() == Smi::FromInt(0)) return 0; in DataSize()
4235 int int_value = Smi::cast(value)->value(); in SetValue()
4250 return handle(Smi::FromInt(scalar), isolate); in ToHandle()
4256 return handle(Smi::FromInt(scalar), isolate); in ToHandle()
4261 return handle(Smi::FromInt(scalar), isolate); in ToHandle()
4266 return handle(Smi::FromInt(scalar), isolate); in ToHandle()
4271 return handle(Smi::FromInt(scalar), isolate); in ToHandle()
4779 int DependentCode::flags() { return Smi::cast(get(kFlagsIndex))->value(); } in flags()
4783 set(kFlagsIndex, Smi::FromInt(flags)); in set_flags()
5953 return static_cast<BuiltinFunctionId>(Smi::cast(function_data())->value()); in builtin_function_id()
6395 Smi* smi_key = Smi::cast(raw_type_feedback_info()); in stub_key()
6402 set_raw_type_feedback_info(Smi::FromInt(key)); in set_stub_key()
6531 if (WasNeutered()) return Smi::FromInt(0); in byte_offset()
6543 if (WasNeutered()) return Smi::FromInt(0); in byte_length()
6567 if (WasNeutered()) return Smi::FromInt(0); in length()
6599 Smi* smi = Smi::cast(FixedArray::cast(data)->get(kTagIndex)); in ACCESSORS()
6609 return Smi::cast(DataAt(kIrregexpCaptureCountIndex))->value(); in CaptureCount()
6620 Smi* smi = Smi::cast(FixedArray::cast(data)->get(kFlagsIndex)); in GetFlags()
7166 Handle<Smi> JSReceiver::GetOrCreateIdentityHash(Handle<JSReceiver> object) { in GetOrCreateIdentityHash()
7277 this->SetEntry(entry, key, value, PropertyDetails(Smi::FromInt(0))); in SetEntry()
7424 return Smi::cast(key->GetHash())->value(); in Hash()
7430 return Smi::cast(other->GetHash())->value(); in HashForObject()
7497 void ScopeInfo::Set##name(int value) { set(k##name, Smi::FromInt(value)); } \
7500 return Smi::cast(get(k##name))->value(); \
7530 void JSArray::set_length(Smi* length) { in set_length()
7564 array->set_length(Smi::FromInt(storage->length())); in SetContent()
7569 int current = Smi::cast(READ_FIELD(this, kStorage1Offset))->value(); in ic_total_count()
7575 int value = Smi::cast(READ_FIELD(this, kStorage1Offset))->value(); in set_ic_total_count()
7578 WRITE_FIELD(this, kStorage1Offset, Smi::FromInt(value)); in set_ic_total_count()
7583 int current = Smi::cast(READ_FIELD(this, kStorage2Offset))->value(); in ic_with_type_info_count()
7590 int value = Smi::cast(READ_FIELD(this, kStorage2Offset))->value(); in change_ic_with_type_info_count()
7600 WRITE_FIELD(this, kStorage2Offset, Smi::FromInt(value)); in change_ic_with_type_info_count()
7606 return Smi::cast(READ_FIELD(this, kStorage3Offset))->value(); in ic_generic_count()
7614 new_count &= ~Smi::kMinValue; in change_ic_generic_count()
7615 WRITE_FIELD(this, kStorage3Offset, Smi::FromInt(new_count)); in change_ic_generic_count()
7621 WRITE_FIELD(this, kStorage1Offset, Smi::FromInt(0)); in initialize_storage()
7622 WRITE_FIELD(this, kStorage2Offset, Smi::FromInt(0)); in initialize_storage()
7623 WRITE_FIELD(this, kStorage3Offset, Smi::FromInt(0)); in initialize_storage()
7628 int value = Smi::cast(READ_FIELD(this, kStorage1Offset))->value(); in change_own_type_change_checksum()
7633 if (value > Smi::kMaxValue) value |= Smi::kMinValue; in change_own_type_change_checksum()
7634 if (value < Smi::kMinValue) value &= ~Smi::kMinValue; in change_own_type_change_checksum()
7635 WRITE_FIELD(this, kStorage1Offset, Smi::FromInt(value)); in change_own_type_change_checksum()
7640 int value = Smi::cast(READ_FIELD(this, kStorage2Offset))->value(); in set_inlined_type_change_checksum()
7644 if (value > Smi::kMaxValue) value |= Smi::kMinValue; in set_inlined_type_change_checksum()
7645 if (value < Smi::kMinValue) value &= ~Smi::kMinValue; in set_inlined_type_change_checksum()
7646 WRITE_FIELD(this, kStorage2Offset, Smi::FromInt(value)); in set_inlined_type_change_checksum()
7651 int value = Smi::cast(READ_FIELD(this, kStorage1Offset))->value(); in own_type_change_checksum()
7657 int value = Smi::cast(READ_FIELD(this, kStorage2Offset))->value(); in matches_inlined_type_change_checksum()
7682 int index = Smi::cast(this->index())->value(); in CurrentKey()
7702 int index = Smi::cast(this->index())->value(); in CurrentValue()