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

Unified Diff: src/hydrogen.cc

Issue 854633002: Eagerly disable optimization of %_GeneratorThrow, %_GeneratorNext (Closed) Base URL: https://chromium.googlesource.com/v8/v8@master
Patch Set: Created 5 years, 11 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
« src/ast-numbering.cc ('K') | « src/ast-numbering.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/hydrogen.cc
diff --git a/src/hydrogen.cc b/src/hydrogen.cc
index a6843115bb27104727e5a926999433b295e0be01..b8e55af5671a3aa4404053350e1b12cdad320e25 100644
--- a/src/hydrogen.cc
+++ b/src/hydrogen.cc
@@ -12743,14 +12743,15 @@ void HOptimizedGraphBuilder::GenerateFastOneByteArrayJoin(CallRuntime* call) {
}
-// Support for generators.
+// Functions with these generator primitives will not be optimized; see
+// ast-numbering.cc.
void HOptimizedGraphBuilder::GenerateGeneratorNext(CallRuntime* call) {
- return Bailout(kInlinedRuntimeFunctionGeneratorNext);
+ UNREACHABLE();
}
void HOptimizedGraphBuilder::GenerateGeneratorThrow(CallRuntime* call) {
- return Bailout(kInlinedRuntimeFunctionGeneratorThrow);
+ UNREACHABLE();
}
« src/ast-numbering.cc ('K') | « src/ast-numbering.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698