| Index: src/compiler.cc
|
| diff --git a/src/compiler.cc b/src/compiler.cc
|
| index 3ee901c16ffebf832d305d9c5b514cf360cf1851..0394d5be40d841d5033ff91b623de40fc1d95399 100644
|
| --- a/src/compiler.cc
|
| +++ b/src/compiler.cc
|
| @@ -1333,12 +1333,6 @@ MaybeHandle<JSFunction> Compiler::GetFunctionFromEval(
|
| if (shared_info.is_null()) {
|
| return MaybeHandle<JSFunction>();
|
| } else {
|
| - // Explicitly disable optimization for eval code. We're not yet prepared
|
| - // to handle eval-code in the optimizing compiler.
|
| - if (restriction != ONLY_SINGLE_FUNCTION_LITERAL) {
|
| - shared_info->DisableOptimization(kEval);
|
| - }
|
| -
|
| // If caller is strict mode, the result must be in strict mode as well.
|
| DCHECK(is_sloppy(language_mode) ||
|
| is_strict(shared_info->language_mode()));
|
|
|