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

Unified Diff: src/ast/ast-numbering.cc

Issue 2703563002: [ESNext] Implement DynamicImportCall (Closed)
Patch Set: use function_closure Created 3 years, 9 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/ast/ast-numbering.cc
diff --git a/src/ast/ast-numbering.cc b/src/ast/ast-numbering.cc
index 499760de147efc18fde6bff67458d3a9d8814f1f..dd8903e3edf07568a7c0845bb1b24623e5de87f9 100644
--- a/src/ast/ast-numbering.cc
+++ b/src/ast/ast-numbering.cc
@@ -463,6 +463,13 @@ void AstNumberingVisitor::VisitGetIterator(GetIterator* node) {
ReserveFeedbackSlots(node);
}
+void AstNumberingVisitor::VisitImportCallExpression(
+ ImportCallExpression* node) {
+ IncrementNodeCount();
+ DisableFullCodegenAndCrankshaft(kDynamicImport);
+ Visit(node->argument());
+}
+
void AstNumberingVisitor::VisitForInStatement(ForInStatement* node) {
IncrementNodeCount();
DisableSelfOptimization();
« no previous file with comments | « src/ast/ast-expression-rewriter.cc ('k') | src/ast/ast-traversal-visitor.h » ('j') | src/d8.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698