Lines Matching refs:CcTest

55   CHECK(CcTest::heap()->Contains(map));  in CheckMap()
57 CHECK_EQ(CcTest::heap()->meta_map(), map->map()); in CheckMap()
64 CcTest::InitializeVM(); in TEST()
65 Heap* heap = CcTest::heap(); in TEST()
133 CcTest::InitializeVM(); in TEST()
134 Isolate* isolate = CcTest::i_isolate(); in TEST()
143 CcTest::InitializeVM(); in TEST()
144 Isolate* isolate = CcTest::i_isolate(); in TEST()
204 CcTest::i_isolate()->context()->global_object()); in TEST()
248 CcTest::InitializeVM(); in TEST()
249 Isolate* isolate = CcTest::i_isolate(); in TEST()
425 CcTest::InitializeVM(); in TEST()
435 CcTest::InitializeVM(); in TEST()
436 Isolate* isolate = CcTest::i_isolate(); in TEST()
445 CcTest::i_isolate()->context()->global_object()); in TEST()
511 CcTest::InitializeVM(); in TEST()
512 Isolate* isolate = reinterpret_cast<Isolate*>(CcTest::isolate()); in TEST()
523 CcTest::InitializeVM(); in TEST()
524 Isolate* isolate = CcTest::i_isolate(); in TEST()
527 v8::HandleScope scope(CcTest::isolate()); in TEST()
535 CcTest::InitializeVM(); in TEST()
536 Isolate* isolate = CcTest::i_isolate(); in TEST()
590 CcTest::InitializeVM(); in TEST()
591 Isolate* isolate = CcTest::i_isolate(); in TEST()
632 CcTest::InitializeVM(); in TEST()
633 Isolate* isolate = CcTest::i_isolate(); in TEST()
679 CcTest::InitializeVM(); in TEST()
680 Isolate* isolate = CcTest::i_isolate(); in TEST()
720 CcTest::InitializeVM(); in TEST()
721 Isolate* isolate = CcTest::i_isolate(); in TEST()
837 Isolate* isolate = CcTest::i_isolate(); in CheckInternalizedStrings()
856 CcTest::InitializeVM(); in TEST()
858 v8::HandleScope sc(CcTest::isolate()); in TEST()
865 CcTest::InitializeVM(); in TEST()
866 Isolate* isolate = CcTest::i_isolate(); in TEST()
869 v8::HandleScope sc(CcTest::isolate()); in TEST()
889 CcTest::InitializeVM(); in TEST()
890 Isolate* isolate = CcTest::i_isolate(); in TEST()
893 v8::HandleScope sc(CcTest::isolate()); in TEST()
894 Handle<String> object_string(String::cast(CcTest::heap()->Object_string())); in TEST()
896 CcTest::i_isolate()->global_object(), object_string).ToHandleChecked(); in TEST()
959 CcTest::InitializeVM(); in TEST()
960 Isolate* isolate = CcTest::i_isolate(); in TEST()
963 v8::HandleScope sc(CcTest::isolate()); in TEST()
983 CcTest::InitializeVM(); in TEST()
984 Isolate* isolate = CcTest::i_isolate(); in TEST()
987 v8::HandleScope sc(CcTest::isolate()); in TEST()
990 CcTest::i_isolate()->global_object(), name).ToHandleChecked(); in TEST()
1033 CcTest::InitializeVM(); in TEST()
1034 Isolate* isolate = CcTest::i_isolate(); in TEST()
1037 v8::HandleScope sc(CcTest::isolate()); in TEST()
1038 Handle<String> object_string(String::cast(CcTest::heap()->Object_string())); in TEST()
1040 CcTest::i_isolate()->global_object(), object_string).ToHandleChecked(); in TEST()
1098 CcTest::InitializeVM(); in TEST()
1099 Isolate* isolate = CcTest::i_isolate(); in TEST()
1104 v8::HandleScope scope(CcTest::isolate()); in TEST()
1153 CcTest::InitializeVM(); in TEST()
1154 Isolate* isolate = CcTest::i_isolate(); in TEST()
1156 v8::HandleScope scope(CcTest::isolate()); in TEST()
1185 CHECK_EQ(objs_count, ObjectsFoundInHeap(CcTest::heap(), objs, objs_count)); in TEST()
1195 create_params.array_buffer_allocator = CcTest::array_buffer_allocator(); in UNINITIALIZED_TEST()
1254 CcTest::InitializeVM(); in TEST()
1255 Isolate* isolate = CcTest::i_isolate(); in TEST()
1257 v8::HandleScope scope(CcTest::isolate()); in TEST()
1267 { v8::HandleScope scope(CcTest::isolate()); in TEST()
1279 CcTest::heap()->CollectAllGarbage(); in TEST()
1284 CcTest::heap()->CollectAllGarbage(); in TEST()
1288 { v8::HandleScope scope(CcTest::isolate()); in TEST()
1294 CcTest::heap()->CollectAllGarbage(); in TEST()
1295 CcTest::heap()->CollectAllGarbage(); in TEST()
1301 CcTest::heap()->CollectAllGarbage(); in TEST()
1319 CcTest::InitializeVM(); in TEST()
1320 Isolate* isolate = CcTest::i_isolate(); in TEST()
1322 v8::HandleScope scope(CcTest::isolate()); in TEST()
1332 { v8::HandleScope scope(CcTest::isolate()); in TEST()
1344 CcTest::heap()->CollectAllGarbage(); in TEST()
1345 CcTest::heap()->CollectAllGarbage(); in TEST()
1351 SimulateIncrementalMarking(CcTest::heap()); in TEST()
1352 CcTest::heap()->CollectAllGarbage(); in TEST()
1358 { v8::HandleScope scope(CcTest::isolate()); in TEST()
1365 SimulateIncrementalMarking(CcTest::heap()); in TEST()
1367 CcTest::heap()->CollectAllGarbage(); in TEST()
1372 { v8::HandleScope scope(CcTest::isolate()); in TEST()
1377 CcTest::heap()->CollectAllGarbage(); in TEST()
1388 CcTest::InitializeVM(); in TEST()
1389 Isolate* isolate = CcTest::i_isolate(); in TEST()
1391 v8::HandleScope scope(CcTest::isolate()); in TEST()
1406 CcTest::heap()->CollectAllGarbage(); in TEST()
1409 { v8::HandleScope scope(CcTest::isolate()); in TEST()
1426 { v8::HandleScope scope(CcTest::isolate()); in TEST()
1441 SimulateIncrementalMarking(CcTest::heap()); in TEST()
1443 CcTest::heap()->CollectGarbage(NEW_SPACE, "test scavenge while marking"); in TEST()
1446 CcTest::heap()->CollectAllGarbage(); in TEST()
1457 CcTest::InitializeVM(); in TEST()
1458 Isolate* isolate = CcTest::i_isolate(); in TEST()
1461 v8::HandleScope scope(CcTest::isolate()); in TEST()
1471 { v8::HandleScope scope(CcTest::isolate()); in TEST()
1502 EnableDebugger(CcTest::isolate()); in TEST()
1505 DisableDebugger(CcTest::isolate()); in TEST()
1508 { v8::HandleScope scope(CcTest::isolate()); in TEST()
1525 CcTest::InitializeVM(); in TEST()
1526 Isolate* isolate = CcTest::i_isolate(); in TEST()
1533 v8::HandleScope scope(CcTest::isolate()); in TEST()
1545 v8::HandleScope scope(CcTest::isolate()); in TEST()
1558 v8::HandleScope scope(CcTest::isolate()); in TEST()
1601 v8::HandleScope scope(CcTest::isolate()); in TEST()
1618 v8::HandleScope scope(CcTest::isolate()); in TEST()
1633 HandleScope scope(CcTest::i_isolate()); in OptimizeEmptyFunction()
1648 Object* object = CcTest::heap()->native_contexts_list(); in CountNativeContexts()
1684 Isolate* isolate = CcTest::i_isolate(); in TEST()
1694 ctx[i] = v8::Context::New(CcTest::isolate()); in TEST()
1725 CcTest::heap()->CollectGarbage(NEW_SPACE); in TEST()
1737 CcTest::heap()->CollectGarbage(NEW_SPACE); in TEST()
1740 CcTest::heap()->CollectAllGarbage(); in TEST()
1744 CcTest::heap()->CollectGarbage(NEW_SPACE); in TEST()
1747 CcTest::heap()->CollectAllGarbage(); in TEST()
1754 CcTest::heap()->NotifyContextDisposed(true); in TEST()
1755 CcTest::heap()->CollectAllGarbage(); in TEST()
1761 *unsafe = CcTest::heap()->undefined_value(); in TEST()
1766 CcTest::heap()->CollectGarbage(i::NEW_SPACE); in TEST()
1771 CcTest::heap()->CollectAllGarbage(); in TEST()
1825 Isolate* isolate = CcTest::i_isolate(); in TEST()
1835 ctx[i] = v8::Context::New(CcTest::isolate()); in TEST()
1870 Isolate* isolate = CcTest::i_isolate(); in TEST()
1892 CcTest::heap()->CollectAllGarbage(); in TEST()
1893 CcTest::heap()->CollectAllGarbage(); in TEST()
1894 CcTest::heap()->CollectAllGarbage(); in TEST()
1895 CcTest::heap()->CollectAllGarbage(); in TEST()
1896 CcTest::heap()->CollectAllGarbage(); in TEST()
1897 MarkCompactCollector* collector = CcTest::heap()->mark_compact_collector(); in TEST()
1901 int initial_size = static_cast<int>(CcTest::heap()->SizeOfObjects()); in TEST()
1904 CcTest::heap()->CollectAllGarbage(); in TEST()
1905 int size_with_regexp = static_cast<int>(CcTest::heap()->SizeOfObjects()); in TEST()
1908 CcTest::heap()->CollectAllGarbage(); in TEST()
1910 static_cast<int>(CcTest::heap()->SizeOfObjects()); in TEST()
1932 CcTest::heap()->CollectAllGarbage(); in HEAP_TEST()
1933 CcTest::heap()->CollectAllGarbage(); in HEAP_TEST()
1934 CcTest::heap()->CollectAllGarbage(); in HEAP_TEST()
1935 CcTest::heap()->CollectAllGarbage(); in HEAP_TEST()
1936 CcTest::heap()->CollectAllGarbage(); in HEAP_TEST()
1937 MarkCompactCollector* collector = CcTest::heap()->mark_compact_collector(); in HEAP_TEST()
1941 int initial_size = static_cast<int>(CcTest::heap()->SizeOfObjects()); in HEAP_TEST()
1947 AlwaysAllocateScope always_allocate(CcTest::i_isolate()); in HEAP_TEST()
1950 CcTest::heap()->AllocateFixedArray(8192, TENURED).ToObjectChecked(); in HEAP_TEST()
1952 static_cast<int>(CcTest::heap()->SizeOfObjects())); in HEAP_TEST()
1958 CcTest::heap()->CollectAllGarbage(); in HEAP_TEST()
1962 CHECK_EQ(initial_size, static_cast<int>(CcTest::heap()->SizeOfObjects())); in HEAP_TEST()
1968 CHECK_EQ(initial_size, static_cast<int>(CcTest::heap()->SizeOfObjects())); in HEAP_TEST()
2021 Heap* heap = CcTest::heap(); in NewSpaceAllocateAligned()
2033 Address* top_addr = CcTest::heap()->new_space()->allocation_top_address(); in AlignNewSpace()
2045 Address* top_addr = CcTest::heap()->new_space()->allocation_top_address(); in TEST()
2124 Heap* heap = CcTest::heap(); in OldSpaceAllocateAligned()
2136 Address* top_addr = CcTest::heap()->old_space()->allocation_top_address(); in AlignOldSpace()
2144 CcTest::heap()->old_space()->EmptyAllocationInfo(); in AlignOldSpace()
2238 CcTest::InitializeVM(); in TEST()
2239 HeapIterator iterator(CcTest::heap()); in TEST()
2240 intptr_t size_of_objects_1 = CcTest::heap()->SizeOfObjects(); in TEST()
2288 CcTest::InitializeVM(); in TEST()
2289 Heap* heap = CcTest::heap(); in TEST()
2339 CcTest::InitializeVM(); in TEST()
2340 Heap* heap = CcTest::heap(); in TEST()
2349 v8::HandleScope scope(CcTest::isolate()); in TEST()
2365 HeapIterator iterator(CcTest::heap()); in NumberOfGlobalObjects()
2377 v8::Isolate* isolate = CcTest::isolate(); in TEST()
2388 CcTest::heap()->CollectAllAvailableGarbage(); in TEST()
2414 CcTest::heap()->CollectAllAvailableGarbage(); in TEST()
2417 CcTest::heap()->CollectAllAvailableGarbage(); in TEST()
2426 v8::Isolate* isolate = CcTest::isolate(); in TEST()
2437 CcTest::heap()->CollectAllAvailableGarbage(); in TEST()
2463 CcTest::heap()->CollectAllAvailableGarbage(); in TEST()
2466 CcTest::heap()->CollectAllAvailableGarbage(); in TEST()
2473 v8::Isolate* isolate = CcTest::isolate(); in TEST()
2484 CcTest::heap()->CollectAllAvailableGarbage(); in TEST()
2510 CcTest::heap()->CollectAllAvailableGarbage(); in TEST()
2513 CcTest::heap()->CollectAllAvailableGarbage(); in TEST()
2520 v8::Isolate* isolate = CcTest::isolate(); in TEST()
2531 CcTest::heap()->CollectAllAvailableGarbage(); in TEST()
2561 CcTest::heap()->CollectAllAvailableGarbage(); in TEST()
2564 CcTest::heap()->CollectAllAvailableGarbage(); in TEST()
2575 CcTest::InitializeVM(); in TEST()
2576 if (!CcTest::i_isolate()->use_crankshaft()) return; in TEST()
2578 v8::HandleScope outer_scope(CcTest::isolate()); in TEST()
2579 v8::Local<v8::Context> ctx = CcTest::isolate()->GetCurrentContext(); in TEST()
2582 v8::HandleScope scope(CcTest::isolate()); in TEST()
2593 IncrementalMarking* marking = CcTest::heap()->incremental_marking(); in TEST()
2595 CcTest::heap()->StartIncrementalMarking(); in TEST()
2599 CcTest::global()->Get(ctx, v8_str("f")).ToLocalChecked()))); in TEST()
2613 v8::HandleScope scope(CcTest::isolate()); in TEST()
2614 v8::Local<v8::Object> global = CcTest::global(); in TEST()
2620 CcTest::heap()->incremental_marking()->set_should_hurry(true); in TEST()
2621 CcTest::heap()->CollectGarbage(OLD_SPACE); in TEST()
2632 CcTest::InitializeVM(); in TEST()
2633 if (!CcTest::i_isolate()->use_crankshaft()) return; in TEST()
2634 v8::HandleScope outer_scope(CcTest::isolate()); in TEST()
2635 v8::Local<v8::Context> ctx = CcTest::isolate()->GetCurrentContext(); in TEST()
2638 v8::HandleScope scope(CcTest::isolate()); in TEST()
2651 CcTest::global()->Get(ctx, v8_str("f")).ToLocalChecked()))); in TEST()
2654 IncrementalMarking* marking = CcTest::heap()->incremental_marking(); in TEST()
2656 CcTest::heap()->StartIncrementalMarking(); in TEST()
2658 CcTest::isolate()->ContextDisposedNotification(); in TEST()
2659 SimulateIncrementalMarking(CcTest::heap()); in TEST()
2660 CcTest::heap()->CollectAllGarbage(); in TEST()
2661 CHECK_EQ(CcTest::heap()->global_ic_age(), f->shared()->ic_age()); in TEST()
2674 CcTest::InitializeVM(); in TEST()
2675 if (!CcTest::i_isolate()->use_crankshaft()) return; in TEST()
2676 v8::HandleScope outer_scope(CcTest::isolate()); in TEST()
2677 v8::Local<v8::Context> ctx = CcTest::isolate()->GetCurrentContext(); in TEST()
2680 v8::HandleScope scope(CcTest::isolate()); in TEST()
2693 CcTest::global()->Get(ctx, v8_str("f")).ToLocalChecked()))); in TEST()
2697 CcTest::heap()->incremental_marking()->Stop(); in TEST()
2700 CcTest::isolate()->ContextDisposedNotification(); in TEST()
2701 CcTest::heap()->CollectAllGarbage(); in TEST()
2703 CHECK_EQ(CcTest::heap()->global_ic_age(), f->shared()->ic_age()); in TEST()
2710 CcTest::InitializeVM(); in HEAP_TEST()
2711 Heap* heap = CcTest::heap(); in HEAP_TEST()
2742 CcTest::InitializeVM(); in TEST()
2743 SimulateFullSpace(CcTest::heap()->old_space()); in TEST()
2744 IncrementalMarking* marking = CcTest::heap()->incremental_marking(); in TEST()
2746 CcTest::heap()->StartIncrementalMarking(); in TEST()
2748 CHECK_EQ(CcTest::heap()->gc_count(), 0); in TEST()
2779 CcTest::isolate()->IdleNotificationDeadline( in TEST()
2783 CHECK_EQ(CcTest::heap()->gc_count(), 1); in TEST()
2790 CcTest::InitializeVM(); in TEST()
2791 if (!CcTest::i_isolate()->use_crankshaft() || i::FLAG_always_opt) return; in TEST()
2793 v8::HandleScope scope(CcTest::isolate()); in TEST()
2794 v8::Local<v8::Context> ctx = CcTest::isolate()->GetCurrentContext(); in TEST()
2795 SimulateFullSpace(CcTest::heap()->new_space()); in TEST()
2796 AlwaysAllocateScope always_allocate(CcTest::i_isolate()); in TEST()
2818 CHECK(CcTest::heap()->InNewSpace(*o)); in TEST()
2825 CcTest::InitializeVM(); in TEST()
2826 if (!CcTest::i_isolate()->use_crankshaft() || i::FLAG_always_opt) return; in TEST()
2828 v8::HandleScope scope(CcTest::isolate()); in TEST()
2829 v8::Local<v8::Context> ctx = CcTest::isolate()->GetCurrentContext(); in TEST()
2831 while (!CcTest::heap()->new_space()->IsAtMaximumCapacity()) { in TEST()
2832 CcTest::heap()->new_space()->Grow(); in TEST()
2865 CHECK(CcTest::heap()->InOldSpace(*o)); in TEST()
2866 CHECK(CcTest::heap()->InOldSpace(*int_array_handle)); in TEST()
2867 CHECK(CcTest::heap()->InOldSpace(int_array_handle->elements())); in TEST()
2868 CHECK(CcTest::heap()->InOldSpace(*double_array_handle)); in TEST()
2869 CHECK(CcTest::heap()->InOldSpace(double_array_handle->elements())); in TEST()
2876 CcTest::InitializeVM(); in TEST()
2877 if (!CcTest::i_isolate()->use_crankshaft() || i::FLAG_always_opt) return; in TEST()
2879 v8::HandleScope scope(CcTest::isolate()); in TEST()
2882 while (!CcTest::heap()->new_space()->IsAtMaximumCapacity()) { in TEST()
2883 CcTest::heap()->new_space()->Grow(); in TEST()
2908 CHECK(CcTest::heap()->InOldSpace(o->elements())); in TEST()
2909 CHECK(CcTest::heap()->InOldSpace(*o)); in TEST()
2916 CcTest::InitializeVM(); in TEST()
2917 if (!CcTest::i_isolate()->use_crankshaft() || i::FLAG_always_opt) return; in TEST()
2919 v8::HandleScope scope(CcTest::isolate()); in TEST()
2922 while (!CcTest::heap()->new_space()->IsAtMaximumCapacity()) { in TEST()
2923 CcTest::heap()->new_space()->Grow(); in TEST()
2949 CHECK(CcTest::heap()->InOldSpace(*o)); in TEST()
2952 CHECK(CcTest::heap()->InOldSpace(o->RawFastPropertyAt(idx1))); in TEST()
2954 CHECK(CcTest::heap()->InOldSpace(o->RawFastPropertyAt(idx2))); in TEST()
2961 CHECK(CcTest::heap()->InOldSpace(inner_object)); in TEST()
2963 CHECK(CcTest::heap()->InOldSpace(inner_object->RawFastPropertyAt(idx1))); in TEST()
2967 CHECK(CcTest::heap()->InOldSpace(inner_object->RawFastPropertyAt(idx2))); in TEST()
2974 CcTest::InitializeVM(); in TEST()
2975 if (!CcTest::i_isolate()->use_crankshaft() || i::FLAG_always_opt) return; in TEST()
2977 v8::HandleScope scope(CcTest::isolate()); in TEST()
2980 while (!CcTest::heap()->new_space()->IsAtMaximumCapacity()) { in TEST()
2981 CcTest::heap()->new_space()->Grow(); in TEST()
3006 CHECK(CcTest::heap()->InOldSpace(*o)); in TEST()
3007 CHECK(CcTest::heap()->InOldSpace(o->properties())); in TEST()
3014 CcTest::InitializeVM(); in TEST()
3015 if (!CcTest::i_isolate()->use_crankshaft() || i::FLAG_always_opt) return; in TEST()
3017 v8::HandleScope scope(CcTest::isolate()); in TEST()
3020 while (!CcTest::heap()->new_space()->IsAtMaximumCapacity()) { in TEST()
3021 CcTest::heap()->new_space()->Grow(); in TEST()
3046 CHECK(CcTest::heap()->InOldSpace(o->elements())); in TEST()
3047 CHECK(CcTest::heap()->InOldSpace(*o)); in TEST()
3054 CcTest::InitializeVM(); in TEST()
3055 if (!CcTest::i_isolate()->use_crankshaft() || i::FLAG_always_opt) return; in TEST()
3057 v8::HandleScope scope(CcTest::isolate()); in TEST()
3058 v8::Local<v8::Context> ctx = CcTest::isolate()->GetCurrentContext(); in TEST()
3060 while (!CcTest::heap()->new_space()->IsAtMaximumCapacity()) { in TEST()
3061 CcTest::heap()->new_space()->Grow(); in TEST()
3093 CHECK(CcTest::heap()->InOldSpace(*o)); in TEST()
3094 CHECK(CcTest::heap()->InOldSpace(*int_array_handle)); in TEST()
3095 CHECK(CcTest::heap()->InOldSpace(int_array_handle->elements())); in TEST()
3096 CHECK(CcTest::heap()->InOldSpace(*double_array_handle)); in TEST()
3097 CHECK(CcTest::heap()->InOldSpace(double_array_handle->elements())); in TEST()
3104 CcTest::InitializeVM(); in TEST()
3105 if (!CcTest::i_isolate()->use_crankshaft() || i::FLAG_always_opt) return; in TEST()
3107 v8::HandleScope scope(CcTest::isolate()); in TEST()
3108 v8::Local<v8::Context> ctx = CcTest::isolate()->GetCurrentContext(); in TEST()
3110 while (!CcTest::heap()->new_space()->IsAtMaximumCapacity()) { in TEST()
3111 CcTest::heap()->new_space()->Grow(); in TEST()
3144 CHECK(CcTest::heap()->InOldSpace(*o)); in TEST()
3145 CHECK(CcTest::heap()->InOldSpace(*int_array_handle_1)); in TEST()
3146 CHECK(CcTest::heap()->InOldSpace(int_array_handle_1->elements())); in TEST()
3147 CHECK(CcTest::heap()->InOldSpace(*int_array_handle_2)); in TEST()
3148 CHECK(CcTest::heap()->InOldSpace(int_array_handle_2->elements())); in TEST()
3155 CcTest::InitializeVM(); in TEST()
3156 if (!CcTest::i_isolate()->use_crankshaft() || i::FLAG_always_opt) return; in TEST()
3158 v8::HandleScope scope(CcTest::isolate()); in TEST()
3159 v8::Local<v8::Context> ctx = CcTest::isolate()->GetCurrentContext(); in TEST()
3161 while (!CcTest::heap()->new_space()->IsAtMaximumCapacity()) { in TEST()
3162 CcTest::heap()->new_space()->Grow(); in TEST()
3195 CHECK(CcTest::heap()->InOldSpace(*o)); in TEST()
3196 CHECK(CcTest::heap()->InOldSpace(*double_array_handle_1)); in TEST()
3197 CHECK(CcTest::heap()->InOldSpace(double_array_handle_1->elements())); in TEST()
3198 CHECK(CcTest::heap()->InOldSpace(*double_array_handle_2)); in TEST()
3199 CHECK(CcTest::heap()->InOldSpace(double_array_handle_2->elements())); in TEST()
3206 CcTest::InitializeVM(); in TEST()
3207 if (!CcTest::i_isolate()->use_crankshaft() || i::FLAG_always_opt) return; in TEST()
3209 v8::HandleScope scope(CcTest::isolate()); in TEST()
3210 v8::Local<v8::Context> ctx = CcTest::isolate()->GetCurrentContext(); in TEST()
3229 CHECK(CcTest::heap()->InNewSpace(o->elements())); in TEST()
3245 CcTest::InitializeVM(); in TEST()
3246 v8::HandleScope scope(CcTest::isolate()); in TEST()
3247 v8::Local<v8::Context> ctx = CcTest::isolate()->GetCurrentContext(); in TEST()
3252 AlwaysAllocateScope always_allocate(CcTest::i_isolate()); in TEST()
3263 CcTest::global()->Get(ctx, v8_str("root")).ToLocalChecked())); in TEST()
3270 SimulateIncrementalMarking(CcTest::heap()); in TEST()
3271 CcTest::heap()->CollectAllGarbage(); in TEST()
3283 AlwaysAllocateScope always_allocate(CcTest::i_isolate()); in AddTransitions()
3295 CcTest::global() in GetByName()
3296 ->Get(CcTest::isolate()->GetCurrentContext(), v8_str(name)) in GetByName()
3303 Isolate* isolate = CcTest::i_isolate(); in AddPropertyTo()
3310 CcTest::heap()->set_allocation_timeout(gc_count); in AddPropertyTo()
3318 CcTest::InitializeVM(); in TEST()
3319 v8::HandleScope scope(CcTest::isolate()); in TEST()
3335 CcTest::heap()->CollectGarbage(NEW_SPACE); in TEST()
3348 CcTest::InitializeVM(); in TEST()
3349 v8::HandleScope scope(CcTest::isolate()); in TEST()
3362 CcTest::heap()->CollectGarbage(NEW_SPACE); in TEST()
3375 CcTest::InitializeVM(); in TEST()
3376 v8::HandleScope scope(CcTest::isolate()); in TEST()
3389 CcTest::i_isolate()->heap()->CollectGarbage(OLD_SPACE); in TEST()
3402 CcTest::InitializeVM(); in TEST()
3403 v8::HandleScope scope(CcTest::isolate()); in TEST()
3431 CcTest::InitializeVM(); in TEST()
3432 v8::HandleScope scope(CcTest::isolate()); in TEST()
3440 SimulateIncrementalMarking(CcTest::heap()); in TEST()
3452 CcTest::heap()->AgeInlineCaches(); in TEST()
3455 CcTest::heap()->CollectAllGarbage(); in TEST()
3458 CcTest::global() in TEST()
3459 ->Get(CcTest::isolate()->GetCurrentContext(), v8_str("root")) in TEST()
3471 CcTest::InitializeVM(); in TEST()
3472 v8::HandleScope scope(CcTest::isolate()); in TEST()
3480 SimulateIncrementalMarking(CcTest::heap()); in TEST()
3495 CcTest::heap()->AgeInlineCaches(); in TEST()
3498 CcTest::heap()->CollectAllGarbage(); in TEST()
3501 CcTest::global() in TEST()
3502 ->Get(CcTest::isolate()->GetCurrentContext(), v8_str("root")) in TEST()
3517 CcTest::InitializeVM(); in TEST()
3518 Isolate* isolate = CcTest::i_isolate(); in TEST()
3521 v8::HandleScope scope(CcTest::isolate()); in TEST()
3573 CcTest::InitializeVM(); in TEST()
3574 Isolate* isolate = CcTest::i_isolate(); in TEST()
3575 v8::HandleScope scope(CcTest::isolate()); in TEST()
3588 CcTest::InitializeVM(); in TEST()
3589 v8::HandleScope scope(CcTest::isolate()); in TEST()
3590 v8::Local<v8::Context> ctx = CcTest::isolate()->GetCurrentContext(); in TEST()
3596 CcTest::global()->Get(ctx, v8_str("g")).ToLocalChecked()))); in TEST()
3607 CcTest::InitializeVM(); in TEST()
3608 v8::HandleScope scope(CcTest::isolate()); in TEST()
3610 v8::Local<v8::Context> ctx = CcTest::isolate()->GetCurrentContext(); in TEST()
3613 fun1 = CcTest::global()->Get(ctx, v8_str("fun")).ToLocalChecked(); in TEST()
3618 fun2 = CcTest::global()->Get(ctx, v8_str("fun")).ToLocalChecked(); in TEST()
3622 CHECK(CcTest::global()->Set(ctx, v8_str("fun1"), fun1).FromJust()); in TEST()
3623 CHECK(CcTest::global()->Set(ctx, v8_str("fun2"), fun2).FromJust()); in TEST()
3628 CcTest::global()->Get(ctx, v8_str("f")).ToLocalChecked()))); in TEST()
3640 SimulateIncrementalMarking(CcTest::heap()); in TEST()
3641 CcTest::heap()->CollectAllGarbage(); in TEST()
3692 CcTest::InitializeVM(); in TEST()
3693 v8::HandleScope scope(CcTest::isolate()); in TEST()
3694 v8::Local<v8::Context> ctx = CcTest::isolate()->GetCurrentContext(); in TEST()
3702 CcTest::global()->Get(ctx, v8_str("f")).ToLocalChecked()))); in TEST()
3707 SimulateIncrementalMarking(CcTest::heap()); in TEST()
3708 CcTest::heap()->CollectAllGarbage(); in TEST()
3716 CcTest::InitializeVM(); in TEST()
3717 Isolate* isolate = CcTest::i_isolate(); in TEST()
3718 v8::HandleScope scope(CcTest::isolate()); in TEST()
3720 v8::Local<v8::Context> ctx = CcTest::isolate()->GetCurrentContext(); in TEST()
3730 CHECK(CcTest::global()->Set(ctx, v8_str("fun1"), fun1).FromJust()); in TEST()
3736 CcTest::global()->Get(ctx, v8_str("f")).ToLocalChecked()))); in TEST()
3743 CcTest::isolate()->ContextDisposedNotification(); in TEST()
3744 SimulateIncrementalMarking(CcTest::heap()); in TEST()
3745 CcTest::heap()->CollectAllGarbage(); in TEST()
3754 CcTest::InitializeVM(); in TEST()
3755 v8::HandleScope scope(CcTest::isolate()); in TEST()
3756 v8::Local<v8::Context> ctx = CcTest::isolate()->GetCurrentContext(); in TEST()
3763 CcTest::global()->Get(ctx, v8_str("f")).ToLocalChecked()))); in TEST()
3767 SimulateIncrementalMarking(CcTest::heap()); in TEST()
3768 CcTest::heap()->CollectAllGarbage(); in TEST()
3776 CcTest::InitializeVM(); in TEST()
3777 v8::HandleScope scope(CcTest::isolate()); in TEST()
3779 v8::Local<v8::Context> ctx = CcTest::isolate()->GetCurrentContext(); in TEST()
3789 CHECK(CcTest::global()->Set(ctx, v8_str("obj1"), obj1).FromJust()); in TEST()
3793 CcTest::global()->Get(ctx, v8_str("f")).ToLocalChecked()))); in TEST()
3798 CcTest::isolate()->ContextDisposedNotification(); in TEST()
3799 SimulateIncrementalMarking(CcTest::heap()); in TEST()
3800 CcTest::heap()->CollectAllGarbage(); in TEST()
3808 CcTest::InitializeVM(); in TEST()
3809 v8::HandleScope scope(CcTest::isolate()); in TEST()
3811 v8::Local<v8::Context> ctx = CcTest::isolate()->GetCurrentContext(); in TEST()
3827 CHECK(CcTest::global()->Set(ctx, v8_str("obj1"), obj1).FromJust()); in TEST()
3828 CHECK(CcTest::global()->Set(ctx, v8_str("obj2"), obj2).FromJust()); in TEST()
3832 CcTest::global()->Get(ctx, v8_str("f")).ToLocalChecked()))); in TEST()
3837 SimulateIncrementalMarking(CcTest::heap()); in TEST()
3838 CcTest::heap()->CollectAllGarbage(); in TEST()
3846 CcTest::InitializeVM(); in TEST()
3847 v8::HandleScope scope(CcTest::isolate()); in TEST()
3849 v8::Local<v8::Context> ctx = CcTest::isolate()->GetCurrentContext(); in TEST()
3865 CHECK(CcTest::global()->Set(ctx, v8_str("obj1"), obj1).FromJust()); in TEST()
3866 CHECK(CcTest::global()->Set(ctx, v8_str("obj2"), obj2).FromJust()); in TEST()
3870 CcTest::global()->Get(ctx, v8_str("f")).ToLocalChecked()))); in TEST()
3875 CcTest::isolate()->ContextDisposedNotification(); in TEST()
3876 SimulateIncrementalMarking(CcTest::heap()); in TEST()
3877 CcTest::heap()->CollectAllGarbage(); in TEST()
3947 create_params.array_buffer_allocator = CcTest::array_buffer_allocator(); in UNINITIALIZED_TEST()
3999 CcTest::InitializeVM(); in TEST()
4000 Isolate* isolate = CcTest::i_isolate(); in TEST()
4029 CcTest::global()->Get(env.local(), v8_str("f")).ToLocalChecked()))); in TEST()
4035 CcTest::global()->Get(env.local(), v8_str("g")).ToLocalChecked()))); in TEST()
4059 CcTest::InitializeVM(); in TEST()
4060 Isolate* isolate = CcTest::i_isolate(); in TEST()
4082 CcTest::global()->Get(env.local(), v8_str("f")).ToLocalChecked()))); in TEST()
4107 CcTest::InitializeVM(); in TEST()
4108 Isolate* isolate = CcTest::i_isolate(); in TEST()
4129 CcTest::global()->Get(env.local(), v8_str("f")).ToLocalChecked()))); in TEST()
4149 *v8::Local<v8::Function>::Cast(CcTest::global() in TEST()
4181 CcTest::InitializeVM(); in TEST()
4182 Isolate* isolate = CcTest::i_isolate(); in TEST()
4185 v8::HandleScope scope(CcTest::isolate()); in TEST()
4209 CHECK(CcTest::global() in TEST()
4210 ->Set(env.local(), array_name, v8::Int32::New(CcTest::isolate(), 0)) in TEST()
4214 CcTest::heap()->CollectGarbage(NEW_SPACE); in TEST()
4221 AllocateAllButNBytes(CcTest::heap()->new_space(), in TEST()
4235 CcTest::heap()->new_space()->AllocateRawUnaligned( in TEST()
4239 CcTest::heap()->CreateFillerObjectAt( in TEST()
4244 CHECK(CcTest::global()->Set(env.local(), array_name, array_obj).FromJust()); in TEST()
4261 CcTest::InitializeVM(); in TEST()
4262 Isolate* isolate = CcTest::i_isolate(); in TEST()
4276 CcTest::global()->Get(env.local(), v8_str("f")).ToLocalChecked()))); in TEST()
4290 CcTest::global()->Get(env.local(), v8_str("g")).ToLocalChecked()))); in TEST()
4315 CcTest::InitializeVM(); in TEST()
4316 Isolate* isolate = CcTest::i_isolate(); in TEST()
4322 CcTest::heap()->CollectAllGarbage(); in TEST()
4333 CcTest::global()->Get(env.local(), v8_str("f")).ToLocalChecked()))); in TEST()
4347 CcTest::global()->Get(env.local(), v8_str("g")).ToLocalChecked()))); in TEST()
4411 CcTest::InitializeVM(); in TEST()
4412 v8::Isolate* v8_isolate = CcTest::isolate(); in TEST()
4413 Isolate* isolate = CcTest::i_isolate(); in TEST()
4439 CcTest::global()->Get(c1, v8_str("foo")).ToLocalChecked()))); in TEST()
4517 CcTest::InitializeVM(); in TEST()
4518 Isolate* isolate = CcTest::i_isolate(); in TEST()
4523 CcTest::heap()->CollectAllGarbage(); in TEST()
4542 *v8::Local<v8::Function>::Cast(CcTest::global() in TEST()
4552 *v8::Local<v8::Function>::Cast(CcTest::global() in TEST()
4577 CcTest::InitializeVM(); in TEST()
4578 Isolate* isolate = CcTest::i_isolate(); in TEST()
4609 CcTest::heap()->CollectAllGarbage(); in TEST()
4626 CcTest::InitializeVM(); in TEST()
4627 Isolate* isolate = CcTest::i_isolate(); in TEST()
4647 CcTest::InitializeVM(); in TEST()
4648 v8::HandleScope scope(CcTest::isolate()); in TEST()
4654 IncrementalMarking* marking = CcTest::heap()->incremental_marking(); in TEST()
4656 CcTest::heap()->StartIncrementalMarking(); in TEST()
4667 CcTest::InitializeVM(); in TEST()
4668 v8::HandleScope scope(CcTest::isolate()); in TEST()
4685 CcTest::heap()->DisableInlineAllocation(); in TEST()
4689 CcTest::heap()->EnableInlineAllocation(); in TEST()
4708 CcTest::InitializeVM(); in TEST()
4709 Isolate* isolate = CcTest::i_isolate(); in TEST()
4710 v8::internal::Heap* heap = CcTest::heap(); in TEST()
4744 CcTest::global() in TEST()
4767 CcTest::InitializeVM(); in TEST()
4768 Isolate* isolate = CcTest::i_isolate(); in TEST()
4769 v8::internal::Heap* heap = CcTest::heap(); in TEST()
4793 *v8::Local<v8::Function>::Cast(CcTest::global() in TEST()
4812 CcTest::InitializeVM(); in TEST()
4813 Isolate* isolate = CcTest::i_isolate(); in TEST()
4814 v8::internal::Heap* heap = CcTest::heap(); in TEST()
4836 *v8::Local<v8::Function>::Cast(CcTest::global() in TEST()
4858 CcTest::InitializeVM(); in TEST()
4859 Isolate* isolate = CcTest::i_isolate(); in TEST()
4864 v8::internal::Heap* heap = CcTest::heap(); in TEST()
4913 CcTest::global() in OptimizeDummyFunction()
4933 CcTest::InitializeVM(); in TEST()
4934 Isolate* isolate = CcTest::i_isolate(); in TEST()
4935 v8::internal::Heap* heap = CcTest::heap(); in TEST()
4945 OptimizeDummyFunction(CcTest::isolate(), "mortal"); in TEST()
4947 OptimizeDummyFunction(CcTest::isolate(), "immortal"); in TEST()
4979 CcTest::InitializeVM(); in TEST()
4980 Isolate* isolate = CcTest::i_isolate(); in TEST()
4981 v8::internal::Heap* heap = CcTest::heap(); in TEST()
5017 CcTest::InitializeVM(); in TEST()
5018 v8::Isolate* isolate = CcTest::isolate(); in TEST()
5027 CcTest::global() in TEST()
5048 Heap* heap = CcTest::i_isolate()->heap(); in TEST()
5056 createObj->shared()->feedback_vector(), CcTest::i_isolate()); in TEST()
5077 CcTest::InitializeVM(); in CheckWeakness()
5078 v8::Isolate* isolate = CcTest::isolate(); in CheckWeakness()
5091 Heap* heap = CcTest::i_isolate()->heap(); in CheckWeakness()
5284 CcTest::InitializeVM(); in TEST()
5285 Isolate* isolate = CcTest::i_isolate(); in TEST()
5287 v8::HandleScope scope(CcTest::isolate()); in TEST()
5302 v8::HandleScope scope(CcTest::isolate()); in TEST()
5308 v8::HandleScope scope(CcTest::isolate()); in TEST()
5317 CcTest::InitializeVM(); in TEST()
5318 Isolate* isolate = CcTest::i_isolate(); in TEST()
5320 v8::HandleScope scope(CcTest::isolate()); in TEST()
5338 v8::HandleScope scope(CcTest::isolate()); in TEST()
5344 v8::HandleScope scope(CcTest::isolate()); in TEST()
5352 CcTest::InitializeVM(); in TEST()
5353 Isolate* isolate = CcTest::i_isolate(); in TEST()
5354 v8::internal::Heap* heap = CcTest::heap(); in TEST()
5386 CcTest::InitializeVM(); in TEST()
5387 Isolate* isolate = CcTest::i_isolate(); in TEST()
5388 v8::internal::Heap* heap = CcTest::heap(); in TEST()
5425 CcTest::InitializeVM(); in TEST()
5427 v8::HandleScope scope(CcTest::isolate()); in TEST()
5428 Isolate* isolate = CcTest::i_isolate(); in TEST()
5451 v8::Local<v8::Object> global = CcTest::global(); in TEST()
5470 CcTest::InitializeVM(); in TEST()
5471 v8::HandleScope scope(CcTest::isolate()); in TEST()
5472 CcTest::isolate()->SetFatalErrorHandler(OnFatalErrorExpectOOM); in TEST()
5490 CcTest::isolate()->RequestInterrupt(&InterruptCallback357137, NULL); in RequestInterrupt()
5500 create_params.array_buffer_allocator = CcTest::array_buffer_allocator(); in UNINITIALIZED_TEST()
5527 CcTest::InitializeVM(); in TEST()
5528 v8::Isolate* isolate = CcTest::isolate(); in TEST()
5551 CcTest::InitializeVM(); in TEST()
5552 Isolate* isolate = CcTest::i_isolate(); in TEST()
5576 CcTest::InitializeVM(); in TEST()
5577 v8::HandleScope scope(CcTest::isolate()); in TEST()
5578 Isolate* isolate = CcTest::i_isolate(); in TEST()
5606 create_params.array_buffer_allocator = CcTest::array_buffer_allocator(); in UNINITIALIZED_TEST()
5677 CcTest::InitializeVM(); in TEST()
5678 v8::HandleScope scope(CcTest::isolate()); in TEST()
5679 Isolate* isolate = CcTest::i_isolate(); in TEST()
5708 IncrementalMarking* marking = CcTest::heap()->incremental_marking(); in TEST()
5710 CcTest::heap()->StartIncrementalMarking(); in TEST()
5721 CcTest::InitializeVM(); in TEST()
5722 v8::HandleScope scope(CcTest::isolate()); in TEST()
5723 Isolate* isolate = CcTest::i_isolate(); in TEST()
5725 IncrementalMarking* marking = CcTest::heap()->incremental_marking(); in TEST()
5736 CcTest::heap()->StartIncrementalMarking(); in TEST()
5760 CcTest::InitializeVM(); in TEST()
5761 Isolate* isolate = CcTest::i_isolate(); in TEST()
5767 CcTest::i_isolate()->context()->global_object()); in TEST()
5779 CcTest::InitializeVM(); in HEAP_TEST()
5780 Isolate* isolate = CcTest::i_isolate(); in HEAP_TEST()
5789 CcTest::InitializeVM(); in TEST()
5790 Isolate* isolate = CcTest::i_isolate(); in TEST()
5837 Isolate* isolate = CcTest::i_isolate(); in CheckMapRetainingFor()
5853 CcTest::InitializeVM(); in TEST()
5854 v8::HandleScope scope(CcTest::isolate()); in TEST()
5866 CcTest::InitializeVM(); in TEST()
5867 v8::HandleScope scope(CcTest::isolate()); in TEST()
5868 Isolate* isolate = CcTest::i_isolate(); in TEST()
5875 SimulateFullSpace(CcTest::heap()->new_space()); in TEST()
5885 CcTest::InitializeVM(); in TEST()
5886 v8::HandleScope scope(CcTest::isolate()); in TEST()
5890 CcTest::i_isolate()->heap()->TracePathToObject(*o); in TEST()
5909 v8::HandleScope scope(CcTest::isolate()); in TestRightTrimFixedTypedArray()
5910 Isolate* isolate = CcTest::i_isolate(); in TestRightTrimFixedTypedArray()
5935 CcTest::InitializeVM(); in TEST()
5936 v8::HandleScope scope(CcTest::isolate()); in TEST()
5959 CcTest::InitializeVM(); in TEST()
5960 v8::HandleScope scope(CcTest::isolate()); in TEST()
5962 Handle<HeapNumber> number = CcTest::i_isolate()->factory()->NewHeapNumber(1); in TEST()
5973 CcTest::InitializeVM(); in TEST()
5974 v8::HandleScope scope(CcTest::isolate()); in TEST()
5975 v8::TryCatch try_catch(CcTest::isolate()); in TEST()
5978 Isolate* isolate = CcTest::i_isolate(); in TEST()
6016 CcTest::InitializeVM(); in TEST()
6017 v8::Isolate* isolate = CcTest::isolate(); in TEST()
6020 if (Snapshot::HaveASnapshotToStartFrom(CcTest::i_isolate())) return; in TEST()
6029 utils.Reset(isolate, CcTest::global() in TEST()
6034 CHECK(CcTest::global()->Delete(env.local(), name).FromJust()); in TEST()
6040 CcTest::heap()->CollectAllAvailableGarbage("fire weak callbacks"); in TEST()
6048 CcTest::InitializeVM(); in TEST()
6049 v8::Isolate* isolate = CcTest::isolate(); in TEST()
6052 CcTest::i_isolate()->internal_array_function()); in TEST()
6054 CHECK(CcTest::global() in TEST()
6093 CcTest::InitializeVM(); in TEST()
6094 v8::HandleScope scope(CcTest::isolate()); in TEST()
6095 Isolate* isolate = CcTest::i_isolate(); in TEST()
6120 CcTest::InitializeVM(); in TEST()
6121 v8::HandleScope scope(CcTest::isolate()); in TEST()
6122 Isolate* isolate = CcTest::i_isolate(); in TEST()
6153 CcTest::InitializeVM(); in TEST()
6154 v8::HandleScope scope(CcTest::isolate()); in TEST()
6155 Isolate* isolate = CcTest::i_isolate(); in TEST()
6176 CcTest::InitializeVM(); in TEST()
6177 v8::HandleScope scope(CcTest::isolate()); in TEST()
6178 Isolate* isolate = CcTest::i_isolate(); in TEST()
6199 Isolate* isolate = CcTest::i_isolate(); in CheckLeak()
6207 CcTest::InitializeVM(); in TEST()
6208 v8::Isolate* isolate = CcTest::isolate(); in TEST()
6252 Isolate* isolate = CcTest::i_isolate(); in RemoveCodeAndGC()
6262 CcTest::InitializeVM(); in TEST()
6263 v8::Isolate* isolate = CcTest::isolate(); in TEST()
6289 CcTest::InitializeVM(); in TEST()
6290 v8::HandleScope scope(CcTest::isolate()); in TEST()
6291 Isolate* isolate = CcTest::i_isolate(); in TEST()
6313 CcTest::InitializeVM(); in TEST()
6314 v8::HandleScope scope(CcTest::isolate()); in TEST()
6315 Isolate* isolate = CcTest::i_isolate(); in TEST()
6335 CcTest::InitializeVM(); in TEST()
6336 v8::HandleScope scope(CcTest::isolate()); in TEST()
6337 Isolate* isolate = CcTest::i_isolate(); in TEST()
6342 HeapIterator it(CcTest::heap()); in TEST()
6362 CcTest::InitializeVM(); in TEST()
6363 v8::HandleScope scope(CcTest::isolate()); in TEST()
6364 Isolate* isolate = CcTest::i_isolate(); in TEST()
6365 Heap* heap = CcTest::heap(); in TEST()
6388 CcTest::InitializeVM(); in TEST()
6389 v8::HandleScope scope(CcTest::isolate()); in TEST()
6390 Isolate* isolate = CcTest::i_isolate(); in TEST()
6391 Heap* heap = CcTest::heap(); in TEST()
6422 CcTest::InitializeVM(); in TEST()
6423 v8::Isolate* isolate = CcTest::isolate(); in TEST()
6425 Heap* heap = CcTest::heap(); in TEST()
6450 CcTest::InitializeVM(); in HEAP_TEST()
6451 v8::HandleScope scope(CcTest::isolate()); in HEAP_TEST()
6452 Heap* heap = CcTest::heap(); in HEAP_TEST()
6453 Isolate* isolate = CcTest::i_isolate(); in HEAP_TEST()