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

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

Issue 231103002: Object::GetElements() and friends maybehandlification. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: FixedArray::UnionOfKeys() maybehandlified Created 6 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 | « test/cctest/test-api.cc ('k') | test/cctest/test-object-observe.cc » ('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 aa28d4feec73cd9893502f300e2f48a5144896d7..1f3fa318b28f29e16264b917b54ca08b2e4cf49f 100644
--- a/test/cctest/test-heap.cc
+++ b/test/cctest/test-heap.cc
@@ -775,7 +775,7 @@ TEST(JSArray) {
// array[length] = name.
JSReceiver::SetElement(array, 0, name, NONE, SLOPPY).Check();
CHECK_EQ(Smi::FromInt(1), array->length());
- CHECK_EQ(*i::Object::GetElement(isolate, array, 0), *name);
+ CHECK_EQ(*i::Object::GetElement(isolate, array, 0).ToHandleChecked(), *name);
// Set array length with larger than smi value.
Handle<Object> length =
@@ -792,8 +792,9 @@ 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(*i::Object::GetElement(isolate, array, int_length), *name);
- CHECK_EQ(*i::Object::GetElement(isolate, array, 0), *name);
+ CHECK_EQ(*i::Object::GetElement(isolate, array, int_length).ToHandleChecked(),
+ *name);
+ CHECK_EQ(*i::Object::GetElement(isolate, array, 0).ToHandleChecked(), *name);
}
@@ -824,10 +825,10 @@ TEST(JSObjectCopy) {
Handle<JSObject> clone = JSObject::Copy(obj);
CHECK(!clone.is_identical_to(obj));
- 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(*i::Object::GetElement(isolate, obj, 0).ToHandleChecked(),
+ *i::Object::GetElement(isolate, clone, 0).ToHandleChecked());
+ CHECK_EQ(*i::Object::GetElement(isolate, obj, 1).ToHandleChecked(),
+ *i::Object::GetElement(isolate, clone, 1).ToHandleChecked());
CHECK_EQ(*Object::GetProperty(obj, first),
*Object::GetProperty(clone, first));
@@ -841,10 +842,10 @@ TEST(JSObjectCopy) {
JSReceiver::SetElement(clone, 0, second, NONE, SLOPPY).Check();
JSReceiver::SetElement(clone, 1, first, NONE, SLOPPY).Check();
- 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(*i::Object::GetElement(isolate, obj, 1).ToHandleChecked(),
+ *i::Object::GetElement(isolate, clone, 0).ToHandleChecked());
+ CHECK_EQ(*i::Object::GetElement(isolate, obj, 0).ToHandleChecked(),
+ *i::Object::GetElement(isolate, clone, 1).ToHandleChecked());
CHECK_EQ(*Object::GetProperty(obj, second),
*Object::GetProperty(clone, first));
« no previous file with comments | « test/cctest/test-api.cc ('k') | test/cctest/test-object-observe.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698