30 using namespace v8::internal;
33 static void SetUpNewSpaceWithPoisonedMementoAtTop() {
50 memento->set_allocation_site(
57 if (!i::FLAG_allocation_site_pretenuring)
return;
61 SetUpNewSpaceWithPoisonedMementoAtTop();
70 TEST(BadMementoAfterTopForceScavenge) {
72 if (!i::FLAG_allocation_site_pretenuring)
return;
75 SetUpNewSpaceWithPoisonedMementoAtTop();
84 if (!i::FLAG_allocation_site_pretenuring)
return;
85 if (!i::FLAG_pretenuring_call_new)
return;
103 "for(var i = 0; i < %d; i++) {"
113 Address memento_address = o->address() + o->map()->instance_size();
116 CHECK_EQ(memento->
map(), heap->allocation_memento_map());
122 site->pretenure_create_count()->value());
static const int kGenerousAllocationCount
#define CHECK_EQ(expected, value)
AllocationSite * GetAllocationSite()
void CollectAllGarbage(int flags, const char *gc_reason=NULL, const GCCallbackFlags gc_callback_flags=kNoGCCallbackFlags)
static i::Isolate * i_isolate()
static v8::internal::Handle< To > OpenHandle(v8::Local< From > handle)
void set_map_no_write_barrier(Map *value)
static const int kAbortIncrementalMarkingMask
bool CollectGarbage(AllocationSpace space, const char *gc_reason=NULL, const GCCallbackFlags gc_callback_flags=kNoGCCallbackFlags)
static int SNPrintF(Vector< char > str, const char *format,...)
static void InitializeVM()
Handle< SeqOneByteString > NewRawOneByteString(int length, PretenureFlag pretenure=NOT_TENURED)
static v8::Isolate * isolate()