Index: src/objects-inl.h |
diff --git a/src/objects-inl.h b/src/objects-inl.h |
index 6ebc7ba73175cbc1f849721ab82439ecdfda2fe9..1c1c5ec0c8cbe16cd7a3a5747d85acc7bc0cda65 100644 |
--- a/src/objects-inl.h |
+++ b/src/objects-inl.h |
@@ -3309,6 +3309,11 @@ bool JSFunction::IsOptimized() { |
} |
+bool JSFunction::IsOptimizable() { |
+ return code()->kind() == Code::FUNCTION && code()->optimizable(); |
+} |
+ |
+ |
bool JSFunction::IsMarkedForLazyRecompilation() { |
return code() == GetIsolate()->builtins()->builtin(Builtins::kLazyRecompile); |
} |