v8  3.14.5(node0.10.28)
V8 is Google's open source JavaScript engine
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
test-heap.cc File Reference
#include <stdlib.h>
#include "v8.h"
#include "compilation-cache.h"
#include "execution.h"
#include "factory.h"
#include "macro-assembler.h"
#include "global-handles.h"
#include "stub-cache.h"
#include "cctest.h"
Include dependency graph for test-heap.cc:

Go to the source code of this file.

Data Structures

class  SourceResource
 

Macros

#define __   assm.
 

Functions

 TEST (HeapMaps)
 
 TEST (HeapObjects)
 
 TEST (Tagging)
 
 TEST (GarbageCollection)
 
 TEST (String)
 
 TEST (LocalHandles)
 
 TEST (GlobalHandles)
 
 TEST (WeakGlobalHandlesScavenge)
 
 TEST (WeakGlobalHandlesMark)
 
 TEST (DeleteWeakGlobalHandle)
 
 TEST (SymbolTable)
 
 TEST (FunctionAllocation)
 
 TEST (ObjectProperties)
 
 TEST (JSObjectMaps)
 
 TEST (JSArray)
 
 TEST (JSObjectCopy)
 
 TEST (StringAllocation)
 
 TEST (Iteration)
 
 TEST (EmptyHandleEscapeFrom)
 
 TEST (Regression39128)
 
 TEST (TestCodeFlushing)
 
int CountNativeContexts ()
 
 TEST (TestInternalWeakLists)
 
 TEST (TestInternalWeakListsTraverseWithGC)
 
 TEST (TestSizeOfObjects)
 
 TEST (TestSizeOfObjectsVsHeapIteratorPrecision)
 
 TEST (GrowAndShrinkNewSpace)
 
 TEST (CollectingAllAvailableGarbageShrinksNewSpace)
 
 TEST (LeakNativeContextViaMap)
 
 TEST (LeakNativeContextViaFunction)
 
 TEST (LeakNativeContextViaMapKeyed)
 
 TEST (LeakNativeContextViaMapProto)
 
 TEST (InstanceOfStubWriteBarrier)
 
 TEST (PrototypeTransitionClearing)
 
 TEST (ResetSharedFunctionInfoCountersDuringIncrementalMarking)
 
 TEST (ResetSharedFunctionInfoCountersDuringMarkSweep)
 
 TEST (OptimizedAllocationAlwaysInNewSpace)
 
 TEST (Regress1465)
 
 TEST (Regress2143a)
 
 TEST (Regress2143b)
 
void SimulateFullSpace (PagedSpace *space)
 
 TEST (ReleaseOverReservedPages)
 
 TEST (Regress2237)
 
 TEST (Regress2211)
 
 TEST (IncrementalMarkingClearsTypeFeedbackCells)
 
 TEST (IncrementalMarkingPreservesMonomorhpicIC)
 
 TEST (IncrementalMarkingClearsMonomorhpicIC)
 
 TEST (IncrementalMarkingClearsPolymorhpicIC)
 
 TEST (ReleaseStackTraceData)
 
 TEST (Regression144230)
 

Macro Definition Documentation

#define __   assm.

Function Documentation

int CountNativeContexts ( )

Definition at line 994 of file test-heap.cc.

References Context::cast(), FixedArray::get(), HEAP, and Context::NEXT_CONTEXT_LINK.

Referenced by TEST().

void SimulateFullSpace ( PagedSpace space)
TEST ( String  )

Definition at line 277 of file test-heap.cc.

TEST ( LocalHandles  )

Definition at line 288 of file test-heap.cc.

References CHECK_EQ, v8::internal::CStrVector(), FACTORY, and v8::internal::StrLength().

TEST ( SymbolTable  )

Definition at line 535 of file test-heap.cc.

TEST ( StringAllocation  )

Definition at line 758 of file test-heap.cc.

References CHECK_EQ, v8::internal::DeleteArray(), and FACTORY.

TEST ( EmptyHandleEscapeFrom  )

Definition at line 848 of file test-heap.cc.

References CHECK, Handle< T >::EscapeFrom(), and Handle< T >::is_null().

TEST ( TestCodeFlushing  )
TEST ( TestInternalWeakListsTraverseWithGC  )
TEST ( TestSizeOfObjects  )
TEST ( TestSizeOfObjectsVsHeapIteratorPrecision  )

Definition at line 1241 of file test-heap.cc.

References CHECK_GT, HEAP, v8::internal::NULL, v8::internal::PrintF(), and V8_PTR_PREFIX.

TEST ( GrowAndShrinkNewSpace  )
TEST ( CollectingAllAvailableGarbageShrinksNewSpace  )

Definition at line 1339 of file test-heap.cc.

References NewSpace::Capacity(), CHECK, NewSpace::Grow(), and HEAP.

TEST ( LeakNativeContextViaMap  )
TEST ( LeakNativeContextViaFunction  )
TEST ( LeakNativeContextViaMapKeyed  )
TEST ( LeakNativeContextViaMapProto  )
TEST ( ResetSharedFunctionInfoCountersDuringMarkSweep  )
TEST ( OptimizedAllocationAlwaysInNewSpace  )

Definition at line 1737 of file test-heap.cc.

References CHECK, CHECK_EQ, HEAP, Value::ToObject(), and V8::UseCrankshaft().

TEST ( Regress1465  )
TEST ( Regress2143a  )

Definition at line 1823 of file test-heap.cc.

References CHECK, Context::GetCurrent(), HEAP, and Heap::kNoGCFlags.

TEST ( Regress2143b  )

Definition at line 1863 of file test-heap.cc.

References CHECK, Context::GetCurrent(), HEAP, and Heap::kNoGCFlags.

TEST ( ReleaseOverReservedPages  )
TEST ( IncrementalMarkingClearsTypeFeedbackCells  )
TEST ( IncrementalMarkingPreservesMonomorhpicIC  )
TEST ( ReleaseStackTraceData  )