Lines Matching defs:Smi

52 //     - Smi          (immediate small integer)
126 // Smi: [31 bit signed int] 0
774 V(Smi) \
858 // Since Smi and Failure are subclasses of Object no
913 // Converts this to a Smi if possible.
996 // Smi represents integer Numbers that can be stored in 31 bits.
1001 // Smi stands for small integer.
1002 class Smi: public Object {
1007 // Convert a value to a Smi object.
1008 static inline Smi* FromInt(int value);
1010 static inline Smi* FromIntptr(intptr_t value);
1012 // Returns whether value can be represented in a Smi.
1016 static inline Smi* cast(Object* object);
1033 DISALLOW_IMPLICIT_CONSTRUCTORS(Smi);
1306 // represented in a Smi (small integer)
1458 Smi* GenerateIdentityHash();
1736 // be represented as a double and not a Smi.
1852 inline void SetInternalField(int index, Smi* value);
2240 inline void set(int index, Smi* value);
2254 inline void set_unchecked(int index, Smi* value);
2406 // [0]: storage for bit_field3 for Map owning this object (Smi)
2408 // [2]: next enumeration index (Smi), or pointer to small fixed array:
2409 // [0]: next enumeration index (Smi)
2432 return Smi::cast(obj)->value();
2435 return Smi::cast(index)->value();
2442 set(kEnumerationIndexIndex, Smi::FromInt(value));
2470 inline Smi* GetDetails(int descriptor_number);
2725 return Smi::cast(get(kNumberOfElementsIndex))->value();
2730 return Smi::cast(get(kNumberOfDeletedElementsIndex))->value();
2735 return Smi::cast(get(kCapacityIndex))->value();
2820 set(kNumberOfElementsIndex, Smi::FromInt(nof));
2825 set(kNumberOfDeletedElementsIndex, Smi::FromInt(nod));
2835 set(kCapacityIndex, Smi::FromInt(capacity));
2999 Smi::cast(this->get(HashTable<Shape, Key>::EntryToIndex(entry) + 2)));
3033 this->set(kNextEnumerationIndexIndex, Smi::FromInt(index));
3037 return Smi::cast(FixedArray::get(kNextEnumerationIndexIndex))->value();
3447 set(k##name, Smi::FromInt(value)); \
3451 return Smi::cast(get(k##name))->value(); \
3694 // This accessor applies the correct conversion from Smi, HeapNumber and
3723 // This accessor applies the correct conversion from Smi, HeapNumber
3752 // This accessor applies the correct conversion from Smi, HeapNumber
3781 // This accessor applies the correct conversion from Smi, HeapNumber
3810 // This accessor applies the correct conversion from Smi, HeapNumber
3839 // This accessor applies the correct conversion from Smi, HeapNumber
3868 // This accessor applies the correct conversion from Smi, HeapNumber
3897 // This accessor applies the correct conversion from Smi, HeapNumber
3926 // This accessor applies the correct conversion from Smi, HeapNumber
3982 DEFINE_ELEMENT_ACCESSORS(InlinedFunctionCount, Smi)
3984 DEFINE_ELEMENT_ACCESSORS(OsrAstId, Smi)
3985 DEFINE_ELEMENT_ACCESSORS(OsrPcOffset, Smi)
3998 DEFINE_ENTRY_ACCESSORS(AstId, Smi)
3999 DEFINE_ENTRY_ACCESSORS(TranslationIndex, Smi)
4000 DEFINE_ENTRY_ACCESSORS(ArgumentsStackHeight, Smi)
4001 DEFINE_ENTRY_ACCESSORS(Pc, Smi)
4039 Smi* AstId(int index) { return Smi::cast(get(index * 2)); }
4040 void SetAstId(int index, Smi* id) { set(index * 2, id); }
4041 Smi* PcAndState(int index) { return Smi::cast(get(1 + index * 2)); }
4042 void SetPcAndState(int index, Smi* offset) { set(1 + index * 2, offset); }
4075 inline Smi* AstId(int index);
4076 inline void SetAstId(int index, Smi* id);
4730 Smi::cast(cache->get(kProtoTransitionNumberOfEntriesOffset))->value();
4737 Smi::FromInt(value));
5012 DECL_ACCESSORS(line_offset, Smi)
5016 DECL_ACCESSORS(column_offset, Smi)
5028 DECL_ACCESSORS(type, Smi)
5031 DECL_ACCESSORS(compilation_type, Smi)
5034 DECL_ACCESSORS(compilation_state, Smi)
5045 DECL_ACCESSORS(eval_from_instructions_offset, Smi)
5271 // or Smi identifying a builtin function.
5524 // ic_age is a Smi field. It could be grouped with another Smi field into a
5528 // Smi fields.
6098 static MaybeObject* GetField(Object* date, Smi* index);
7930 inline void set_length(Smi* length);
8016 DECL_ACCESSORS(flag, Smi)
8233 DECL_ACCESSORS(flag, Smi)
8430 DECL_ACCESSORS(code_position, Smi)
8432 DECL_ACCESSORS(source_position, Smi)
8435 DECL_ACCESSORS(statement_position, Smi)
8582 // integer or Smi.
8585 static inline bool get(Smi* smi, int bit_position) {
8593 static inline Smi* set(Smi* smi, int bit_position, bool v) {
8594 return Smi::FromInt(set(smi->value(), bit_position, v));