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

Unified Diff: src/compiler.cc

Issue 1957393004: Allow Turbofan optimization of Ignition generators (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
Index: src/compiler.cc
diff --git a/src/compiler.cc b/src/compiler.cc
index 1fe623bbc9aefbd2765ba8b3657bef92d78ede1f..f3bc5f5f327aea0daddf3127618f3b7cb0b2e6a7 100644
--- a/src/compiler.cc
+++ b/src/compiler.cc
@@ -735,9 +735,8 @@ MaybeHandle<Code> GetOptimizedCode(Handle<JSFunction> function,
return MaybeHandle<Code>();
}
- // Do not use Crankshaft/TurboFan on a generator function.
- // TODO(neis): Eventually enable for Turbofan.
- if (IsGeneratorFunction(info->shared_info()->kind())) {
+ // Do not use Crankshaft on a generator function.
+ if (IsGeneratorFunction(info->shared_info()->kind()) && !use_turbofan) {
neis 2016/05/10 10:03:22 Does this make sense?
rmcilroy 2016/05/10 10:23:21 I think you also need to check for the FLAG_turbo_
Michael Starzinger 2016/05/10 10:37:11 Rather than keeping this bailout here, we could mo
neis 2016/05/10 11:32:06 Done.
info->AbortOptimization(kGenerator);
return MaybeHandle<Code>();
}

Powered by Google App Engine
This is Rietveld 408576698