Index: test/cctest/test-declarative-accessors.cc |
diff --git a/test/cctest/test-declarative-accessors.cc b/test/cctest/test-declarative-accessors.cc |
index af3ffc3e07e102fdeb5e432bdecc5d033c04caff..aefd59d2aadfe3887ec61c4dcf23e21365dc8323 100644 |
--- a/test/cctest/test-declarative-accessors.cc |
+++ b/test/cctest/test-declarative-accessors.cc |
@@ -177,7 +177,7 @@ static void TestPrimitiveValue( |
v8::Handle<v8::Value> expected = Convert(value, helper->isolate_); |
helper->array_->Reset(); |
helper->array_->As<T*>()[index] = value; |
- VerifyRead(descriptor, internal_field, *helper->array_, expected); |
+ VerifyRead(descriptor, internal_field, helper->array_.get(), expected); |
} |
@@ -223,7 +223,7 @@ static void TestBitmaskCompare(T bitmask, |
CHECK(false); |
break; |
} |
- AlignedArray* array = *helper->array_; |
+ AlignedArray* array = helper->array_.get(); |
array->Reset(); |
VerifyRead(descriptor, internal_field, array, v8::False(helper->isolate_)); |
array->As<T*>()[index] = compare_value; |
@@ -251,7 +251,7 @@ TEST(PointerCompareRead) { |
OOD::NewInternalFieldDereference(helper.isolate_, internal_field) |
->NewRawShift(helper.isolate_, static_cast<uint16_t>(index*sizeof(ptr))) |
->NewPointerCompare(helper.isolate_, ptr); |
- AlignedArray* array = *helper.array_; |
+ AlignedArray* array = helper.array_.get(); |
VerifyRead(descriptor, internal_field, array, v8::False(helper.isolate_)); |
array->As<uintptr_t*>()[index] = reinterpret_cast<uintptr_t>(ptr); |
VerifyRead(descriptor, internal_field, array, v8::True(helper.isolate_)); |
@@ -273,7 +273,7 @@ TEST(PointerDereferenceRead) { |
->NewRawShift(helper.isolate_, |
static_cast<uint16_t>(second_index*sizeof(int16_t))) |
->NewPrimitiveValue(helper.isolate_, v8::kDescriptorInt16Type, 0); |
- AlignedArray* array = *helper.array_; |
+ AlignedArray* array = helper.array_.get(); |
array->As<uintptr_t**>()[first_index] = |
&array->As<uintptr_t*>()[pointed_to_index]; |
VerifyRead(descriptor, internal_field, array, v8::Integer::New(0)); |
@@ -292,7 +292,7 @@ TEST(HandleDereferenceRead) { |
OOD::NewInternalFieldDereference(helper.isolate_, internal_field) |
->NewRawShift(helper.isolate_, index*kPointerSize) |
->NewHandleDereference(helper.isolate_); |
- HandleArray* array = *helper.handle_array_; |
+ HandleArray* array = helper.handle_array_.get(); |
v8::Handle<v8::String> expected = v8_str("whatever"); |
array->handles_[index].Reset(helper.isolate_, expected); |
VerifyRead(descriptor, internal_field, array, expected); |