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

Unified Diff: test/cctest/test-feedback-vector.cc

Issue 2642933003: Revert of Revert [TypeFeedbackVector] Root literal arrays in function literal slots (Closed)
Patch Set: Created 3 years, 11 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-heap.cc ('k') | test/mjsunit/strong-rooted-literals.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/test-feedback-vector.cc
diff --git a/test/cctest/test-feedback-vector.cc b/test/cctest/test-feedback-vector.cc
index 8ff4997c0115a87aaf3291c5e5dd2fa42c0c5bb8..9a3e2563bccd6fae63e0d6975bd9a97b283647c7 100644
--- a/test/cctest/test-feedback-vector.cc
+++ b/test/cctest/test-feedback-vector.cc
@@ -107,7 +107,9 @@
FeedbackVectorSlotKind::CREATE_CLOSURE));
FeedbackVectorSlot slot = helper.slot(1);
FixedArray* array = FixedArray::cast(vector->Get(slot));
- CHECK_EQ(array, *factory->empty_literals_array());
+ CHECK_EQ(5, array->length());
+ CHECK_EQ(5, vector->GetParameter(slot));
+ CHECK_EQ(array->get(0), *factory->undefined_value());
}
}
« no previous file with comments | « test/cctest/heap/test-heap.cc ('k') | test/mjsunit/strong-rooted-literals.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698