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

Unified Diff: src/ast-numbering.cc

Issue 1083193005: WIP: new.target (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix return from new func Created 5 years, 8 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 | « src/ast.cc ('k') | src/ast-value-factory.h » ('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 f43166e186247d0d29be7f3e60d1a71af8960420..8583ab4d6dde00f8649033e04c53ad0cb3ee66de 100644
--- a/src/ast-numbering.cc
+++ b/src/ast-numbering.cc
@@ -159,6 +159,9 @@ void AstNumberingVisitor::VisitVariableProxy(VariableProxy* node) {
if (node->var()->IsLookupSlot()) {
DisableOptimization(kReferenceToAVariableWhichRequiresDynamicLookup);
}
+ if (node->is_new_target()) {
+ DisableOptimization(kNewTarget);
+ }
ReserveFeedbackSlots(node);
node->set_base_id(ReserveIdRange(VariableProxy::num_ids()));
}
« no previous file with comments | « src/ast.cc ('k') | src/ast-value-factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698