Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(80)

Side by Side Diff: test/cctest/test-api.cc

Issue 1420423009: [heap] Black allocation. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« src/heap/mark-compact-inl.h ('K') | « test/cctest/heap/test-heap.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 20531 matching lines...) Expand 10 before | Expand all | Expand 10 after
20542 "'a00': 0, 'a01': 0, 'a02': 0, 'a03': 0, 'a04': 0, " 20542 "'a00': 0, 'a01': 0, 'a02': 0, 'a03': 0, 'a04': 0, "
20543 "'a05': 0, 'a06': 0, 'a07': 0, 'a08': 0, 'a09': 0, " 20543 "'a05': 0, 'a06': 0, 'a07': 0, 'a08': 0, 'a09': 0, "
20544 "'a10': 0, 'a11': 0, 'a12': 0, 'a13': 0, 'a14': 0, " 20544 "'a10': 0, 'a11': 0, 'a12': 0, 'a13': 0, 'a14': 0, "
20545 "'a15': 0, 'a16': 0, 'a17': 0, 'a18': 0, 'a19': 0, " 20545 "'a15': 0, 'a16': 0, 'a17': 0, 'a18': 0, 'a19': 0, "
20546 "})"); 20546 "})");
20547 } 20547 }
20548 20548
20549 int elements = CountLiveMapsInMapCache(CcTest::i_isolate()->context()); 20549 int elements = CountLiveMapsInMapCache(CcTest::i_isolate()->context());
20550 CHECK_LE(1, elements); 20550 CHECK_LE(1, elements);
20551 20551
20552 CcTest::heap()->CollectAllGarbage(); 20552 // We have to abort incremental marking here to abandon black pages.
20553 CcTest::heap()->CollectAllGarbage(i::Heap::kAbortIncrementalMarkingMask);
20553 20554
20554 CHECK_GT(elements, CountLiveMapsInMapCache(CcTest::i_isolate()->context())); 20555 CHECK_GT(elements, CountLiveMapsInMapCache(CcTest::i_isolate()->context()));
20555 } 20556 }
20556 20557
20557 20558
20558 THREADED_TEST(Regress93759) { 20559 THREADED_TEST(Regress93759) {
20559 v8::Isolate* isolate = CcTest::isolate(); 20560 v8::Isolate* isolate = CcTest::isolate();
20560 HandleScope scope(isolate); 20561 HandleScope scope(isolate);
20561 20562
20562 // Template for object with security check. 20563 // Template for object with security check.
(...skipping 4290 matching lines...) Expand 10 before | Expand all | Expand 10 after
24853 CHECK(proxy->GetTarget()->SameValue(target)); 24854 CHECK(proxy->GetTarget()->SameValue(target));
24854 CHECK(proxy->GetHandler()->SameValue(handler)); 24855 CHECK(proxy->GetHandler()->SameValue(handler));
24855 24856
24856 proxy->Revoke(); 24857 proxy->Revoke();
24857 CHECK(proxy->IsProxy()); 24858 CHECK(proxy->IsProxy());
24858 CHECK(!target->IsProxy()); 24859 CHECK(!target->IsProxy());
24859 CHECK(proxy->IsRevoked()); 24860 CHECK(proxy->IsRevoked());
24860 CHECK(proxy->GetTarget()->SameValue(target)); 24861 CHECK(proxy->GetTarget()->SameValue(target));
24861 CHECK(proxy->GetHandler()->IsNull()); 24862 CHECK(proxy->GetHandler()->IsNull());
24862 } 24863 }
OLDNEW
« src/heap/mark-compact-inl.h ('K') | « test/cctest/heap/test-heap.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698