Index: test/cctest/test-heap.cc |
diff --git a/test/cctest/test-heap.cc b/test/cctest/test-heap.cc |
index fc6a1ec40ff13a047aceb5d585f7b6a5c7f06217..faf812581cd4d83baa8137b83de57a10bbfb3fde 100644 |
--- a/test/cctest/test-heap.cc |
+++ b/test/cctest/test-heap.cc |
@@ -82,16 +82,18 @@ TEST(HeapMaps) { |
static void CheckOddball(Isolate* isolate, Object* obj, const char* string) { |
CHECK(obj->IsOddball()); |
bool exc; |
+ Handle<Object> handle(obj, isolate); |
Object* print_string = |
- *Execution::ToString(Handle<Object>(obj, isolate), &exc); |
+ *Execution::ToString(isolate, handle, &exc); |
CHECK(String::cast(print_string)->IsUtf8EqualTo(CStrVector(string))); |
} |
static void CheckSmi(Isolate* isolate, int value, const char* string) { |
bool exc; |
+ Handle<Object> handle(Smi::FromInt(value), isolate); |
Object* print_string = |
- *Execution::ToString(Handle<Object>(Smi::FromInt(value), isolate), &exc); |
+ *Execution::ToString(isolate, handle, &exc); |
CHECK(String::cast(print_string)->IsUtf8EqualTo(CStrVector(string))); |
} |
@@ -100,8 +102,9 @@ static void CheckNumber(Isolate* isolate, double value, const char* string) { |
Object* obj = HEAP->NumberFromDouble(value)->ToObjectChecked(); |
CHECK(obj->IsNumber()); |
bool exc; |
+ Handle<Object> handle(obj, isolate); |
Object* print_string = |
- *Execution::ToString(Handle<Object>(obj, isolate), &exc); |
+ *Execution::ToString(isolate, handle, &exc); |
CHECK(String::cast(print_string)->IsUtf8EqualTo(CStrVector(string))); |
} |