Home
last modified time | relevance | path

Searched refs:Heap (Results 1 – 25 of 161) sorted by relevance

1234567

/external/v8/test/cctest/
Dtest-mark-compact.cc78 Heap::ConfigureHeap(2*256*KB, 4*MB); in TEST()
86 (Heap::MaxObjectSizeInPagedSpace() - FixedArray::kHeaderSize) / in TEST()
88 Object* obj = Heap::AllocateFixedArray(array_size); in TEST()
94 CHECK(Heap::InSpace(*array, NEW_SPACE)); in TEST()
97 CHECK(Heap::CollectGarbage(0, OLD_POINTER_SPACE)); in TEST()
100 CHECK(Heap::InSpace(*array, OLD_POINTER_SPACE)); in TEST()
105 Heap::ConfigureHeap(2*256*KB, 4*MB); in TEST()
114 CHECK(Heap::CollectGarbage(0, OLD_POINTER_SPACE)); in TEST()
117 int size = (Heap::MaxObjectSizeInPagedSpace() - FixedArray::kHeaderSize) / in TEST()
119 Object* obj = Heap::AllocateFixedArray(size); in TEST()
[all …]
Dtest-heap.cc27 CHECK(Heap::Contains(map)); in CheckMap()
29 CHECK_EQ(Heap::meta_map(), map->map()); in CheckMap()
37 CheckMap(Heap::meta_map(), MAP_TYPE, Map::kSize); in TEST()
38 CheckMap(Heap::heap_number_map(), HEAP_NUMBER_TYPE, HeapNumber::kSize); in TEST()
39 CheckMap(Heap::fixed_array_map(), FIXED_ARRAY_TYPE, FixedArray::kHeaderSize); in TEST()
40 CheckMap(Heap::string_map(), STRING_TYPE, SeqTwoByteString::kAlignedSize); in TEST()
61 Object* obj = Heap::NumberFromDouble(value); in CheckNumber()
79 Object* code = Heap::CreateCode(desc, in CheckFindCodeObject()
82 Handle<Object>(Heap::undefined_value())); in CheckFindCodeObject()
89 Object* found = Heap::FindCodeObject(obj_addr + i); in CheckFindCodeObject()
[all …]
Dtest-alloc.cc43 NewSpace* new_space = Heap::new_space(); in AllocateAfterFailures()
47 CHECK(!Heap::AllocateByteArray(0)->IsFailure()); in AllocateAfterFailures()
55 CHECK(!Heap::AllocateByteArray(100)->IsFailure()); in AllocateAfterFailures()
56 CHECK(!Heap::AllocateFixedArray(100, NOT_TENURED)->IsFailure()); in AllocateAfterFailures()
60 CHECK(!Heap::AllocateFixedArray(100)->IsFailure()); in AllocateAfterFailures()
61 CHECK(!Heap::AllocateHeapNumber(0.42)->IsFailure()); in AllocateAfterFailures()
62 CHECK(!Heap::AllocateArgumentsObject(Smi::FromInt(87), 10)->IsFailure()); in AllocateAfterFailures()
63 Object* object = Heap::AllocateJSObject(*Top::object_function()); in AllocateAfterFailures()
64 CHECK(!Heap::CopyJSObject(JSObject::cast(object))->IsFailure()); in AllocateAfterFailures()
67 OldSpace* old_data_space = Heap::old_data_space(); in AllocateAfterFailures()
[all …]
Dtest-heap-profiler.cc150 JSObjectsCluster function(i::Heap::function_class_symbol()); in TEST()
156 AddHeapObjectToTree(&tree, i::Heap::Object_symbol(), 0x100, &function); in TEST()
159 AddHeapObjectToTree(&tree, i::Heap::Object_symbol(), 0x200, &function); in TEST()
162 AddHeapObjectToTree(&tree, i::Heap::Object_symbol(), 0x300, &a, &b); in TEST()
165 AddHeapObjectToTree(&tree, i::Heap::Object_symbol(), 0x400, &b, &a); in TEST()
168 AddHeapObjectToTree(&tree, i::Heap::Object_symbol(), 0x500, in TEST()
189 JSObjectsCluster function(i::Heap::function_class_symbol()); in TEST()
193 AddHeapObjectToTree(&tree, i::Heap::Object_symbol(), 0x100, &function); in TEST()
196 AddHeapObjectToTree(&tree, i::Heap::Array_symbol(), 0x1000, &function); in TEST()
199 AddHeapObjectToTree(&tree, i::Heap::Object_symbol(), 0x200, &function); in TEST()
[all …]
Dtest-spaces.cc101 CHECK(Heap::ConfigureHeapDefault()); in TEST()
102 CHECK(MemoryAllocator::Setup(Heap::MaxReserved())); in TEST()
104 OldSpace faked_space(Heap::MaxReserved(), OLD_POINTER_SPACE, NOT_EXECUTABLE); in TEST()
157 CHECK(Heap::ConfigureHeapDefault()); in TEST()
158 CHECK(MemoryAllocator::Setup(Heap::MaxReserved())); in TEST()
163 MemoryAllocator::ReserveInitialChunk(4 * Heap::ReservedSemiSpaceSize()); in TEST()
166 2 * Heap::ReservedSemiSpaceSize()); in TEST()
167 CHECK(new_space.Setup(start, 2 * Heap::ReservedSemiSpaceSize())); in TEST()
182 CHECK(Heap::ConfigureHeapDefault()); in TEST()
183 CHECK(MemoryAllocator::Setup(Heap::MaxReserved())); in TEST()
[all …]
Dtest-assembler-ia32.cc72 Object* code = Heap::CreateCode(desc, in TEST()
75 Handle<Object>(Heap::undefined_value())); in TEST()
110 Object* code = Heap::CreateCode(desc, in TEST()
113 Handle<Object>(Heap::undefined_value())); in TEST()
152 Object* code = Heap::CreateCode(desc, in TEST()
155 Handle<Object>(Heap::undefined_value())); in TEST()
185 Code::cast(Heap::CreateCode(desc, in TEST()
188 Handle<Object>(Heap::undefined_value()))); in TEST()
218 Code::cast(Heap::CreateCode(desc, in TEST()
221 Handle<Object>(Heap::undefined_value()))); in TEST()
[all …]
Dtest-assembler-arm.cc72 Object* code = Heap::CreateCode(desc,
75 Handle<Object>(Heap::undefined_value()));
109 Object* code = Heap::CreateCode(desc,
112 Handle<Object>(Heap::undefined_value()));
155 Object* code = Heap::CreateCode(desc,
158 Handle<Object>(Heap::undefined_value()));
203 Object* code = Heap::CreateCode(desc,
206 Handle<Object>(Heap::undefined_value()));
263 Object* code = Heap::CreateCode(desc,
266 Handle<Object>(Heap::undefined_value()));
/external/v8/src/
Dmark-compact.cc119 if (!Heap::map_space()->MapPointersEncodable()) in Prepare()
241 if (second != Heap::raw_unchecked_empty_string()) { in ShortCircuitConsString()
249 if (!Heap::InNewSpace(object) && Heap::InNewSpace(first)) return object; in ShortCircuitConsString()
306 ASSERT(Heap::Contains(obj)); in VisitUnmarkedObject()
388 Heap::FinalizeExternalString(String::cast(*p)); in VisitPointers()
391 *p = Heap::raw_unchecked_null_value(); in VisitPointers()
407 ASSERT(Heap::Contains(object)); in MarkUnmarkedObject()
445 ASSERT(descriptors != Heap::raw_unchecked_empty_descriptor_array()); in MarkDescriptorArray()
478 HeapObjectIterator iterator(Heap::map_space()); in CreateBackPointers()
487 ASSERT(map->instance_descriptors() == Heap::empty_descriptor_array()); in CreateBackPointers()
[all …]
Dheap.cc53 String* Heap::hidden_symbol_;
54 Object* Heap::roots_[Heap::kRootListLength];
57 NewSpace Heap::new_space_;
58 OldSpace* Heap::old_pointer_space_ = NULL;
59 OldSpace* Heap::old_data_space_ = NULL;
60 OldSpace* Heap::code_space_ = NULL;
61 MapSpace* Heap::map_space_ = NULL;
62 CellSpace* Heap::cell_space_ = NULL;
63 LargeObjectSpace* Heap::lo_space_ = NULL;
68 int Heap::old_gen_promotion_limit_ = kMinimumPromotionLimit;
[all …]
Dheap-inl.h37 int Heap::MaxObjectSizeInPagedSpace() { in MaxObjectSizeInPagedSpace()
42 Object* Heap::AllocateSymbol(Vector<const char> str, in AllocateSymbol()
51 Object* Heap::AllocateRaw(int size_in_bytes, in AllocateRaw()
62 Heap::allocation_timeout_-- <= 0) { in AllocateRaw()
97 Object* Heap::NumberFromInt32(int32_t value) { in NumberFromInt32()
104 Object* Heap::NumberFromUint32(uint32_t value) { in NumberFromUint32()
113 void Heap::FinalizeExternalString(String* string) { in FinalizeExternalString()
126 Object* Heap::AllocateRawMap() { in AllocateRawMap()
143 Object* Heap::AllocateRawCell() { in AllocateRawCell()
154 bool Heap::InNewSpace(Object* object) { in InNewSpace()
[all …]
Dfactory.cc42 CALL_HEAP_FUNCTION(Heap::AllocateFixedArray(size, pretenure), FixedArray); in NewFixedArray()
48 CALL_HEAP_FUNCTION(Heap::AllocateFixedArrayWithHoles(size), FixedArray); in NewFixedArrayWithHoles()
75 CALL_HEAP_FUNCTION(Heap::LookupSymbol(string), String); in LookupSymbol()
81 CALL_HEAP_FUNCTION(Heap::AllocateStringFromAscii(string, pretenure), String); in NewStringFromAscii()
86 CALL_HEAP_FUNCTION(Heap::AllocateStringFromUtf8(string, pretenure), String); in NewStringFromUtf8()
92 CALL_HEAP_FUNCTION(Heap::AllocateStringFromTwoByte(string, pretenure), in NewStringFromTwoByte()
99 CALL_HEAP_FUNCTION(Heap::AllocateRawTwoByteString(length, pretenure), String); in NewRawTwoByteString()
105 CALL_HEAP_FUNCTION(Heap::AllocateConsString(*first, *second), String); in NewConsString()
118 CALL_HEAP_FUNCTION(Heap::AllocateExternalStringFromAscii(resource), String); in NewExternalStringFromAscii()
124 CALL_HEAP_FUNCTION(Heap::AllocateExternalStringFromTwoByte(resource), String); in NewExternalStringFromTwoByte()
[all …]
Druntime.cc103 Object* result = Heap::CopyJSObject(boilerplate); in DeepCopyBoilerplate()
130 result = Heap::AllocateFixedArray(copy->NumberOfLocalProperties(NONE)); in DeepCopyBoilerplate()
205 return Heap::CopyJSObject(boilerplate); in Runtime_CloneShallowLiteralBoilerplate()
407 if (*boilerplate == Heap::undefined_value()) { in Runtime_CreateObjectLiteral()
426 if (*boilerplate == Heap::undefined_value()) { in Runtime_CreateObjectLiteralShallow()
432 return Heap::CopyJSObject(JSObject::cast(*boilerplate)); in Runtime_CreateObjectLiteralShallow()
445 if (*boilerplate == Heap::undefined_value()) { in Runtime_CreateArrayLiteral()
464 if (*boilerplate == Heap::undefined_value()) { in Runtime_CreateArrayLiteralShallow()
470 return Heap::CopyJSObject(JSObject::cast(*boilerplate)); in Runtime_CreateArrayLiteralShallow()
481 Object* object = Heap::AllocateJSObject(constructor); in Runtime_CreateCatchExtensionObject()
[all …]
Dcode-stubs.cc41 int index = Heap::code_stubs()->FindEntry(GetKey()); in FindCodeInCache()
43 *code_out = Code::cast(Heap::code_stubs()->ValueAt(index)); in FindCodeInCache()
111 Handle<NumberDictionary>(Heap::code_stubs()), in GetCode()
114 Heap::public_set_code_stubs(*dict); in GetCode()
137 Heap::CreateCode(desc, NULL, flags, masm.CodeObject()); in TryGetCode()
146 new_object = Heap::code_stubs()->AtNumberPut(GetKey(), code); in TryGetCode()
148 Heap::public_set_code_stubs(NumberDictionary::cast(new_object)); in TryGetCode()
Daccessors.cc45 if (obj == Heap::null_value()) return NULL; in FindInPrototypeChain()
127 return object->IgnoreAttributesAndSetLocalProperty(Heap::length_symbol(), in ArraySetLength()
367 return Heap::undefined_value(); in ScriptGetEvalFromScript()
390 return Heap::undefined_value(); in ScriptGetEvalFromScriptPosition()
444 if (!found_it) return Heap::undefined_value(); in FunctionGetPrototype()
446 Object* prototype = Heap::AllocateFunctionPrototype(function); in FunctionGetPrototype()
460 if (!found_it) return Heap::undefined_value(); in FunctionSetPrototype()
522 if (!found_it) return Heap::undefined_value(); in FunctionGetName()
543 if (!found_it) return Heap::undefined_value(); in FunctionGetArguments()
554 Heap::arguments_symbol()); in FunctionGetArguments()
[all …]
Dobjects.cc57 Object* result = Heap::AllocateJSObject(constructor); in CreateJSValue()
95 if (IsTrue()) return Heap::true_value(); in ToBoolean()
96 if (IsFalse()) return Heap::false_value(); in ToBoolean()
98 return Heap::ToBoolean(Smi::cast(this)->value() != 0); in ToBoolean()
100 if (IsUndefined() || IsNull()) return Heap::false_value(); in ToBoolean()
103 return Heap::false_value(); in ToBoolean()
106 return Heap::ToBoolean(String::cast(this)->length() != 0); in ToBoolean()
111 return Heap::true_value(); in ToBoolean()
176 if (result.IsEmpty()) return Heap::undefined_value(); in GetPropertyWithCallback()
188 return Heap::undefined_value(); in GetPropertyWithCallback()
[all …]
Dbuiltins.cc173 return Heap::undefined_value(); // Make compiler happy. in BUILTIN()
178 return Heap::undefined_value(); in BUILTIN()
192 Object* obj = Heap::AllocateJSObject(constructor); in BUILTIN()
206 Object* obj = Heap::AllocateFixedArrayWithHoles(len); in BUILTIN()
226 Object* obj = Heap::AllocateFixedArrayWithHoles(len->value()); in BUILTIN()
264 Object* obj = Heap::AllocateFixedArrayWithHoles(capacity); in BUILTIN()
293 Object* undefined = Heap::undefined_value(); in BUILTIN()
337 if (len == 0) return Heap::undefined_value(); in BUILTIN()
356 elms->set(len - 1, Heap::the_hole_value()); in BUILTIN()
390 Object* obj = Heap::AllocateFixedArrayWithHoles(capacity); in BUILTIN()
[all …]
Dserialize.cc602 Heap::IterateStrongRoots(this, VISIT_ONLY_STRONG); in Deserialize()
603 Heap::IterateWeakRoots(this, VISIT_ALL); in Deserialize()
694 ReadObject(NEW_SPACE, Heap::new_space(), current); in ReadChunk()
696 Heap::RecordWrite(address, static_cast<int>( in ReadChunk()
703 ReadObject(OLD_DATA_SPACE, Heap::old_data_space(), current++); in ReadChunk()
706 ReadObject(OLD_POINTER_SPACE, Heap::old_pointer_space(), current++); in ReadChunk()
709 ReadObject(MAP_SPACE, Heap::map_space(), current++); in ReadChunk()
712 ReadObject(CODE_SPACE, Heap::code_space(), current++); in ReadChunk()
715 ReadObject(CELL_SPACE, Heap::cell_space(), current++); in ReadChunk()
718 ReadObject(kLargeData, Heap::lo_space(), current++); in ReadChunk()
[all …]
Dv8.cc80 ASSERT(!Heap::HasBeenSetup()); in Initialize()
81 if (!Heap::Setup(create_heap_objects)) { in Initialize()
108 Heap::SetStackLimits(); in Initialize()
150 Heap::TearDown(); in TearDown()
183 return Heap::IdleNotification(); in IdleNotification()
Dstring-stream.cc341 if (!Heap::Contains(map) || in PrintUsingMap()
380 if (element != Heap::the_hole_value()) { in PrintFixedArray()
447 if (!f->IsHeapObject() || !Heap::Contains(HeapObject::cast(f))) { in PrintSecurityTokenIfChanged()
452 !Heap::Contains(map) || in PrintSecurityTokenIfChanged()
461 Heap::Contains(HeapObject::cast(perhaps_context)) && in PrintSecurityTokenIfChanged()
464 if (!Heap::Contains(context)) { in PrintSecurityTokenIfChanged()
481 Heap::Contains(HeapObject::cast(f)) && in PrintFunction()
482 Heap::Contains(HeapObject::cast(f)->map()) && in PrintFunction()
509 if (!Heap::Contains(HeapObject::cast(f))) { in PrintFunction()
513 if (!Heap::Contains(HeapObject::cast(f)->map())) { in PrintFunction()
[all …]
Dlog-inl.h87 Heap::Protect(); in VMState()
90 Heap::Unprotect(); in VMState()
113 Heap::Unprotect(); in ~VMState()
116 Heap::Protect(); in ~VMState()
Dexecution.cc154 if (Top::pending_exception() == Heap::termination_exception()) { in TryCall()
351 Heap::SetStackLimits(); in RestoreStackGuard()
375 Heap::SetStackLimits(); in Clear()
389 Heap::SetStackLimits(); in Initialize()
435 return Handle<Object>(Heap::ToBoolean(result)); in ToBoolean()
604 return Heap::undefined_value(); in RuntimePreempt()
612 return Heap::undefined_value(); in DebugBreakHelper()
617 return Heap::undefined_value(); in DebugBreakHelper()
627 return Heap::undefined_value(); in DebugBreakHelper()
632 return Heap::undefined_value(); in DebugBreakHelper()
[all …]
/external/webkit/JavaScriptCore/runtime/
DCollector.cpp125 class Heap::Thread {
142 Heap::Heap(JSGlobalData* globalData) in Heap() function in JSC::Heap
176 Heap::~Heap() in ~Heap()
182 void Heap::destroy() in destroy()
208 for (Heap::Thread* t = m_registeredThreads; t;) { in destroy()
209 Heap::Thread* next = t->next; in destroy()
218 NEVER_INLINE CollectorBlock* Heap::allocateBlock() in allocateBlock()
294 NEVER_INLINE void Heap::freeBlock(size_t block) in freeBlock()
314 NEVER_INLINE void Heap::freeBlockPtr(CollectorBlock* block) in freeBlockPtr()
335 void Heap::freeBlocks() in freeBlocks()
[all …]
DCollector.h69 class Heap : public Noncopyable {
96 static Heap* heap(JSValue); // 0 for immediate values
97 static Heap* heap(JSCell*);
127 Heap(JSGlobalData*);
128 ~Heap();
200 …const size_t CELLS_PER_BLOCK = (BLOCK_SIZE - sizeof(Heap*)) * 8 * CELL_SIZE / (8 * CELL_SIZE + 1) …
239 Heap* heap;
249 inline CollectorBlock* Heap::cellBlock(const JSCell* cell)
254 inline size_t Heap::cellOffset(const JSCell* cell)
259 inline bool Heap::isCellMarked(const JSCell* cell)
[all …]
DJSActivation.cpp96 ASSERT(!Heap::heap(value) || Heap::heap(value) == Heap::heap(this)); in put()
111 ASSERT(!Heap::heap(value) || Heap::heap(value) == Heap::heap(this)); in putWithAttributes()
DJSVariableObject.h127 ASSERT(!Heap::heap(value) || Heap::heap(value) == Heap::heap(this)); in symbolTablePut()
140 ASSERT(!Heap::heap(value) || Heap::heap(value) == Heap::heap(this)); in symbolTablePutWithAttributes()

1234567