| Index: src/objects-inl.h
|
| ===================================================================
|
| --- src/objects-inl.h (revision 15545)
|
| +++ src/objects-inl.h (working copy)
|
| @@ -4630,10 +4630,9 @@
|
| set_compiler_hints(BooleanBit::set(compiler_hints(),
|
| kOptimizationDisabled,
|
| disable));
|
| - // If disabling optimizations we reflect that in the code object so
|
| - // it will not be counted as optimizable code.
|
| - if ((code()->kind() == Code::FUNCTION) && disable) {
|
| - code()->set_optimizable(false);
|
| + // If enabling/disabling optimizations we reflect that in the code object
|
| + if (code()->kind() == Code::FUNCTION) {
|
| + code()->set_optimizable(!disable);
|
| }
|
| }
|
|
|
| @@ -4853,7 +4852,6 @@
|
| set_optimization_disabled(false);
|
| set_opt_count(0);
|
| set_deopt_count(0);
|
| - code()->set_optimizable(true);
|
| }
|
| }
|
|
|
|
|