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

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
« no previous file with comments | « 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 20529 matching lines...) Expand 10 before | Expand all | Expand 10 after
20540 "'a00': 0, 'a01': 0, 'a02': 0, 'a03': 0, 'a04': 0, " 20540 "'a00': 0, 'a01': 0, 'a02': 0, 'a03': 0, 'a04': 0, "
20541 "'a05': 0, 'a06': 0, 'a07': 0, 'a08': 0, 'a09': 0, " 20541 "'a05': 0, 'a06': 0, 'a07': 0, 'a08': 0, 'a09': 0, "
20542 "'a10': 0, 'a11': 0, 'a12': 0, 'a13': 0, 'a14': 0, " 20542 "'a10': 0, 'a11': 0, 'a12': 0, 'a13': 0, 'a14': 0, "
20543 "'a15': 0, 'a16': 0, 'a17': 0, 'a18': 0, 'a19': 0, " 20543 "'a15': 0, 'a16': 0, 'a17': 0, 'a18': 0, 'a19': 0, "
20544 "})"); 20544 "})");
20545 } 20545 }
20546 20546
20547 int elements = CountLiveMapsInMapCache(CcTest::i_isolate()->context()); 20547 int elements = CountLiveMapsInMapCache(CcTest::i_isolate()->context());
20548 CHECK_LE(1, elements); 20548 CHECK_LE(1, elements);
20549 20549
20550 CcTest::heap()->CollectAllGarbage(); 20550 // We have to abort incremental marking here to abandon black pages.
20551 CcTest::heap()->CollectAllGarbage(i::Heap::kAbortIncrementalMarkingMask);
20551 20552
20552 CHECK_GT(elements, CountLiveMapsInMapCache(CcTest::i_isolate()->context())); 20553 CHECK_GT(elements, CountLiveMapsInMapCache(CcTest::i_isolate()->context()));
20553 } 20554 }
20554 20555
20555 20556
20556 THREADED_TEST(Regress93759) { 20557 THREADED_TEST(Regress93759) {
20557 v8::Isolate* isolate = CcTest::isolate(); 20558 v8::Isolate* isolate = CcTest::isolate();
20558 HandleScope scope(isolate); 20559 HandleScope scope(isolate);
20559 20560
20560 // Template for object with security check. 20561 // Template for object with security check.
(...skipping 4289 matching lines...) Expand 10 before | Expand all | Expand 10 after
24850 CHECK(proxy->GetTarget()->SameValue(target)); 24851 CHECK(proxy->GetTarget()->SameValue(target));
24851 CHECK(proxy->GetHandler()->SameValue(handler)); 24852 CHECK(proxy->GetHandler()->SameValue(handler));
24852 24853
24853 proxy->Revoke(); 24854 proxy->Revoke();
24854 CHECK(proxy->IsProxy()); 24855 CHECK(proxy->IsProxy());
24855 CHECK(!target->IsProxy()); 24856 CHECK(!target->IsProxy());
24856 CHECK(proxy->IsRevoked()); 24857 CHECK(proxy->IsRevoked());
24857 CHECK(proxy->GetTarget()->SameValue(target)); 24858 CHECK(proxy->GetTarget()->SameValue(target));
24858 CHECK(proxy->GetHandler()->IsNull()); 24859 CHECK(proxy->GetHandler()->IsNull());
24859 } 24860 }
OLDNEW
« no previous file with comments | « test/cctest/heap/test-heap.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698