Index: test/cctest/test-heap.cc |
diff --git a/test/cctest/test-heap.cc b/test/cctest/test-heap.cc |
index 07828a9a488143bd2d530ae13071a058b8ba78d6..fa2b3427be02d7550cb9d5df176e0aad31280fd1 100644 |
--- a/test/cctest/test-heap.cc |
+++ b/test/cctest/test-heap.cc |
@@ -767,7 +767,7 @@ TEST(JSArray) { |
// array[length] = name. |
JSReceiver::SetElement(array, 0, name, NONE, SLOPPY); |
CHECK_EQ(Smi::FromInt(1), array->length()); |
- CHECK_EQ(array->GetElement(isolate, 0), *name); |
+ CHECK_EQ(*i::Object::GetElement(isolate, array, 0), *name); |
// Set array length with larger than smi value. |
Handle<Object> length = |
@@ -784,8 +784,8 @@ TEST(JSArray) { |
uint32_t new_int_length = 0; |
CHECK(array->length()->ToArrayIndex(&new_int_length)); |
CHECK_EQ(static_cast<double>(int_length), new_int_length - 1); |
- CHECK_EQ(array->GetElement(isolate, int_length), *name); |
- CHECK_EQ(array->GetElement(isolate, 0), *name); |
+ CHECK_EQ(*i::Object::GetElement(isolate, array, int_length), *name); |
+ CHECK_EQ(*i::Object::GetElement(isolate, array, 0), *name); |
} |
@@ -817,8 +817,10 @@ TEST(JSObjectCopy) { |
Handle<JSObject> clone = JSObject::Copy(obj); |
CHECK(!clone.is_identical_to(obj)); |
- CHECK_EQ(obj->GetElement(isolate, 0), clone->GetElement(isolate, 0)); |
- CHECK_EQ(obj->GetElement(isolate, 1), clone->GetElement(isolate, 1)); |
+ CHECK_EQ(*i::Object::GetElement(isolate, obj, 0), |
+ *i::Object::GetElement(isolate, clone, 0)); |
+ CHECK_EQ(*i::Object::GetElement(isolate, obj, 1), |
+ *i::Object::GetElement(isolate, clone, 1)); |
CHECK_EQ(obj->GetProperty(*first), clone->GetProperty(*first)); |
CHECK_EQ(obj->GetProperty(*second), clone->GetProperty(*second)); |
@@ -830,8 +832,10 @@ TEST(JSObjectCopy) { |
JSReceiver::SetElement(clone, 0, second, NONE, SLOPPY); |
JSReceiver::SetElement(clone, 1, first, NONE, SLOPPY); |
- CHECK_EQ(obj->GetElement(isolate, 1), clone->GetElement(isolate, 0)); |
- CHECK_EQ(obj->GetElement(isolate, 0), clone->GetElement(isolate, 1)); |
+ CHECK_EQ(*i::Object::GetElement(isolate, obj, 1), |
+ *i::Object::GetElement(isolate, clone, 0)); |
+ CHECK_EQ(*i::Object::GetElement(isolate, obj, 0), |
+ *i::Object::GetElement(isolate, clone, 1)); |
CHECK_EQ(obj->GetProperty(*second), clone->GetProperty(*first)); |
CHECK_EQ(obj->GetProperty(*first), clone->GetProperty(*second)); |