v8
3.25.30(node0.11.13)
V8 is Google's open source JavaScript engine
|
#include <stdlib.h>
#include <utility>
#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"
Go to the source code of this file.
Data Structures | |
class | SourceResource |
class | DummyVisitor |
Macros | |
#define | __ assm. |
Functions | |
TEST (HeapMaps) | |
TEST (HandleNull) | |
TEST (HeapObjects) | |
TEST (Tagging) | |
TEST (GarbageCollection) | |
TEST (String) | |
TEST (LocalHandles) | |
TEST (GlobalHandles) | |
TEST (WeakGlobalHandlesScavenge) | |
TEST (WeakGlobalHandlesMark) | |
TEST (DeleteWeakGlobalHandle) | |
TEST (StringTable) | |
TEST (FunctionAllocation) | |
TEST (ObjectProperties) | |
TEST (JSObjectMaps) | |
TEST (JSArray) | |
TEST (JSObjectCopy) | |
TEST (StringAllocation) | |
TEST (Iteration) | |
TEST (EmptyHandleEscapeFrom) | |
TEST (Regression39128) | |
TEST (TestCodeFlushing) | |
TEST (TestCodeFlushingPreAged) | |
TEST (TestCodeFlushingIncremental) | |
TEST (TestCodeFlushingIncrementalScavenge) | |
TEST (TestCodeFlushingIncrementalAbort) | |
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 (OptimizedPretenuringAllocationFolding) | |
TEST (OptimizedPretenuringAllocationFoldingBlocks) | |
TEST (OptimizedPretenuringObjectArrayLiterals) | |
TEST (OptimizedPretenuringMixedInObjectProperties) | |
TEST (OptimizedPretenuringDoubleArrayProperties) | |
TEST (OptimizedPretenuringdoubleArrayLiterals) | |
TEST (OptimizedPretenuringNestedMixedArrayLiterals) | |
TEST (OptimizedPretenuringNestedObjectLiterals) | |
TEST (OptimizedPretenuringNestedDoubleLiterals) | |
TEST (OptimizedPretenuringConstructorCalls) | |
TEST (OptimizedAllocationArrayLiterals) | |
TEST (OptimizedPretenuringCallNew) | |
TEST (Regress1465) | |
TEST (Regress2143a) | |
TEST (Regress2143b) | |
TEST (ReleaseOverReservedPages) | |
TEST (Regress2237) | |
TEST (Regress2211) | |
TEST (IncrementalMarkingClearsTypeFeedbackInfo) | |
TEST (IncrementalMarkingPreservesMonomorphicIC) | |
TEST (IncrementalMarkingClearsMonomorphicIC) | |
TEST (IncrementalMarkingClearsPolymorphicIC) | |
void | ReleaseStackTraceDataTest (const char *source, const char *accessor) |
TEST (ReleaseStackTraceData) | |
TEST (Regress159140) | |
TEST (Regress165495) | |
TEST (Regress169209) | |
TEST (Regress169928) | |
TEST (Regress168801) | |
TEST (Regress173458) | |
TEST (DeferredHandles) | |
TEST (IncrementalMarkingStepMakesBigProgressWithLargeObjects) | |
TEST (DisableInlineAllocation) | |
TEST (EnsureAllocationSiteDependentCodesProcessed) | |
TEST (CellsInOptimizedCodeAreWeak) | |
TEST (ObjectsInOptimizedCodeAreWeak) | |
TEST (NextCodeLinkIsWeak) | |
TEST (NextCodeLinkIsWeak2) | |
#define __ assm. |
int CountNativeContexts | ( | ) |
Definition at line 1370 of file test-heap.cc.
References Context::cast(), FixedArray::get(), CcTest::heap(), Heap::native_contexts_list(), and Context::NEXT_CONTEXT_LINK.
Referenced by TEST().
void ReleaseStackTraceDataTest | ( | const char * | source, |
const char * | accessor | ||
) |
Definition at line 3068 of file test-heap.cc.
References CHECK, Heap::CollectAllAvailableGarbage(), Script::Compile(), CcTest::heap(), SourceResource::IsDisposed(), CcTest::isolate(), String::NewExternal(), and v8::internal::StrDup().
Referenced by TEST().
TEST | ( | HeapMaps | ) |
Definition at line 74 of file test-heap.cc.
References v8::internal::FIXED_ARRAY_TYPE, CcTest::heap(), v8::internal::HEAP_NUMBER_TYPE, CcTest::InitializeVM(), HeapNumber::kSize, Map::kSize, v8::internal::kVariableSizeSentinel, v8::internal::MAP_TYPE, and v8::internal::STRING_TYPE.
TEST | ( | HandleNull | ) |
Definition at line 151 of file test-heap.cc.
References CHECK, CcTest::i_isolate(), CcTest::InitializeVM(), Handle< T >::is_null(), and v8::internal::NULL.
TEST | ( | HeapObjects | ) |
Definition at line 161 of file test-heap.cc.
References Handle< T >::cast(), Smi::cast(), CHECK, CHECK_EQ, v8::internal::CStrVector(), Isolate::factory(), JSReceiver::HasLocalProperty(), Isolate::heap(), CcTest::i_isolate(), CcTest::InitializeVM(), std::isnan(), Smi::kMaxValue, Smi::kMinValue, Factory::NewStringFromAscii(), Object::Number(), Heap::NumberFromDouble(), Heap::NumberFromInt32(), and Heap::NumberFromUint32().
TEST | ( | Tagging | ) |
Definition at line 246 of file test-heap.cc.
References CHECK, CHECK_EQ, Failure::Exception(), Smi::FromInt(), CcTest::InitializeVM(), Smi::kMaxValue, Smi::kMinValue, v8::internal::NEW_SPACE, OBJECT_POINTER_ALIGN, v8::internal::OLD_POINTER_SPACE, and Failure::RetryAfterGC().
TEST | ( | GarbageCollection | ) |
Definition at line 262 of file test-heap.cc.
References JSObject::cast(), JSFunction::cast(), CHECK, CHECK_EQ, Heap::CollectGarbage(), Isolate::context(), Isolate::factory(), Smi::FromInt(), v8::internal::GetProperty(), Object::GetProperty(), Context::global_object(), JSReceiver::HasLocalProperty(), Isolate::heap(), CcTest::i_isolate(), CcTest::InitializeVM(), Factory::InternalizeUtf8String(), v8::internal::JS_OBJECT_TYPE, JSObject::kHeaderSize, v8::internal::name, v8::internal::NEW_SPACE, Factory::NewFunction(), Factory::NewJSObject(), Factory::NewMap(), NONE, JSReceiver::SetProperty(), and v8::internal::SLOPPY.
TEST | ( | String | ) |
Definition at line 339 of file test-heap.cc.
References CcTest::InitializeVM(), and CcTest::isolate().
TEST | ( | LocalHandles | ) |
Definition at line 351 of file test-heap.cc.
References CHECK_EQ, v8::internal::CStrVector(), Isolate::factory(), CcTest::i_isolate(), CcTest::InitializeVM(), CcTest::isolate(), v8::internal::name, Factory::NewStringFromAscii(), and v8::internal::StrLength().
TEST | ( | GlobalHandles | ) |
Definition at line 363 of file test-heap.cc.
References CHECK, CHECK_EQ, Heap::CollectGarbage(), GlobalHandles::Create(), v8::internal::CStrVector(), GlobalHandles::Destroy(), Isolate::factory(), Isolate::global_handles(), Isolate::heap(), CcTest::i_isolate(), CcTest::InitializeVM(), v8::internal::NEW_SPACE, Factory::NewNumber(), and Factory::NewStringFromAscii().
TEST | ( | WeakGlobalHandlesScavenge | ) |
Definition at line 417 of file test-heap.cc.
References CHECK, Heap::CollectGarbage(), GlobalHandles::Create(), v8::internal::CStrVector(), GlobalHandles::Destroy(), Isolate::factory(), Isolate::global_handles(), Isolate::heap(), CcTest::i_isolate(), CcTest::InitializeVM(), GlobalHandles::IsNearDeath(), GlobalHandles::MakeWeak(), v8::internal::NEW_SPACE, Factory::NewNumber(), and Factory::NewStringFromAscii().
TEST | ( | WeakGlobalHandlesMark | ) |
Definition at line 460 of file test-heap.cc.
References CHECK, Heap::CollectAllGarbage(), Heap::CollectGarbage(), GlobalHandles::Create(), v8::internal::CStrVector(), GlobalHandles::Destroy(), Isolate::factory(), Isolate::global_handles(), Isolate::heap(), CcTest::i_isolate(), CcTest::InitializeVM(), Heap::InNewSpace(), GlobalHandles::IsNearDeath(), Heap::kAbortIncrementalMarkingMask, GlobalHandles::MakeWeak(), v8::internal::NEW_SPACE, Factory::NewNumber(), Factory::NewStringFromAscii(), and v8::internal::OLD_POINTER_SPACE.
TEST | ( | DeleteWeakGlobalHandle | ) |
Definition at line 506 of file test-heap.cc.
References CHECK, Heap::CollectGarbage(), GlobalHandles::Create(), v8::internal::CStrVector(), Isolate::factory(), Isolate::global_handles(), Isolate::heap(), CcTest::i_isolate(), CcTest::InitializeVM(), GlobalHandles::MakeWeak(), v8::internal::NEW_SPACE, Factory::NewStringFromAscii(), and v8::internal::OLD_POINTER_SPACE.
TEST | ( | StringTable | ) |
Definition at line 622 of file test-heap.cc.
References CcTest::InitializeVM().
TEST | ( | FunctionAllocation | ) |
Definition at line 630 of file test-heap.cc.
References CHECK_EQ, Isolate::factory(), Smi::FromInt(), Object::GetProperty(), CcTest::i_isolate(), CcTest::InitializeVM(), Factory::InternalizeUtf8String(), CcTest::isolate(), v8::internal::JS_OBJECT_TYPE, JSObject::kHeaderSize, v8::internal::name, Factory::NewFunction(), Factory::NewJSObject(), Factory::NewMap(), NONE, JSReceiver::SetProperty(), and v8::internal::SLOPPY.
TEST | ( | ObjectProperties | ) |
Definition at line 656 of file test-heap.cc.
References JSFunction::cast(), String::cast(), CHECK, Isolate::context(), v8::internal::CStrVector(), JSReceiver::DeleteProperty(), Isolate::factory(), Smi::FromInt(), v8::internal::GetProperty(), Context::global_object(), JSReceiver::HasLocalProperty(), CcTest::heap(), CcTest::i_isolate(), CcTest::InitializeVM(), Factory::InternalizeUtf8String(), CcTest::isolate(), Factory::NewJSObject(), Factory::NewStringFromAscii(), NONE, JSReceiver::NORMAL_DELETION, v8::internal::s1, v8::internal::s2, JSReceiver::SetProperty(), and v8::internal::SLOPPY.
TEST | ( | JSObjectMaps | ) |
Definition at line 727 of file test-heap.cc.
References CHECK, CHECK_EQ, Isolate::factory(), Smi::FromInt(), CcTest::i_isolate(), CcTest::InitializeVM(), Factory::InternalizeUtf8String(), CcTest::isolate(), v8::internal::JS_OBJECT_TYPE, JSObject::kHeaderSize, v8::internal::name, Factory::NewFunction(), Factory::NewJSObject(), Factory::NewMap(), NONE, JSReceiver::SetProperty(), and v8::internal::SLOPPY.
TEST | ( | JSArray | ) |
Definition at line 753 of file test-heap.cc.
References Handle< T >::cast(), JSFunction::cast(), CHECK, CHECK_EQ, Isolate::context(), Isolate::factory(), Smi::FromInt(), Object::GetElement(), v8::internal::GetProperty(), Context::global_object(), v8::internal::handle(), CcTest::i_isolate(), JSArray::Initialize(), CcTest::InitializeVM(), Factory::InternalizeUtf8String(), CcTest::isolate(), Smi::kMaxValue, v8::internal::name, Factory::NewJSObject(), Factory::NewNumberFromUint(), NONE, JSReceiver::SetElement(), JSArray::SetElementsLength(), and v8::internal::SLOPPY.
TEST | ( | JSObjectCopy | ) |
Definition at line 802 of file test-heap.cc.
References JSFunction::cast(), String::cast(), CHECK, CHECK_EQ, Isolate::context(), JSObject::Copy(), Isolate::factory(), Smi::FromInt(), Object::GetElement(), v8::internal::GetProperty(), Context::global_object(), CcTest::heap(), CcTest::i_isolate(), CcTest::InitializeVM(), Factory::InternalizeUtf8String(), CcTest::isolate(), Factory::NewJSObject(), NONE, JSReceiver::SetElement(), JSReceiver::SetProperty(), and v8::internal::SLOPPY.
TEST | ( | StringAllocation | ) |
Definition at line 855 of file test-heap.cc.
References CHECK_EQ, v8::internal::DeleteArray(), Isolate::factory(), CcTest::i_isolate(), CcTest::InitializeVM(), Factory::InternalizeOneByteString(), Factory::InternalizeUtf8String(), CcTest::isolate(), Factory::NewStringFromUtf8(), and v8::internal::OneByteVector().
TEST | ( | Iteration | ) |
Definition at line 910 of file test-heap.cc.
References HeapObject::cast(), CHECK_EQ, v8::internal::CStrVector(), Isolate::factory(), v8::internal::FAST_HOLEY_ELEMENTS, CcTest::heap(), CcTest::i_isolate(), CcTest::InitializeVM(), CcTest::isolate(), Page::kMaxRegularHeapObjectSize, HeapObject::map(), Factory::NewJSArray(), Factory::NewStringFromAscii(), and v8::internal::TENURED.
TEST | ( | EmptyHandleEscapeFrom | ) |
Definition at line 950 of file test-heap.cc.
References CHECK, Handle< T >::EscapeFrom(), CcTest::InitializeVM(), Handle< T >::is_null(), and CcTest::isolate().
TEST | ( | Regression39128 | ) |
Definition at line 971 of file test-heap.cc.
References HeapObject::address(), Heap::AllocateFixedArray(), Heap::AllocateJSObjectFromMap(), NewSpace::allocation_limit_address(), NewSpace::allocation_top_address(), Heap::always_allocate(), JSObject::cast(), FixedArray::cast(), CHECK, CHECK_EQ, CHECK_GT, Heap::CollectAllGarbage(), PagedSpace::Contains(), NewSpace::Contains(), Heap::CopyJSObject(), Factory::CopyMap(), Isolate::factory(), Isolate::heap(), CcTest::i_isolate(), CcTest::InitializeVM(), CcTest::isolate(), Heap::kAbortIncrementalMarkingMask, FixedArray::kMaxLength, Page::kMaxRegularHeapObjectSize, FixedArray::kMaxSize, v8::internal::kPointerSize, v8::internal::Min(), Heap::new_space(), Heap::old_pointer_space(), and PagedSpace::top().
TEST | ( | TestCodeFlushing | ) |
Definition at line 1049 of file test-heap.cc.
References JSFunction::cast(), CHECK, Heap::CollectAllGarbage(), Isolate::context(), Isolate::factory(), v8::internal::GetProperty(), Context::global_object(), CcTest::heap(), CcTest::i_isolate(), CcTest::InitializeVM(), Factory::InternalizeUtf8String(), CcTest::isolate(), and Heap::kAbortIncrementalMarkingMask.
TEST | ( | TestCodeFlushingPreAged | ) |
Definition at line 1099 of file test-heap.cc.
References JSFunction::cast(), CHECK, Heap::CollectAllGarbage(), Isolate::factory(), v8::internal::GetProperty(), CcTest::heap(), CcTest::InitializeVM(), Factory::InternalizeUtf8String(), CcTest::isolate(), and Heap::kAbortIncrementalMarkingMask.
TEST | ( | TestCodeFlushingIncremental | ) |
Definition at line 1164 of file test-heap.cc.
References JSFunction::cast(), CHECK, Heap::CollectAllGarbage(), Isolate::context(), Isolate::factory(), v8::internal::GetProperty(), Context::global_object(), CcTest::heap(), CcTest::i_isolate(), CcTest::InitializeVM(), Factory::InternalizeUtf8String(), CcTest::isolate(), Heap::kAbortIncrementalMarkingMask, and Heap::kNoGCFlags.
TEST | ( | TestCodeFlushingIncrementalScavenge | ) |
Definition at line 1233 of file test-heap.cc.
References JSFunction::cast(), CHECK, Heap::CollectAllGarbage(), Heap::CollectGarbage(), Isolate::context(), Isolate::factory(), v8::internal::GetProperty(), Context::global_object(), CcTest::heap(), CcTest::i_isolate(), CcTest::InitializeVM(), Factory::InternalizeUtf8String(), CcTest::isolate(), Heap::kAbortIncrementalMarkingMask, Heap::kNoGCFlags, v8::internal::NEW_SPACE, and v8::internal::NULL.
TEST | ( | TestCodeFlushingIncrementalAbort | ) |
Definition at line 1302 of file test-heap.cc.
References JSFunction::cast(), CHECK, Heap::CollectAllGarbage(), Isolate::context(), Isolate::factory(), Smi::FromInt(), v8::internal::GetProperty(), Context::global_object(), Isolate::heap(), CcTest::i_isolate(), CcTest::InitializeVM(), Factory::InternalizeUtf8String(), CcTest::isolate(), Heap::kAbortIncrementalMarkingMask, and Heap::kNoGCFlags.
TEST | ( | TestInternalWeakLists | ) |
Definition at line 1395 of file test-heap.cc.
References CHECK_EQ, CompilationCache::Clear(), Handle< T >::Clear(), Heap::CollectAllGarbage(), Heap::CollectGarbage(), Isolate::compilation_cache(), CountNativeContexts(), Context::Enter(), Context::Exit(), CcTest::heap(), Isolate::heap(), CcTest::i_isolate(), V8::Initialize(), CcTest::isolate(), Heap::kNoGCFlags, Context::New(), v8::internal::NEW_SPACE, Heap::NotifyContextDisposed(), and Isolate::use_crankshaft().
TEST | ( | TestInternalWeakListsTraverseWithGC | ) |
Definition at line 1545 of file test-heap.cc.
References CHECK_EQ, CountNativeContexts(), Context::Enter(), Context::Exit(), CcTest::i_isolate(), V8::Initialize(), CcTest::isolate(), Context::New(), and Isolate::use_crankshaft().
TEST | ( | TestSizeOfObjects | ) |
Definition at line 1596 of file test-heap.cc.
References PagedSpace::AdvanceSweeper(), Heap::AllocateFixedArray(), CHECK, CHECK_EQ, Heap::CollectAllGarbage(), CcTest::heap(), CcTest::i_isolate(), V8::Initialize(), v8::internal::KB, Heap::kNoGCFlags, Heap::old_pointer_space(), FixedArray::SizeFor(), Heap::SizeOfObjects(), and v8::internal::TENURED.
TEST | ( | TestSizeOfObjectsVsHeapIteratorPrecision | ) |
Definition at line 1637 of file test-heap.cc.
References CHECK_GT, Heap::EnsureHeapIsIterable(), CcTest::heap(), CcTest::InitializeVM(), v8::internal::NULL, v8::internal::PrintF(), Heap::SizeOfObjects(), and V8_PTR_PREFIX.
TEST | ( | GrowAndShrinkNewSpace | ) |
Definition at line 1688 of file test-heap.cc.
References NewSpace::Capacity(), CHECK, CHECK_LE, Heap::CollectGarbage(), NewSpace::Grow(), CcTest::heap(), CcTest::InitializeVM(), Heap::InitialSemiSpaceSize(), Heap::MaxSemiSpaceSize(), v8::internal::NEW_SPACE, Heap::new_space(), Heap::ReservedSemiSpaceSize(), NewSpace::Shrink(), and NewSpace::Size().
TEST | ( | CollectingAllAvailableGarbageShrinksNewSpace | ) |
Definition at line 1739 of file test-heap.cc.
References NewSpace::Capacity(), CHECK, Heap::CollectAllAvailableGarbage(), NewSpace::Grow(), CcTest::heap(), CcTest::InitializeVM(), Heap::InitialSemiSpaceSize(), CcTest::isolate(), Heap::MaxSemiSpaceSize(), Heap::new_space(), and Heap::ReservedSemiSpaceSize().
TEST | ( | LeakNativeContextViaMap | ) |
Definition at line 1776 of file test-heap.cc.
References CHECK_EQ, Heap::CollectAllAvailableGarbage(), V8::ContextDisposedNotification(), Context::Enter(), Context::Exit(), Context::Global(), CcTest::heap(), CcTest::isolate(), Local< T >::New(), Integer::New(), Context::New(), and PersistentBase< T >::Reset().
TEST | ( | LeakNativeContextViaFunction | ) |
Definition at line 1822 of file test-heap.cc.
References CHECK_EQ, Heap::CollectAllAvailableGarbage(), V8::ContextDisposedNotification(), Context::Enter(), Context::Exit(), Context::Global(), CcTest::heap(), CcTest::isolate(), Local< T >::New(), Integer::New(), Context::New(), and PersistentBase< T >::Reset().
TEST | ( | LeakNativeContextViaMapKeyed | ) |
Definition at line 1866 of file test-heap.cc.
References CHECK_EQ, Heap::CollectAllAvailableGarbage(), V8::ContextDisposedNotification(), Context::Enter(), Context::Exit(), Context::Global(), CcTest::heap(), CcTest::isolate(), Local< T >::New(), Integer::New(), Context::New(), and PersistentBase< T >::Reset().
TEST | ( | LeakNativeContextViaMapProto | ) |
Definition at line 1910 of file test-heap.cc.
References CHECK_EQ, Heap::CollectAllAvailableGarbage(), V8::ContextDisposedNotification(), Context::Enter(), Context::Exit(), Context::Global(), CcTest::heap(), CcTest::isolate(), Local< T >::New(), Integer::New(), Context::New(), and PersistentBase< T >::Reset().
TEST | ( | InstanceOfStubWriteBarrier | ) |
Definition at line 1958 of file test-heap.cc.
References IncrementalMarking::Abort(), Function::Call(), Handle< T >::Cast(), CHECK, Heap::CollectGarbage(), Object::Get(), CcTest::global(), CcTest::heap(), CcTest::i_isolate(), Heap::incremental_marking(), CcTest::InitializeVM(), CcTest::isolate(), IncrementalMarking::IsStopped(), v8::internal::MB, IncrementalMarking::NO_GC_VIA_STACK_GUARD, v8::internal::NULL, v8::internal::OLD_POINTER_SPACE, Utils::OpenHandle(), IncrementalMarking::set_should_hurry(), IncrementalMarking::Start(), and IncrementalMarking::Step().
TEST | ( | PrototypeTransitionClearing | ) |
Definition at line 2014 of file test-heap.cc.
References HeapObject::address(), CHECK, CHECK_EQ, Heap::CollectAllGarbage(), MemoryChunk::Contains(), Isolate::factory(), v8::internal::FAST_HOLEY_ELEMENTS, Map::GetPrototypeTransition(), Map::GetPrototypeTransitions(), CcTest::global(), CcTest::heap(), CcTest::i_isolate(), CcTest::InitializeVM(), CcTest::isolate(), Heap::kAbortIncrementalMarkingMask, v8::internal::KB, Heap::kNoGCFlags, Map::kProtoTransitionElementsPerEntry, Map::kProtoTransitionHeaderSize, Map::kProtoTransitionMapOffset, Map::kProtoTransitionPrototypeOffset, PagedSpace::LastPage(), v8::internal::map, Factory::NewJSArray(), Heap::old_pointer_space(), Utils::OpenHandle(), JSObject::SetPrototype(), and v8::internal::TENURED.
TEST | ( | ResetSharedFunctionInfoCountersDuringIncrementalMarking | ) |
Definition at line 2077 of file test-heap.cc.
References IncrementalMarking::Abort(), CHECK, CHECK_EQ, Heap::CollectAllGarbage(), V8::ContextDisposedNotification(), CcTest::global(), CcTest::heap(), CcTest::i_isolate(), V8::IdleNotification(), Heap::incremental_marking(), CcTest::InitializeVM(), CcTest::isolate(), Heap::kNoGCFlags, v8::internal::MB, IncrementalMarking::NO_GC_VIA_STACK_GUARD, and Utils::OpenHandle().
TEST | ( | ResetSharedFunctionInfoCountersDuringMarkSweep | ) |
Definition at line 2134 of file test-heap.cc.
References IncrementalMarking::Abort(), CHECK, CHECK_EQ, V8::ContextDisposedNotification(), CcTest::global(), CcTest::heap(), CcTest::i_isolate(), V8::IdleNotification(), Heap::incremental_marking(), CcTest::InitializeVM(), CcTest::isolate(), and Utils::OpenHandle().
TEST | ( | OptimizedAllocationAlwaysInNewSpace | ) |
Definition at line 2178 of file test-heap.cc.
References CHECK, CHECK_EQ, CcTest::heap(), CcTest::i_isolate(), CcTest::InitializeVM(), CcTest::isolate(), and Utils::OpenHandle().
TEST | ( | OptimizedPretenuringAllocationFolding | ) |
Definition at line 2207 of file test-heap.cc.
References CHECK, CcTest::heap(), CcTest::i_isolate(), CcTest::InitializeVM(), CcTest::isolate(), Utils::OpenHandle(), and Heap::SetNewSpaceHighPromotionModeActive().
TEST | ( | OptimizedPretenuringAllocationFoldingBlocks | ) |
Definition at line 2250 of file test-heap.cc.
References CHECK, CcTest::heap(), CcTest::i_isolate(), CcTest::InitializeVM(), CcTest::isolate(), Utils::OpenHandle(), and Heap::SetNewSpaceHighPromotionModeActive().
TEST | ( | OptimizedPretenuringObjectArrayLiterals | ) |
Definition at line 2293 of file test-heap.cc.
References CHECK, CcTest::heap(), CcTest::i_isolate(), CcTest::InitializeVM(), CcTest::isolate(), and Utils::OpenHandle().
TEST | ( | OptimizedPretenuringMixedInObjectProperties | ) |
Definition at line 2322 of file test-heap.cc.
References CHECK, CcTest::heap(), CcTest::i_isolate(), CcTest::InitializeVM(), CcTest::isolate(), Utils::OpenHandle(), and JSObject::RawFastPropertyAt().
TEST | ( | OptimizedPretenuringDoubleArrayProperties | ) |
Definition at line 2357 of file test-heap.cc.
References CHECK, CcTest::heap(), CcTest::i_isolate(), CcTest::InitializeVM(), CcTest::isolate(), and Utils::OpenHandle().
TEST | ( | OptimizedPretenuringdoubleArrayLiterals | ) |
Definition at line 2386 of file test-heap.cc.
References CHECK, CcTest::heap(), CcTest::i_isolate(), CcTest::InitializeVM(), CcTest::isolate(), and Utils::OpenHandle().
TEST | ( | OptimizedPretenuringNestedMixedArrayLiterals | ) |
Definition at line 2415 of file test-heap.cc.
References Object::Cast(), CHECK, CcTest::heap(), CcTest::i_isolate(), CcTest::InitializeVM(), CcTest::isolate(), and Utils::OpenHandle().
TEST | ( | OptimizedPretenuringNestedObjectLiterals | ) |
Definition at line 2453 of file test-heap.cc.
References Object::Cast(), CHECK, CcTest::heap(), CcTest::i_isolate(), CcTest::InitializeVM(), CcTest::isolate(), and Utils::OpenHandle().
TEST | ( | OptimizedPretenuringNestedDoubleLiterals | ) |
Definition at line 2491 of file test-heap.cc.
References Object::Cast(), CHECK, CcTest::heap(), CcTest::i_isolate(), CcTest::InitializeVM(), CcTest::isolate(), and Utils::OpenHandle().
TEST | ( | OptimizedPretenuringConstructorCalls | ) |
Definition at line 2533 of file test-heap.cc.
References CHECK, CcTest::heap(), CcTest::i_isolate(), CcTest::InitializeVM(), CcTest::isolate(), and Utils::OpenHandle().
TEST | ( | OptimizedAllocationArrayLiterals | ) |
Definition at line 2570 of file test-heap.cc.
References Object::Cast(), CHECK, CHECK_EQ, CcTest::heap(), CcTest::i_isolate(), CcTest::InitializeVM(), CcTest::isolate(), and Utils::OpenHandle().
TEST | ( | OptimizedPretenuringCallNew | ) |
Definition at line 2597 of file test-heap.cc.
References CHECK, CcTest::heap(), CcTest::i_isolate(), CcTest::InitializeVM(), CcTest::isolate(), Utils::OpenHandle(), and Heap::SetNewSpaceHighPromotionModeActive().
TEST | ( | Regress1465 | ) |
Definition at line 2630 of file test-heap.cc.
References CHECK_EQ, Heap::CollectAllGarbage(), CcTest::global(), CcTest::heap(), CcTest::i_isolate(), CcTest::InitializeVM(), CcTest::isolate(), Heap::kNoGCFlags, Utils::OpenHandle(), OS::SNPrintF(), and Vector< T >::start().
TEST | ( | Regress2143a | ) |
Definition at line 2669 of file test-heap.cc.
References Heap::AgeInlineCaches(), CHECK, Heap::CollectAllGarbage(), CcTest::global(), CcTest::heap(), CcTest::InitializeVM(), CcTest::isolate(), Heap::kNoGCFlags, and Utils::OpenHandle().
TEST | ( | Regress2143b | ) |
Definition at line 2709 of file test-heap.cc.
References Heap::AgeInlineCaches(), CHECK, Heap::CollectAllGarbage(), CcTest::global(), CcTest::heap(), CcTest::InitializeVM(), CcTest::isolate(), Heap::kNoGCFlags, and Utils::OpenHandle().
TEST | ( | ReleaseOverReservedPages | ) |
Definition at line 2753 of file test-heap.cc.
References CHECK_EQ, CHECK_GE, Heap::CollectAllAvailableGarbage(), Heap::CollectAllGarbage(), PagedSpace::CountTotalPages(), Isolate::factory(), Isolate::heap(), CcTest::i_isolate(), CcTest::InitializeVM(), CcTest::isolate(), Heap::kNoGCFlags, Factory::NewFixedArray(), Heap::old_pointer_space(), and v8::internal::TENURED.
TEST | ( | Regress2237 | ) |
Definition at line 2799 of file test-heap.cc.
References SlicedString::cast(), CHECK, Heap::CollectAllGarbage(), v8::internal::CStrVector(), Isolate::factory(), CcTest::heap(), CcTest::i_isolate(), CcTest::InitializeVM(), CcTest::isolate(), Heap::kNoGCFlags, Factory::NewProperSubString(), Factory::NewStringFromAscii(), and SlicedString::parent().
TEST | ( | Regress2211 | ) |
Definition at line 2849 of file test-heap.cc.
References ObjectHashTable::cast(), CHECK, CHECK_EQ, CHECK_LE, Value::Equals(), Smi::FromInt(), DescriptorArray::GetFieldIndex(), Object::GetHiddenValue(), v8::internal::handle(), CcTest::heap(), CcTest::i_isolate(), CcTest::InitializeVM(), CcTest::isolate(), v8::internal::kPointerSize, FixedArrayBase::length(), Object::New(), Utils::OpenHandle(), Object::SetHiddenValue(), JSObject::SetIdentityHash(), and FixedArray::SizeFor().
TEST | ( | IncrementalMarkingClearsTypeFeedbackInfo | ) |
Definition at line 2884 of file test-heap.cc.
References TypeFeedbackInfo::cast(), CHECK, CHECK_EQ, Heap::CollectAllGarbage(), CcTest::global(), Context::Global(), CcTest::heap(), CcTest::i_isolate(), CcTest::InitializeVM(), CcTest::isolate(), Heap::kNoGCFlags, Utils::OpenHandle(), and TypeFeedbackInfo::UninitializedSentinel().
TEST | ( | IncrementalMarkingPreservesMonomorphicIC | ) |
Definition at line 2946 of file test-heap.cc.
References CHECK, Heap::CollectAllGarbage(), CcTest::global(), CcTest::heap(), Code::ic_state(), CcTest::InitializeVM(), CcTest::isolate(), Heap::kNoGCFlags, v8::internal::MONOMORPHIC, and Utils::OpenHandle().
TEST | ( | IncrementalMarkingClearsMonomorphicIC | ) |
Definition at line 2971 of file test-heap.cc.
References CHECK, Heap::CollectAllGarbage(), V8::ContextDisposedNotification(), CcTest::global(), Context::Global(), CcTest::heap(), Code::ic_state(), CcTest::InitializeVM(), IC::IsCleared(), CcTest::isolate(), Heap::kNoGCFlags, v8::internal::MONOMORPHIC, and Utils::OpenHandle().
TEST | ( | IncrementalMarkingClearsPolymorphicIC | ) |
Definition at line 3005 of file test-heap.cc.
References CHECK, Heap::CollectAllGarbage(), V8::ContextDisposedNotification(), CcTest::global(), Context::Global(), CcTest::heap(), Code::ic_state(), CcTest::InitializeVM(), IC::IsCleared(), CcTest::isolate(), Heap::kNoGCFlags, Utils::OpenHandle(), and v8::internal::POLYMORPHIC.
TEST | ( | ReleaseStackTraceData | ) |
Definition at line 3095 of file test-heap.cc.
References CcTest::InitializeVM(), and ReleaseStackTraceDataTest().
TEST | ( | Regress159140 | ) |
Definition at line 3146 of file test-heap.cc.
References CHECK, HandleScope::CloseAndEscape(), v8::internal::code(), Heap::CollectAllGarbage(), CcTest::global(), Isolate::heap(), CcTest::i_isolate(), CcTest::InitializeVM(), Heap::kAbortIncrementalMarkingMask, Heap::kNoGCFlags, and Utils::OpenHandle().
TEST | ( | Regress165495 | ) |
Definition at line 3208 of file test-heap.cc.
References CHECK, Heap::CollectAllGarbage(), CcTest::global(), Isolate::heap(), CcTest::i_isolate(), CcTest::InitializeVM(), Heap::kAbortIncrementalMarkingMask, Heap::kNoGCFlags, and Utils::OpenHandle().
TEST | ( | Regress169209 | ) |
Definition at line 3255 of file test-heap.cc.
References CHECK, HandleScope::CloseAndEscape(), Heap::CollectAllGarbage(), CcTest::global(), v8::internal::handle(), Isolate::heap(), CcTest::i_isolate(), CcTest::InitializeVM(), Heap::kAbortIncrementalMarkingMask, Heap::kNoGCFlags, v8::internal::NULL, and Utils::OpenHandle().
TEST | ( | Regress169928 | ) |
Definition at line 3343 of file test-heap.cc.
References Heap::AllocateRaw(), CHECK, CHECK_EQ, Heap::CollectGarbage(), Script::Compile(), Heap::CreateFillerObjectAt(), Isolate::factory(), v8::internal::FAST_SMI_ELEMENTS, Smi::FromInt(), CcTest::global(), CcTest::heap(), CcTest::i_isolate(), CcTest::InitializeVM(), CcTest::isolate(), v8::internal::kHeapObjectTag, v8::internal::kPointerSize, AllocationMemento::kSize, JSArray::kSize, Integer::New(), v8::internal::NEW_SPACE, Factory::NewFixedArray(), Factory::NewJSArrayWithElements(), v8::internal::NOT_TENURED, v8::internal::NULL, v8::internal::OLD_POINTER_SPACE, and Utils::ToLocal().
TEST | ( | Regress168801 | ) |
Definition at line 3416 of file test-heap.cc.
References CHECK, HandleScope::CloseAndEscape(), Heap::code_space(), Heap::CollectAllGarbage(), CcTest::global(), v8::internal::handle(), Isolate::heap(), CcTest::i_isolate(), CcTest::InitializeVM(), Heap::kAbortIncrementalMarkingMask, Heap::kNoGCFlags, and Utils::OpenHandle().
TEST | ( | Regress173458 | ) |
Definition at line 3472 of file test-heap.cc.
References CHECK, HandleScope::CloseAndEscape(), Heap::code_space(), Heap::CollectAllGarbage(), CcTest::global(), v8::internal::handle(), Isolate::heap(), CcTest::i_isolate(), CcTest::InitializeVM(), Heap::kAbortIncrementalMarkingMask, Heap::kNoGCFlags, and Utils::OpenHandle().
TEST | ( | DeferredHandles | ) |
Definition at line 3533 of file test-heap.cc.
References ASSERT, DeferredHandleScope::Detach(), Isolate::handle_scope_data(), Isolate::handle_scope_implementer(), Isolate::heap(), CcTest::i_isolate(), CcTest::InitializeVM(), HandleScopeImplementer::Iterate(), HandleScopeData::limit, HandleScopeData::next, and obj.
TEST | ( | IncrementalMarkingStepMakesBigProgressWithLargeObjects | ) |
Definition at line 3554 of file test-heap.cc.
References ASSERT, CcTest::heap(), Heap::incremental_marking(), CcTest::InitializeVM(), IncrementalMarking::IsComplete(), CcTest::isolate(), IncrementalMarking::IsStopped(), v8::internal::MB, IncrementalMarking::NO_GC_VIA_STACK_GUARD, IncrementalMarking::Start(), and IncrementalMarking::Step().
TEST | ( | DisableInlineAllocation | ) |
Definition at line 3570 of file test-heap.cc.
References Heap::DisableInlineAllocation(), Heap::EnableInlineAllocation(), CcTest::heap(), CcTest::InitializeVM(), CcTest::isolate(), and Heap::SetNewSpaceHighPromotionModeActive().
TEST | ( | EnsureAllocationSiteDependentCodesProcessed | ) |
Definition at line 3614 of file test-heap.cc.
References Heap::allocation_sites_list(), DependentCode::GroupStartIndexes::at(), Handle< T >::cast(), AllocationSite::cast(), CHECK, CHECK_EQ, CHECK_GE, Heap::CollectAllGarbage(), GlobalHandles::Create(), Context::GetIsolate(), CcTest::global(), Isolate::global_handles(), CcTest::heap(), CcTest::i_isolate(), CcTest::InitializeVM(), DependentCode::kAllocationSiteTransitionChangedGroup, Utils::OpenHandle(), and Isolate::use_crankshaft().
TEST | ( | CellsInOptimizedCodeAreWeak | ) |
Definition at line 3671 of file test-heap.cc.
References ASSERT, bar, v8::internal::code(), Heap::CollectAllGarbage(), CcTest::global(), CcTest::heap(), CcTest::i_isolate(), CcTest::InitializeVM(), Heap::isolate(), Heap::kAbortIncrementalMarkingMask, Utils::OpenHandle(), and Isolate::use_crankshaft().
TEST | ( | ObjectsInOptimizedCodeAreWeak | ) |
Definition at line 3714 of file test-heap.cc.
References ASSERT, bar, v8::internal::code(), Heap::CollectAllGarbage(), CcTest::global(), CcTest::heap(), CcTest::i_isolate(), CcTest::InitializeVM(), Heap::isolate(), Heap::kAbortIncrementalMarkingMask, Utils::OpenHandle(), and Isolate::use_crankshaft().
TEST | ( | NextCodeLinkIsWeak | ) |
Definition at line 3782 of file test-heap.cc.
References CHECK_EQ, v8::internal::code(), Heap::CollectAllAvailableGarbage(), CcTest::heap(), CcTest::i_isolate(), CcTest::InitializeVM(), Heap::isolate(), and Isolate::use_crankshaft().
TEST | ( | NextCodeLinkIsWeak2 | ) |
Definition at line 3824 of file test-heap.cc.
References Context::cast(), CHECK_EQ, Heap::CollectAllAvailableGarbage(), CcTest::heap(), CcTest::i_isolate(), CcTest::InitializeVM(), Heap::isolate(), Heap::native_contexts_list(), Context::OPTIMIZED_CODE_LIST, and Isolate::use_crankshaft().