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

Unified Diff: src/ast-numbering.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
« no previous file with comments | « no previous file | src/hydrogen.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ast-numbering.cc
diff --git a/src/ast-numbering.cc b/src/ast-numbering.cc
index 784e605d747822f7814a993478d9868884e0c51f..3eae35e511bf0d23417972036c3a5172c4227674 100644
--- a/src/ast-numbering.cc
+++ b/src/ast-numbering.cc
@@ -296,6 +296,19 @@ void AstNumberingVisitor::VisitCallRuntime(CallRuntime* node) {
// Don't try to optimize JS runtime calls because we bailout on them.
DisableCrankshaft(kCallToAJavaScriptRuntimeFunction);
}
+ const Runtime::Function* function = node->function();
+ if (function != NULL && function->intrinsic_type == Runtime::INLINE) {
Michael Starzinger (Google) 2015/01/14 20:42:22 OMG, pretty please don't. Is this known to fix the
+ switch (function->function_id) {
+ case Runtime::kInlineGeneratorNext:
+ DisableCrankshaft(kInlinedRuntimeFunctionGeneratorNext);
+ break;
+ case Runtime::kInlineGeneratorThrow:
+ DisableCrankshaft(kInlinedRuntimeFunctionGeneratorThrow);
+ break;
+ default:
+ break;
+ }
+ }
node->set_base_id(ReserveIdRange(CallRuntime::num_ids()));
VisitArguments(node->arguments());
}
« no previous file with comments | « no previous file | src/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698