v8
3.14.5(node0.10.28)
V8 is Google's open source JavaScript engine
|
#include <stdlib.h>
#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 (GCCallback) | |
TEST (ObjectGroups) | |
TEST (EmptyObjectGroups) | |
TEST | ( | MarkingDeque | ) |
Definition at line 55 of file test-mark-compact.cc.
References HeapObject::address(), CHECK_EQ, v8::internal::DeleteArray(), HeapObject::FromAddress(), MarkingDeque::Initialize(), MarkingDeque::IsEmpty(), MarkingDeque::IsFull(), v8::internal::kPointerSize, v8::internal::NULL, MarkingDeque::Pop(), and MarkingDeque::PushBlack().
TEST | ( | Promotion | ) |
Definition at line 80 of file test-mark-compact.cc.
References FixedArray::cast(), CHECK, HEAP, v8::internal::KB, FixedArrayBase::kHeaderSize, Page::kMaxNonCodeHeapObjectSize, v8::internal::kPointerSize, v8::internal::MB, v8::internal::NEW_SPACE, and v8::internal::OLD_POINTER_SPACE.
TEST | ( | NoPromotion | ) |
Definition at line 114 of file test-mark-compact.cc.
References FixedArray::cast(), CHECK, HEAP, v8::internal::KB, FixedArrayBase::kHeaderSize, Page::kMaxNonCodeHeapObjectSize, v8::internal::kPointerSize, v8::internal::MB, v8::internal::Min(), v8::internal::NEW_SPACE, v8::internal::OLD_POINTER_SPACE, and v8::internal::TENURED.
TEST | ( | MarkCompactCollector | ) |
Definition at line 156 of file test-mark-compact.cc.
References ARRAY_SIZE, JSObject::cast(), Map::cast(), SharedFunctionInfo::cast(), JSFunction::cast(), String::cast(), CHECK, Smi::FromInt(), v8::internal::GetProperty(), Object::GetProperty(), HEAP, v8::internal::JS_OBJECT_TYPE, JSObject::kHeaderSize, v8::internal::kNonStrictMode, v8::internal::MAP_SPACE, v8::internal::NEW_SPACE, NONE, v8::internal::OLD_POINTER_SPACE, and JSReceiver::SetProperty().
TEST | ( | GCCallback | ) |
Definition at line 288 of file test-mark-compact.cc.
References CHECK_EQ, HEAP, and v8::internal::OLD_POINTER_SPACE.
TEST | ( | ObjectGroups | ) |
Definition at line 313 of file test-mark-compact.cc.
References GlobalHandles::AddImplicitReferences(), GlobalHandles::AddObjectGroup(), Handle< T >::cast(), CHECK_EQ, GlobalHandles::ClearWeakness(), GlobalHandles::Create(), HEAP, Handle< T >::location(), GlobalHandles::MakeWeak(), v8::internal::NULL, and v8::internal::OLD_POINTER_SPACE.
TEST | ( | EmptyObjectGroups | ) |
Definition at line 441 of file test-mark-compact.cc.
References GlobalHandles::AddImplicitReferences(), GlobalHandles::AddObjectGroup(), ASSERT, GlobalHandles::Create(), TestRetainedObjectInfo::has_been_disposed(), HEAP, and v8::internal::NULL.