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

Unified Diff: test/cctest/heap/test-spaces.cc

Issue 2381493004: [heap] Set progress bar flag for FixedArray upon allocation (Closed)
Patch Set: Addressed comment Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/cctest/heap/test-lab.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/heap/test-spaces.cc
diff --git a/test/cctest/heap/test-spaces.cc b/test/cctest/heap/test-spaces.cc
index cefdea76b35ae91ec3a2829477781774a00abcda..fb05c98400dd16a2f28e60bcc52d2250ae0f20df 100644
--- a/test/cctest/heap/test-spaces.cc
+++ b/test/cctest/heap/test-spaces.cc
@@ -368,9 +368,9 @@ TEST(NewSpace) {
CHECK(new_space.HasBeenSetUp());
while (new_space.Available() >= kMaxRegularHeapObjectSize) {
- Object* obj = new_space.AllocateRawUnaligned(kMaxRegularHeapObjectSize)
- .ToObjectChecked();
- CHECK(new_space.Contains(HeapObject::cast(obj)));
+ CHECK(new_space.Contains(
+ new_space.AllocateRawUnaligned(kMaxRegularHeapObjectSize)
+ .ToObjectChecked()));
}
new_space.TearDown();
« no previous file with comments | « test/cctest/heap/test-lab.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698