| Index: src/objects-visiting-inl.h
|
| diff --git a/src/objects-visiting-inl.h b/src/objects-visiting-inl.h
|
| index add247ea45cda0e3f7c97de7e8b24f9a8f632106..9b39bef2a138a912e9e272bb7b16a1b2bd80d045 100644
|
| --- a/src/objects-visiting-inl.h
|
| +++ b/src/objects-visiting-inl.h
|
| @@ -566,14 +566,14 @@ bool StaticMarkingVisitor<StaticVisitor>::IsFlushable(
|
| return false;
|
| }
|
|
|
| - // If this is a full script wrapped in a function we do no flush the code.
|
| + // If this is a full script wrapped in a function we do not flush the code.
|
| if (shared_info->is_toplevel()) {
|
| return false;
|
| }
|
|
|
| - // If this is a native function we do not flush the code because %SetCode
|
| - // breaks the one-to-one relation between SharedFunctionInfo and Code.
|
| - if (shared_info->native()) {
|
| + // If this is a function initialized with %SetCode then the one-to-one
|
| + // relation between SharedFunctionInfo and Code is broken.
|
| + if (shared_info->dont_flush()) {
|
| return false;
|
| }
|
|
|
|
|