| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent bad0d93 commit fd1ffe4
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1926,7 +1926,10 @@ void Compiler::PostInstantiation(Handle<JSFunction> function, | |||
| 1926 | 1926 | PretenureFlag pretenure) { | |
| 1927 | 1927 | Handle<SharedFunctionInfo> shared(function->shared()); | |
| 1928 | 1928 | ||
| 1929 | - if (FLAG_always_opt && shared->allows_lazy_compilation()) { | ||
| 1929 | + if (FLAG_always_opt && | ||
| 1930 | + shared->allows_lazy_compilation() && | ||
| 1931 | + !shared->optimization_disabled() && | ||
| 1932 | + !shared->dont_crankshaft()) { | ||
| 1930 | 1933 | function->MarkForOptimization(); | |
| 1931 | 1934 | } | |
| 1932 | 1935 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments