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

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: Oops. Created 5 years, 3 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..2fe920b7c46d303f405615e0e5345aa4c6e4af8d 100644
--- a/src/ast-literal-reindexer.h
+++ b/src/ast-literal-reindexer.h
@@ -17,6 +17,7 @@ class AstLiteralReindexer final : public AstVisitor {
int count() const { return next_index_; }
void Reindex(Expression* pattern);
+ int NextIndex() { return next_index_++; }
private:
#define DEFINE_VISIT(type) virtual void Visit##type(type* node) override;
« no previous file with comments | « src/arm64/code-stubs-arm64.cc ('k') | src/ast-value-factory.h » ('j') | src/parser.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698