Index: test/cctest/heap/test-heap.cc |
diff --git a/test/cctest/heap/test-heap.cc b/test/cctest/heap/test-heap.cc |
index 100c4441bbd779b194847d84318ef5cac8a8e0a2..495a3980df322681fce691a31af8285ac6fb8137 100644 |
--- a/test/cctest/heap/test-heap.cc |
+++ b/test/cctest/heap/test-heap.cc |
@@ -1712,7 +1712,7 @@ |
Handle<Context> icontext = v8::Utils::OpenHandle(*context); |
Object* object = icontext->get(Context::OPTIMIZED_FUNCTIONS_LIST); |
while (object->IsJSFunction() && |
- JSFunction::cast(object)->shared()->IsUserJavaScript()) { |
+ !JSFunction::cast(object)->shared()->IsBuiltin()) { |
count++; |
object = JSFunction::cast(object)->next_function_link(); |
} |
@@ -1854,7 +1854,7 @@ |
Handle<Object> object(icontext->get(Context::OPTIMIZED_FUNCTIONS_LIST), |
isolate); |
while (object->IsJSFunction() && |
- Handle<JSFunction>::cast(object)->shared()->IsUserJavaScript()) { |
+ !Handle<JSFunction>::cast(object)->shared()->IsBuiltin()) { |
count++; |
if (count == n) |
isolate->heap()->CollectAllGarbage( |