summaryrefslogtreecommitdiff
path: root/deps/v8/test/cctest/test-array-list.cc
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/test/cctest/test-array-list.cc')
-rw-r--r--deps/v8/test/cctest/test-array-list.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/deps/v8/test/cctest/test-array-list.cc b/deps/v8/test/cctest/test-array-list.cc
index 6b02b179f8..a8f2913de5 100644
--- a/deps/v8/test/cctest/test-array-list.cc
+++ b/deps/v8/test/cctest/test-array-list.cc
@@ -16,12 +16,12 @@ TEST(ArrayList) {
Isolate* isolate = CcTest::i_isolate();
HandleScope scope(isolate);
Handle<ArrayList> array(
- ArrayList::cast(isolate->heap()->empty_fixed_array()));
+ ArrayList::cast(ReadOnlyRoots(isolate).empty_fixed_array()), isolate);
CHECK_EQ(0, array->Length());
- array = ArrayList::Add(array, handle(Smi::FromInt(100), isolate));
+ array = ArrayList::Add(isolate, array, handle(Smi::FromInt(100), isolate));
CHECK_EQ(1, array->Length());
CHECK_EQ(100, Smi::ToInt(array->Get(0)));
- array = ArrayList::Add(array, handle(Smi::FromInt(200), isolate),
+ array = ArrayList::Add(isolate, array, handle(Smi::FromInt(200), isolate),
handle(Smi::FromInt(300), isolate));
CHECK_EQ(3, array->Length());
CHECK_EQ(100, Smi::ToInt(array->Get(0)));
@@ -29,7 +29,7 @@ TEST(ArrayList) {
CHECK_EQ(300, Smi::ToInt(array->Get(2)));
array->Set(2, Smi::FromInt(400));
CHECK_EQ(400, Smi::ToInt(array->Get(2)));
- array->Clear(2, isolate->heap()->undefined_value());
+ array->Clear(2, ReadOnlyRoots(isolate).undefined_value());
array->SetLength(2);
CHECK_EQ(2, array->Length());
CHECK_EQ(100, Smi::ToInt(array->Get(0)));