Home | History | Annotate | Download | only in src

Lines Matching defs:Smi

46 //   - Smi          (immediate small integer)
155 // Smi: [31 bit signed int] 0
310 // We may store the unsigned bit field as signed Smi value and do not
885 V(Smi) \
1029 // Since both Smi and HeapObject are subclasses of Object no
1100 // the same logical property. E.g., the smi 1, the string "1" and the double
1333 static Smi* GetOrCreateHash(Isolate* isolate, Handle<Object> object);
1429 // Smi represents integer Numbers that can be stored in 31 bits.
1434 // Smi stands for small integer.
1435 class Smi: public Object {
1440 // Convert a value to a Smi object.
1441 static inline Smi* FromInt(int value) {
1442 DCHECK(Smi::IsValid(value));
1443 return reinterpret_cast<Smi*>(Internals::IntToSmi(value));
1446 static inline Smi* FromIntptr(intptr_t value) {
1447 DCHECK(Smi::IsValid(value));
1449 return reinterpret_cast<Smi*>((value << smi_shift_bits) | kSmiTag);
1452 // Returns whether value can be represented in a Smi.
1459 DECLARE_CAST(Smi)
1463 DECLARE_VERIFIER(Smi)
1470 DISALLOW_IMPLICIT_CONSTRUCTORS(Smi);
1678 // represented in a Smi (small integer)
1983 inline static Smi* GetOrCreateIdentityHash(Isolate* isolate,
2284 inline void SetInternalField(int index, Smi* value);
2498 static Smi* GetOrCreateIdentityHash(Isolate* isolate,
2631 // Length is smi tagged when it is stored.
2653 inline void set(int index, Smi* value);
2798 static Object* Empty() { return Smi::FromInt(0); }
2835 void set(int index, Smi* value);
2874 // [1]: Either Smi(0) if uninitialized, or a pointer to small fixed array:
2876 // [1]: either Smi(0) or pointer to fixed array with indices
3282 set(kCapacityIndex, Smi::FromInt(capacity));
3469 this->set(kNextEnumerationIndexIndex, Smi::FromInt(index));
3473 return Smi::cast(this->get(kNextEnumerationIndexIndex))->value();
3559 return PropertyDetails(Smi::cast(dict->get(
3870 return Smi::cast(get(kNumberOfElementsIndex))->value();
3874 return Smi::cast(get(kNumberOfDeletedElementsIndex))->value();
3882 return Smi::cast(get(kNumberOfBucketsIndex))->value();
3895 return Smi::cast(entry)->value();
3902 return HashToEntry(Smi::cast(hash)->value());
3907 return Smi::cast(next_entry)->value();
3927 return Smi::cast(get(kRemovedHolesIndex + index))->value();
3964 set(kNumberOfBucketsIndex, Smi::FromInt(num));
3968 set(kNumberOfElementsIndex, Smi::FromInt(num));
3972 set(kNumberOfDeletedElementsIndex, Smi::FromInt(num));
3985 return set(kRemovedHolesIndex + index, Smi::FromInt(removed_index));
4543 // Size is smi tagged when it is stored.
4621 // This accessor applies the correct conversion from Smi, HeapNumber
4683 DECLARE_ELEMENT_ACCESSORS(InlinedFunctionCount, Smi)
4685 DECLARE_ELEMENT_ACCESSORS(OsrAstId, Smi)
4686 DECLARE_ELEMENT_ACCESSORS(OsrPcOffset, Smi)
4687 DECLARE_ELEMENT_ACCESSORS(OptimizationId, Smi)
4698 DECLARE_ENTRY_ACCESSORS(AstIdRaw, Smi)
4699 DECLARE_ENTRY_ACCESSORS(TranslationIndex, Smi)
4700 DECLARE_ENTRY_ACCESSORS(ArgumentsStackHeight, Smi)
4701 DECLARE_ENTRY_ACCESSORS(Pc, Smi)
4745 inline Smi* PcAndState(int index);
4746 inline void SetPcAndState(int index, Smi* offset);
4795 inline void set(int index, Smi* value);
4945 // STUB and ICs => major/minor key as Smi.
6367 // or Smi(0) if uninitialized.
6381 // going through this object, or Smi(0) if uninitialized.
6871 // - a Smi identifying a builtin function [HasBuiltinFunctionId()].
7174 // Smi fields.
7201 // The only reason to use smi fields instead of int fields is to allow
7353 // On 32 bit platforms, compiler hints is a smi.
7357 // On 64 bit platforms, compiler hints is not a smi, see comment above.
7581 static MaybeHandle<Smi> GetLength(Isolate* isolate,
7863 // [year]: caches year. Either undefined, smi, or NaN.
7865 // [month]: caches month. Either undefined, smi, or NaN.
7867 // [day]: caches day. Either undefined, smi, or NaN.
7869 // [weekday]: caches day of week. Either undefined, smi, or NaN.
7871 // [hour]: caches hours. Either undefined, smi, or NaN.
7873 // [min]: caches minutes. Either undefined, smi, or NaN.
7875 // [sec]: caches seconds. Either undefined, smi, or NaN.
7888 static Object* GetField(Object* date, Smi* index);
8016 // - a reference to code for Latin1 inputs (bytecode or compiled), or a smi
8018 // - a reference to code for UC16 inputs (bytecode or compiled), or a smi
9817 static Smi* GetOrCreateIdentityHash(Isolate* isolate, Handle<JSProxy> proxy);
9921 set_index(Smi::FromInt(Smi::cast(index())->value() + 1));
9927 Smi* Next(JSArray* value_array);
10241 // is set to a smi. This matches the set function on FixedArray.
10242 inline void set_length(Smi* length);
10710 static Smi* uninitialized() { return Smi::FromInt(0); }
10792 V(kSmiRootList, "smi_root_list", "(Smi roots)") \