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