Home | History | Annotate | Download | only in src

Lines Matching defs:cast

77       HeapObject::cast(this)->map()->instance_type() == instancetype;   \
82 type* type::cast(Object* object) { \
94 type* holder::name() { return type::cast(READ_FIELD(this, offset)); } \
103 Smi* holder::name() { return Smi::cast(READ_FIELD(this, offset)); } \
113 return Smi::cast(value)->value(); \
143 HeapObject::cast(this)->map() ==
144 HeapObject::cast(this)->GetHeap()->external_map();
157 Object* cons_obj = JSObject::cast(this)->map()->constructor();
159 JSFunction* fun = JSFunction::cast(cons_obj);
164 type = FunctionTemplateInfo::cast(type)->parent_template()) {
194 && HeapObject::cast(this)->map()->instance_type() < FIRST_NONSTRING_TYPE;
210 && HeapObject::cast(this)->map()->instance_type() >= FIRST_SPEC_OBJECT_TYPE;
216 InstanceType type = HeapObject::cast(this)->map()->instance_type();
223 uint32_t type = HeapObject::cast(this)->map()->instance_type();
232 return StringShape(String::cast(this)).IsCons();
238 return StringShape(String::cast(this)).IsSliced();
244 return StringShape(String::cast(this)).IsSequential();
250 return StringShape(String::cast(this)).IsSequential() &&
251 String::cast(this)->IsOneByteRepresentation();
257 return StringShape(String::cast(this)).IsSequential() &&
258 String::cast(this)->IsTwoByteRepresentation();
264 return StringShape(String::cast(this)).IsExternal();
270 return StringShape(String::cast(this)).IsExternal() &&
271 String::cast(this)->IsOneByteRepresentation();
277 return StringShape(String::cast(this)).IsExternal() &&
278 String::cast(this)->IsTwoByteRepresentation();
479 InstanceType instance_type = HeapObject::cast(this)->map()->instance_type();
491 HeapObject::cast(this)->map()->instance_type();
514 && Failure::cast(this)->type() == Failure::RETRY_AFTER_GC;
520 && Failure::cast(this)->IsOutOfMemoryException();
539 Failure* Failure::cast(MaybeObject* obj) {
548 HeapObject::cast(this)->map()->instance_type() >= FIRST_JS_RECEIVER_TYPE;
555 HeapObject::cast(this)->map()->instance_type() >= FIRST_JS_OBJECT_TYPE;
561 InstanceType type = HeapObject::cast
600 int length = FixedArray::cast(this)->length();
614 if (FixedArray::cast(this)->length() % 2 != 0) return false;
632 if (FixedArray::cast(this)->length() % 2 != 0) return false;
639 Map* map = HeapObject::cast(this)->map();
653 HeapObject::cast(this)->map() ==
654 HeapObject::cast(this)->GetHeap()->native_context_map();
660 HeapObject::cast(this)->map() ==
661 HeapObject::cast(this)->GetHeap()->scope_info_map();
686 return IsJSValue() && JSValue::cast(this)->value()->IsString();
695 ((Oddball::cast(this)->kind() & Oddball::kNotBooleanMask) == 0);
720 HeapObject::cast(this)->map() ==
721 HeapObject::cast(this)->GetHeap()->hash_table_map();
727 this != HeapObject::cast(this)->GetHeap()->string_table();
733 this == HeapObject::cast(this)->GetHeap()->raw_unchecked_string_table();
739 FixedArray* self = FixedArray::cast(this);
758 if (FixedArray::cast(this)->length() != NormalizedMapCache::kEntries) {
802 (HeapObject::cast(this)->map()->instance_type() ==
812 InstanceType type = HeapObject::cast(this)->map()->instance_type();
824 && HeapObject::cast(this)->map()->is_undetectable();
830 && HeapObject::cast(this)->map()->is_access_check_needed();
836 switch (HeapObject::cast(this)->map()->instance_type()) {
848 && HeapObject::cast(this)->map()->instance_type() == NAME##_TYPE; \
855 return IsOddball() && Oddball::cast(this)->kind() == Oddball::kUndefined;
860 return IsOddball() && Oddball::cast(this)->kind() == Oddball::kNull;
865 return IsOddball() && Oddball::cast(this)->kind() == Oddball::kTheHole;
870 return IsOddball() && Oddball::cast(this)->kind() == Oddball::kUninitialized;
875 return IsOddball() && Oddball::cast(this)->kind() == Oddball::kTrue;
880 return IsOddball() && Oddball::cast(this)->kind() == Oddball::kFalse;
885 return IsOddball() && Oddball::cast(this)->kind() == Oddball::kArgumentMarker;
898 return this->IsHeapNumber() && std::isnan(HeapNumber::cast(this)->value());
905 double value = HeapNumber::cast(this)->value();
916 return this->IsJSObject() && (JSObject::cast(this)->class_name() == name);
1420 Object** objects = FixedArray::cast(elements)->GetFirstElementAddress();
1428 FixedDoubleArray* double_array = FixedDoubleArray::cast(elements);
1450 FixedArray* array_maps = FixedArray::cast(maybe_array_maps);
1454 return Map::cast(maybe_transitioned_map);
1519 FixedArray::cast(elements())->set(1, dictionary);
1597 return Handle<String>(String::cast(name));
1633 return Smi::cast(READ_FIELD(this, kKindOffset))->value();
1889 int value = Smi::cast(this)->value();
1895 double value = HeapNumber::cast(this)->value();
1909 JSValue* js_value = JSValue::cast(this);
1912 String* str = String::cast(js_value->value());
1936 FixedArrayBase* FixedArrayBase::cast(Object* object) {
2292 return Name::cast(get(ToKeyIndex(descriptor_number)));
2346 return PropertyDetails(Smi::cast(details));
2373 Foreign* p = Foreign::cast(GetCallbacksObject(descriptor_number));
2512 (Smi::cast(max_index_object)->value() & kRequiresSlowElementsMask);
2519 uint32_t value = static_cast<uint32_t>(Smi::cast(max_index_object)->value());
2529 // Cast operations
2609 HashTable<Shape, Key>* HashTable<Shape, Key>::cast(Object* obj) {
2640 return String::cast(this)->SlowEquals(String::cast(other));
2658 ConsString* cons = ConsString::cast(this);
2668 return String::cast(successfully_flattened);
2676 return SeqOneByteString::cast(this)->SeqOneByteStringGet(index);
2678 return SeqTwoByteString::cast(this)->SeqTwoByteStringGet(index);
2681 return ConsString::cast(this)->ConsStringGet(index);
2683 return ExternalAsciiString::cast(this)->ExternalAsciiStringGet(index);
2685 return ExternalTwoByteString::cast(this)->ExternalTwoByteStringGet(index);
2688 return SlicedString::cast(this)->SlicedStringGet(index);
2703 ? SeqOneByteString::cast(this)->SeqOneByteStringSet(index, value)
2704 : SeqTwoByteString::cast(this)->SeqTwoByteStringSet(index, value);
2710 return ConsString::cast(this)->second()->length() == 0;
2721 return String::cast(READ_FIELD(this, kUnderlyingOffset));
2742 SeqOneByteString::cast(string)->GetChars() + slice_offset,
2748 SeqTwoByteString::cast(string)->GetChars() + slice_offset,
2754 ExternalAsciiString::cast(string)->GetChars() + slice_offset,
2760 ExternalTwoByteString::cast(string)->GetChars() + slice_offset,
2766 SlicedString* slicedString = SlicedString::cast(string);
2794 cons_string_ = ConsString::cast(string);
2871 return String::cast(READ_FIELD(this, kParentOffset));
2886 return String::cast(READ_FIELD(this, kFirstOffset));
2902 return String::cast(READ_FIELD(this, kSecondOffset));
3139 return Smi::cast(get(kCacheSizeIndex))->value();
3149 return Smi::cast(get(kFingerIndex))->value();
3698 return Smi::cast(get(group))->value();
3712 return Code::cast(get(kCodesStartIndex + i));
3718 Foreign::cast(get(kCodesStartIndex + i))->foreign_address());
4159 // Code::cast. Code::cast does not work when the object's map is
4224 return Smi::cast(value)->value();
4254 return TransitionArray::cast(object)->back_pointer_storage();
4350 return TransitionArray::cast(object);
4383 TransitionArray::cast(object)->set_back_pointer_storage(value);
4762 String* src_str = String::cast(src);
4765 return ExternalAsciiString::cast(src)->resource() != NULL;
4767 return ExternalTwoByteString::cast(src)->resource() != NULL;
4791 return Code::cast(READ_FIELD(this, kCodeOffset));
4843 return FunctionTemplateInfo::cast(function_data());
4854 return static_cast<BuiltinFunctionId>(Smi::cast(function_data())->value());
4961 return Code::cast(
5002 return Context::cast(READ_FIELD(this, kContextOffset));
5017 return Map::cast(prototype_or_initial_map());
5119 return Code::cast(READ_FIELD(this, OffsetOfCodeWithId(id)));
5169 JSGeneratorObject* JSGeneratorObject::cast(Object* obj) {
5171 ASSERT(HeapObject::cast(obj)->Size() == JSGeneratorObject::kSize);
5180 JSModule* JSModule::cast(Object* obj) {
5182 ASSERT(HeapObject::cast(obj)->Size() == JSModule::kSize);
5190 JSValue* JSValue::cast(Object* obj) {
5192 ASSERT(HeapObject::cast(obj)->Size() == JSValue::kSize);
5208 JSDate* JSDate::cast(Object* obj) {
5210 ASSERT(HeapObject::cast(obj)->Size() == JSDate::kSize);
5224 JSMessageObject* JSMessageObject::cast(Object* obj) {
5226 ASSERT(HeapObject::cast(obj)->Size() == JSMessageObject::kSize);
5246 return Object::cast(READ_FIELD(this, kTypeFeedbackInfoOffset));
5262 return Smi::cast(value)->value();
5387 Smi* smi = Smi::cast(FixedArray::cast(data)->get(kTagIndex));
5397 return Smi::cast(DataAt(kIrregexpCaptureCountIndex))->value();
5408 Smi* smi = Smi::cast(FixedArray::cast(data)->get(kFlagsIndex));
5416 String* pattern= String::cast(FixedArray::cast(data)->get(kSourceIndex));
5423 return FixedArray::cast(data())->get(index);
5430 FixedArray::cast(data())->set(index, value);
5546 FixedArray* elems = FixedArray::cast(elements());
5556 set_elements(FixedArray::cast(writable_elems));
5564 return NameDictionary::cast(properties());
5570 return SeededNumberDictionary::cast(elements());
5589 return String::cast(this)->ComputeAndSetHash();
5688 return IsString() && String::cast(this)->AsArrayIndex(index);
5713 return JSProxy::cast(this)->HasPropertyWithHandler(name);
5721 return JSProxy::cast(this)->HasPropertyWithHandler(name);
5738 return JSProxy::cast(this)->GetElementAttributeWithHandler(this, index);
5740 return JSObject::cast(this)->GetElementAttributeWithReceiver(
5760 ? JSProxy::cast(this)->GetIdentityHash(flag)
5761 : JSObject::cast(this)->GetIdentityHash(flag);
5767 return JSProxy::cast(this)->HasElementWithHandler(index);
5769 return JSObject::cast(this)->GetElementAttributeWithReceiver(
5776 return JSProxy::cast(this)->HasElementWithHandler(index);
5778 return JSObject::cast(this)->GetElementAttributeWithReceiver(
5785 return JSProxy::cast(this)->GetElementAttributeWithHandler(this, index);
5787 return JSObject::cast(this)->GetElementAttributeWithReceiver(
5835 return receiver->IsInstanceOf(FunctionTemplateInfo::cast(function_template));
5900 if (key->Hash() != Name::cast(other)->Hash()) return false;
5901 return key->Equals(Name::cast(other));
5911 return Name::cast(other)->Hash();
5929 return Smi::cast(maybe_hash->ToObjectChecked())->value();
5937 return Smi::cast(maybe_hash->ToObjectChecked())->value();
5960 FixedArray* elts = FixedArray::cast(elements());
5998 FixedArray::cast(storage)->ContainsOnlySmisOrHoles()))));
6023 return TypeFeedbackId(Smi::cast(get(1 + index * 2))->value());
6033 return Cell::cast(get(index * 2));
6059 int current = Smi::cast(READ_FIELD(this, kStorage1Offset))->value();
6065 int value = Smi::cast(READ_FIELD(this, kStorage1Offset))->value();
6073 int current = Smi::cast(READ_FIELD(this, kStorage2Offset))->value();
6079 int value = Smi::cast(READ_FIELD(this, kStorage2Offset))->value();
6101 int value = Smi::cast(READ_FIELD(this, kStorage1Offset))->value();
6113 int value = Smi::cast(READ_FIELD(this, kStorage2Offset))->value();
6124 int value = Smi::cast(READ_FIELD(this, kStorage1Offset))->value();
6130 int value = Smi::cast(READ_FIELD(this, kStorage2Offset))->value();