v8
3.25.30(node0.11.13)
V8 is Google's open source JavaScript engine
|
#include <stdlib.h>
#include <utility>
#include "v8.h"
#include "global-handles.h"
#include "snapshot.h"
#include "cctest.h"
Go to the source code of this file.
Data Structures | |
class | TestRetainedObjectInfo |
Functions | |
TEST (MarkingDeque) | |
TEST (Promotion) | |
TEST (NoPromotion) | |
TEST (MarkCompactCollector) | |
TEST (ObjectGroups) | |
TEST (EmptyObjectGroups) | |
TEST | ( | MarkingDeque | ) |
Definition at line 49 of file test-mark-compact.cc.
References CHECK_EQ, v8::internal::DeleteArray(), HeapObject::FromAddress(), MarkingDeque::Initialize(), CcTest::InitializeVM(), MarkingDeque::IsEmpty(), MarkingDeque::IsFull(), and v8::internal::kPointerSize.
TEST | ( | Promotion | ) |
Definition at line 76 of file test-mark-compact.cc.
References Heap::AllocateFixedArray(), FixedArray::cast(), CHECK, Heap::CollectGarbage(), Heap::ConfigureHeap(), CcTest::heap(), CcTest::InitializeVM(), Heap::InSpace(), CcTest::isolate(), v8::internal::KB, FixedArrayBase::kHeaderSize, Page::kMaxRegularHeapObjectSize, v8::internal::kPointerSize, v8::internal::MB, v8::internal::NEW_SPACE, obj, and v8::internal::OLD_POINTER_SPACE.
TEST | ( | NoPromotion | ) |
Definition at line 101 of file test-mark-compact.cc.
References Heap::AllocateFixedArray(), FixedArray::cast(), CHECK, Heap::CollectGarbage(), Heap::ConfigureHeap(), CcTest::heap(), CcTest::InitializeVM(), Heap::InSpace(), CcTest::isolate(), v8::internal::KB, FixedArrayBase::kHeaderSize, Page::kMaxRegularHeapObjectSize, v8::internal::kPointerSize, v8::internal::MB, v8::internal::NEW_SPACE, obj, v8::internal::OLD_POINTER_SPACE, and Heap::old_pointer_space().
TEST | ( | MarkCompactCollector | ) |
Definition at line 126 of file test-mark-compact.cc.
References Heap::AllocateFixedArray(), Heap::AllocateFunction(), Heap::AllocateJSObject(), Heap::AllocateMap(), Heap::AllocateSharedFunctionInfo(), ARRAY_SIZE, JSObject::cast(), Map::cast(), SharedFunctionInfo::cast(), JSFunction::cast(), String::cast(), CHECK, Heap::CollectGarbage(), Isolate::context(), Smi::FromInt(), v8::internal::GetProperty(), Context::global_object(), v8::internal::handle(), JSReceiver::HasLocalProperty(), Isolate::heap(), CcTest::i_isolate(), CcTest::InitializeVM(), Heap::InternalizeUtf8String(), CcTest::isolate(), v8::internal::JS_OBJECT_TYPE, JSObject::kHeaderSize, v8::internal::MAP_SPACE, v8::internal::NEW_SPACE, NONE, obj, v8::internal::OLD_POINTER_SPACE, JSReceiver::SetProperty(), and v8::internal::SLOPPY.
TEST | ( | ObjectGroups | ) |
Definition at line 259 of file test-mark-compact.cc.
References GlobalHandles::AddImplicitReferences(), GlobalHandles::AddObjectGroup(), Heap::AllocateFixedArray(), Handle< T >::cast(), CHECK_EQ, GlobalHandles::ClearWeakness(), Heap::CollectGarbage(), GlobalHandles::Create(), Isolate::global_handles(), CcTest::heap(), CcTest::i_isolate(), CcTest::InitializeVM(), CcTest::isolate(), GlobalHandles::MakeWeak(), v8::internal::NULL, and v8::internal::OLD_POINTER_SPACE.
TEST | ( | EmptyObjectGroups | ) |
Definition at line 395 of file test-mark-compact.cc.
References GlobalHandles::AddImplicitReferences(), GlobalHandles::AddObjectGroup(), ASSERT, GlobalHandles::Create(), Isolate::global_handles(), CcTest::heap(), CcTest::i_isolate(), v8::internal::info, CcTest::InitializeVM(), CcTest::isolate(), and v8::internal::NULL.