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

Unified Diff: src/ast-numbering.cc

Issue 1135243004: [es6] Support super.property in eval and arrow functions (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebase Created 5 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/ast-numbering.cc
diff --git a/src/ast-numbering.cc b/src/ast-numbering.cc
index d1b64bacb6f0d5848cb13a44149db892201405bf..a3625db2f737da2c2f4ed6d134eaa0bba08d750e 100644
--- a/src/ast-numbering.cc
+++ b/src/ast-numbering.cc
@@ -164,9 +164,8 @@ void AstNumberingVisitor::VisitThisFunction(ThisFunction* node) {
void AstNumberingVisitor::VisitSuperReference(SuperReference* node) {
IncrementNodeCount();
DisableOptimization(kSuperReference);
- ReserveFeedbackSlots(node);
- node->set_base_id(ReserveIdRange(SuperReference::num_ids()));
Visit(node->this_var());
+ Visit(node->home_object_var());
}
@@ -510,6 +509,8 @@ bool AstNumberingVisitor::Renumber(FunctionLiteral* node) {
DisableOptimization(kContextAllocatedArguments);
}
+ ReserveFeedbackSlots(node);
+
VisitDeclarations(scope->declarations());
if (scope->is_function_scope() && scope->function() != NULL) {
// Visit the name of the named function expression.
« no previous file with comments | « src/ast.cc ('k') | src/ast-value-factory.h » ('j') | src/x64/full-codegen-x64.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698