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

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, 10 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/heap.cc ('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 20553 matching lines...) Expand 10 before | Expand all | Expand 10 after
20564 "'a00': 0, 'a01': 0, 'a02': 0, 'a03': 0, 'a04': 0, " 20564 "'a00': 0, 'a01': 0, 'a02': 0, 'a03': 0, 'a04': 0, "
20565 "'a05': 0, 'a06': 0, 'a07': 0, 'a08': 0, 'a09': 0, " 20565 "'a05': 0, 'a06': 0, 'a07': 0, 'a08': 0, 'a09': 0, "
20566 "'a10': 0, 'a11': 0, 'a12': 0, 'a13': 0, 'a14': 0, " 20566 "'a10': 0, 'a11': 0, 'a12': 0, 'a13': 0, 'a14': 0, "
20567 "'a15': 0, 'a16': 0, 'a17': 0, 'a18': 0, 'a19': 0, " 20567 "'a15': 0, 'a16': 0, 'a17': 0, 'a18': 0, 'a19': 0, "
20568 "})"); 20568 "})");
20569 } 20569 }
20570 20570
20571 int elements = CountLiveMapsInMapCache(CcTest::i_isolate()->context()); 20571 int elements = CountLiveMapsInMapCache(CcTest::i_isolate()->context());
20572 CHECK_LE(1, elements); 20572 CHECK_LE(1, elements);
20573 20573
20574 CcTest::heap()->CollectAllGarbage(); 20574 // We have to abort incremental marking here to abandon black pages.
20575 CcTest::heap()->CollectAllGarbage(i::Heap::kAbortIncrementalMarkingMask);
20575 20576
20576 CHECK_GT(elements, CountLiveMapsInMapCache(CcTest::i_isolate()->context())); 20577 CHECK_GT(elements, CountLiveMapsInMapCache(CcTest::i_isolate()->context()));
20577 } 20578 }
20578 20579
20579 20580
20580 THREADED_TEST(Regress93759) { 20581 THREADED_TEST(Regress93759) {
20581 v8::Isolate* isolate = CcTest::isolate(); 20582 v8::Isolate* isolate = CcTest::isolate();
20582 HandleScope scope(isolate); 20583 HandleScope scope(isolate);
20583 20584
20584 // Template for object with security check. 20585 // Template for object with security check.
(...skipping 4350 matching lines...) Expand 10 before | Expand all | Expand 10 after
24935 CHECK(proxy->GetTarget()->SameValue(target)); 24936 CHECK(proxy->GetTarget()->SameValue(target));
24936 CHECK(proxy->GetHandler()->SameValue(handler)); 24937 CHECK(proxy->GetHandler()->SameValue(handler));
24937 24938
24938 proxy->Revoke(); 24939 proxy->Revoke();
24939 CHECK(proxy->IsProxy()); 24940 CHECK(proxy->IsProxy());
24940 CHECK(!target->IsProxy()); 24941 CHECK(!target->IsProxy());
24941 CHECK(proxy->IsRevoked()); 24942 CHECK(proxy->IsRevoked());
24942 CHECK(proxy->GetTarget()->SameValue(target)); 24943 CHECK(proxy->GetTarget()->SameValue(target));
24943 CHECK(proxy->GetHandler()->IsNull()); 24944 CHECK(proxy->GetHandler()->IsNull());
24944 } 24945 }
OLDNEW
« src/heap/heap.cc ('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