| Index: src/objects.cc
|
| ===================================================================
|
| --- src/objects.cc (revision 15545)
|
| +++ src/objects.cc (working copy)
|
| @@ -9723,12 +9723,8 @@
|
| // non-optimizable if optimization is disabled for the shared
|
| // function info.
|
| set_optimization_disabled(true);
|
| - // Code should be the lazy compilation stub or else unoptimized. If the
|
| - // latter, disable optimization for the code too.
|
| + // Code should be the lazy compilation stub or else unoptimized.
|
| ASSERT(code()->kind() == Code::FUNCTION || code()->kind() == Code::BUILTIN);
|
| - if (code()->kind() == Code::FUNCTION) {
|
| - code()->set_optimizable(false);
|
| - }
|
| if (FLAG_trace_opt) {
|
| PrintF("[disabled optimization for ");
|
| ShortPrint();
|
| @@ -9824,7 +9820,6 @@
|
| opt_count() >= FLAG_max_opt_count) {
|
| // Re-enable optimizations if they were disabled due to opt_count limit.
|
| set_optimization_disabled(false);
|
| - code()->set_optimizable(true);
|
| }
|
| set_opt_count(0);
|
| set_deopt_count(0);
|
|
|