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

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

Issue 1110513002: Reland "Lazily register prototype users..." (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: assert trumps comment Created 5 years, 8 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 | « src/objects.cc ('k') | test/mjsunit/prototype-changes.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/test-heap.cc
diff --git a/test/cctest/test-heap.cc b/test/cctest/test-heap.cc
index 21fa4cecd432c0177d804f47d77a431feb0afde2..b8d7676a1bae20fde605ba8fa8f643831bd25ae3 100644
--- a/test/cctest/test-heap.cc
+++ b/test/cctest/test-heap.cc
@@ -5367,3 +5367,15 @@ TEST(Regress472513) {
TestRightTrimFixedTypedArray(i::kExternalUint16Array, 8 - 1, 3);
TestRightTrimFixedTypedArray(i::kExternalUint32Array, 4, 3);
}
+
+
+TEST(WeakFixedArray) {
+ CcTest::InitializeVM();
+ v8::HandleScope scope(CcTest::isolate());
+
+ Handle<HeapNumber> number = CcTest::i_isolate()->factory()->NewHeapNumber(1);
+ Handle<WeakFixedArray> array = WeakFixedArray::Add(Handle<Object>(), number);
+ array->Remove(number);
+ array->Compact();
+ WeakFixedArray::Add(array, number);
+}
« no previous file with comments | « src/objects.cc ('k') | test/mjsunit/prototype-changes.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698