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

Unified Diff: src/ast-literal-reindexer.h

Issue 1272673003: [es6] Re-implement rest parameters via desugaring. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase + fix brokenness Created 5 years, 4 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-literal-reindexer.h
diff --git a/src/ast-literal-reindexer.h b/src/ast-literal-reindexer.h
index 9e445129a5ecfb9be85ca413f2c44c2f2f222a18..ebfd3914c052837c09e764376aadb78e0d6e7b55 100644
--- a/src/ast-literal-reindexer.h
+++ b/src/ast-literal-reindexer.h
@@ -32,6 +32,10 @@ class AstLiteralReindexer final : public AstVisitor {
literal->literal_index_ = next_index_++;
}
+ void UpdateIndex(RestParameter* pseudo_literal) {
+ pseudo_literal->literal_index_ = next_index_++;
+ }
+
void Visit(AstNode* node) override { node->Accept(this); }
int next_index_;

Powered by Google App Engine
This is Rietveld 408576698