Commit a58045a9 authored by mstarzinger's avatar mstarzinger Committed by Commit bot

[heap] Use safer predicate for API functions.

This uses the common predicate SharedFunctionInfo::IsApiFunction to
determine flushability. Just a minor cleanup, no change in semantics.

R=hpayer@chromium.org

Review URL: https://codereview.chromium.org/1878183002

Cr-Commit-Position: refs/heads/master@{#35419}
parent 4aa19274
......@@ -633,8 +633,7 @@ bool StaticMarkingVisitor<StaticVisitor>::IsFlushable(
}
// We never flush code for API functions.
Object* function_data = shared_info->function_data();
if (function_data->IsFunctionTemplateInfo()) {
if (shared_info->IsApiFunction()) {
return false;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment