Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(87)

Unified Diff: src/compiler.cc

Issue 1962103003: [turbofan] Enable optimization of top-level eval code. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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()));
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698