Home | History | Annotate | Download | only in src

Lines Matching full:heap

57   Object* result = Heap::AllocateJSObject(constructor);
95 if (IsTrue()) return Heap::true_value();
96 if (IsFalse()) return Heap::false_value();
98 return Heap::ToBoolean(Smi::cast(this)->value() != 0);
100 if (IsUndefined() || IsNull()) return Heap::false_value();
103 return Heap::false_value();
106 return Heap::ToBoolean(String::cast(this)->length() != 0);
111 return Heap::true_value();
176 if (result.IsEmpty()) return Heap::undefined_value();
188 return Heap::undefined_value();
274 return Heap::undefined_value();
374 store_value = Heap::AllocateJSGlobalPropertyCell(value);
408 if (mode != FORCE_DELETION) return Heap::false_value();
419 cell->set_value(Heap::the_hole_value());
425 return Heap::true_value();
458 Object* last = result->IsProperty() ? result->holder() : Heap::null_value();
481 return Heap::undefined_value();
490 return value->IsTheHole() ? Heap::undefined_value() : value;
494 return value->IsTheHole() ? Heap::undefined_value() : value;
515 if (!IsJSObject()) return Heap::undefined_value();
531 return Heap::null_value();
582 // We can't very well allocate a heap number in this situation, and if the
627 if (!Heap::IsAllocationAllowed()) return this;
639 PretenureFlag tenure = Heap::InNewSpace(this) ? NOT_TENURED : TENURED;
644 object = Heap::AllocateRawAsciiString(len, tenure);
657 object = Heap::AllocateRawTwoByteString(len, tenure);
671 cs->set_second(Heap::empty_string());
706 this->set_map(Heap::external_string_map());
716 this->set_map(Heap::external_symbol_map());
721 Heap::CreateFillerObjectAt(this->address() + new_size, size - new_size);
752 this->set_map(Heap::external_ascii_string_map());
762 this->set_map(Heap::external_ascii_symbol_map());
767 Heap::CreateFillerObjectAt(this->address() + new_size, size - new_size);
869 !Heap::Contains(HeapObject::cast(constructor))) {
874 if (!Heap::Contains(JSFunction::cast(constructor)->shared())) {
909 // if (!Heap::InNewSpace(this)) PrintF("*", this);
910 if (!Heap::Contains(this)) {
914 if (!Heap::Contains(map())) {
1012 accumulator->Add("<Other heap object (%d)>", map()->instance_type());
1153 case FP_ZERO: return Heap::false_value();
1154 default: return Heap::true_value();
1179 return Heap::function_class_symbol();
1186 return Heap::Object_symbol();
1193 Heap::function_class_symbol() : Heap::closure_symbol();
1201 return Heap::Object_symbol();
1234 if (!Scanner::IsIdentifier(&buffer) && name != Heap::hidden_symbol()) {
1298 ASSERT(!Heap::InNewSpace(function));
1366 store_value = Heap::AllocateJSGlobalPropertyCell(value);
1386 if (value->IsJSFunction() && !Heap::InNewSpace(value)) {
1533 Heap::undefined_value() :
1644 pt != Heap::null_value();
1663 pt != Heap::null_value();
1679 return Heap::undefined_value();
1759 pt != Heap::null_value();
1826 Object* symbol_version = Heap::LookupSymbol(name);
1990 if (pt != Heap::null_value()) {
2182 Heap::CreateFillerObjectAt(this->address() + new_instance_size,
2190 map()->set_instance_descriptors(Heap::empty_descriptor_array());
2258 if (!result.IsProperty()) return Heap::true_value();
2323 return Heap::true_value();
2333 if (interceptor->deleter()->IsUndefined()) return Heap::false_value();
2363 return Heap::false_value();
2368 if (proto->IsNull()) return Heap::false_value();
2414 return Heap::true_value();
2426 return Heap::false_value();
2431 if (proto->IsNull()) return Heap::false_value();
2442 if (!result.IsProperty()) return Heap::true_value();
2445 return Heap::false_value();
2480 if (key != Heap::undefined_value()) {
2511 if (key != Heap::undefined_value()) {
2571 o != Heap::null_value();
2651 if (name->Equals(Heap::Proto_symbol()) && !IsJSContextExtensionObject()) {
2669 current != Heap::null_value();
2681 current != Heap::null_value();
2700 return Heap::undefined_value();
2718 return Heap::undefined_value();
2724 if (is_element && IsJSArray()) return Heap::undefined_value();
2740 return Heap::undefined_value();
2748 if (details.IsReadOnly()) return Heap::undefined_value();
2766 if (result.IsReadOnly()) return Heap::undefined_value();
2784 Object* structure = Heap::AllocateFixedArray(2, TENURED);
2830 Heap::undefined_value();
2857 return Heap::undefined_value();
2865 obj != Heap::null_value();
2883 obj != Heap::null_value();
2888 if (result.IsReadOnly()) return Heap::undefined_value();
2898 return Heap::undefined_value();
2916 return Heap::undefined_value();
2924 Object* result = Heap::AllocateMap(instance_type(), instance_size());
2933 Map::cast(result)->set_instance_descriptors(Heap::empty_descriptor_array());
3038 return Heap::undefined_value();
3092 Object* object = Heap::AllocateFixedArray(size);
3111 return Heap::null_value(); // Failure case needs to "return" a value.
3132 Object* obj = Heap::AllocateFixedArray(len0 + extra);
3156 if (new_length == 0) return Heap::empty_fixed_array();
3157 Object* obj = Heap::AllocateFixedArray(new_length);
3195 return Heap::empty_descriptor_array();
3199 Heap::AllocateFixedArray(ToKeyIndex(number_of_descriptors));
3205 array = Heap::AllocateFixedArray(number_of_descriptors << 1);
3362 // In-place heap sort.
3365 // Bottom-up max-heap construction.
3471 if (!Heap::Contains(this)) return false;
4424 if (map == Heap::string_map()) {
4425 this->set_map(Heap::undetectable_string_map());
4427 } else if (map == Heap::ascii_string_map()) {
4428 this->set_map(Heap::undetectable_ascii_string_map());
4575 Object* result = Heap::AllocateSubString(this, start, end);
4619 if (d == Heap::raw_unchecked_empty_descriptor_array()) return;
4715 Object* symbol = Heap::LookupAsciiSymbol(to_string);
4731 if (script()->IsUndefined()) return Heap::undefined_value();
4733 if (source->IsUndefined()) return Heap::undefined_value();
4772 obj != Heap::null_value();
4804 set_this_property_assignments(Heap::undefined_value());
4845 // without any allocation in the heap.
5202 new_elements = Heap::empty_fixed_array();
5204 Object* obj = Heap::AllocateFixedArrayWithHoles(capacity);
5267 Object* obj = Heap::AllocateFixedArrayWithHoles(new_capacity);
5312 Object* obj = Heap::AllocateFixedArray(1);
5331 for (Object* pt = value; pt != Heap::null_value(); pt = pt->GetPrototype()) {
5414 if (pt == Heap::null_value()) return false;
5504 return Heap::null_value();
5567 if (pt == Heap::null_value()) return false;
5640 Object* obj = Heap::AllocateFixedArrayWithHoles(new_capacity);
5782 Object* obj = Heap::AllocateFixedArrayWithHoles(new_length);
5802 return Heap::null_value();
5813 Heap::NumberFromDouble(static_cast<double>(index) + 1);
5865 return Heap::undefined_value();
5879 if (pt == Heap::null_value()) return Heap::undefined_value();
5922 return Heap::undefined_value();
5986 return Heap::NumberFromInt32(value);
5995 return Heap::NumberFromUint32(value);
6003 return Heap::AllocateHeapNumber(value);
6022 return Heap::undefined_value();
6032 if (pt == Heap::null_value()) return Heap::undefined_value();
6186 if (pt == Heap::null_value()) return Heap::undefined_value();
6201 return Heap::undefined_value();
6301 return Heap::null_value();
6369 // In-place heap sort.
6372 // Bottom-up max-heap construction.
6590 return Heap::NumberFromUint32(key);
6687 Object* obj = Heap::AllocateFixedArray(2);
6768 return Heap::AllocateSymbol(string_, chars_, hash_field_);
6803 Map* map = Heap::SymbolMapForString(string_);
6811 return Heap::AllocateInternalSymbol(&buffer,
6847 Object* obj = Heap::AllocateHashTable(EntryToIndex(capacity));
7022 Object* new_double = Heap::AllocateHeapNumber(0.0);
7066 new_dict->AddNumberEntry(pos, Heap::undefined_value(), no_details);
7100 PretenureFlag tenure = Heap::InNewSpace(this) ? NOT_TENURED: TENURED;
7102 Heap::AllocateFixedArray(dict->NumberOfElements(), tenure);
7128 Object* new_double = Heap::AllocateHeapNumber(0.0);
7239 return Heap::NumberFromInt32(cast_value);
7289 return Heap::NumberFromUint32(cast_value);
7309 return Heap::AllocateHeapNumber(cast_value);
7325 Object* cell = Heap::AllocateJSGlobalPropertyCell(Heap::the_hole_value());
7478 if (entry == kNotFound) return Heap::undefined_value();
7486 if (entry == kNotFound) return Heap::undefined_value();
7495 if (entry == kNotFound) return Heap::undefined_value();
7592 if (entry == kNotFound) return Heap::undefined_value();
7628 Object* obj = Heap::AllocateFixedArray(length);
7636 obj = Heap::AllocateFixedArray(length);
7695 Object* sentinel = Heap::null_value();
7719 return Heap::false_value();
7721 SetEntry(entry, Heap::null_value(), Heap::null_value(), Smi::FromInt(0));
7723 return Heap::true_value();
7936 return Heap::undefined_value();
7969 (!value->IsJSFunction() || Heap::InNewSpace(value))) {
7986 Object* fields = Heap::AllocateFixedArray(number_of_allocated_fields);
7997 Object* key = Heap::LookupSymbol(String::cast(k));
8002 if (value->IsJSFunction() && !Heap::InNewSpace(value)) {
8075 if (index == kNoBreakPointInfo) return Heap::undefined_value();
8137 new_break_point_info->set_break_point_objects(Heap::undefined_value());
8147 return Heap::undefined_value();
8170 if (debug_info->break_points()->IsUndefined()) return Heap::undefined_value();
8182 return Heap::undefined_value();
8211 break_point_info->set_break_point_objects(Heap::undefined_value());