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

Unified Diff: src/full-codegen.cc

Issue 997823003: [es6] support rest parameters in arrow functions (alternative) (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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/full-codegen.cc
diff --git a/src/full-codegen.cc b/src/full-codegen.cc
index 8721bcd9a69be4989e27775a9a0759979393dff7..0c32fb4e1c4811f161ac10c30fb8400e04b4d5c2 100644
--- a/src/full-codegen.cc
+++ b/src/full-codegen.cc
@@ -288,6 +288,11 @@ void BreakableStatementChecker::VisitCompareOperation(CompareOperation* expr) {
}
+void BreakableStatementChecker::VisitSpread(Spread* expr) {
+ Visit(expr->expression());
+}
+
+
void BreakableStatementChecker::VisitThisFunction(ThisFunction* expr) {
}
@@ -1656,6 +1661,11 @@ void FullCodeGenerator::VisitThrow(Throw* expr) {
}
+void FullCodeGenerator::VisitSpread(Spread* expr) {
+ Visit(expr->expression());
+}
+
+
FullCodeGenerator::NestedStatement* FullCodeGenerator::TryCatch::Exit(
int* stack_depth,
int* context_length) {
« no previous file with comments | « src/compiler/ast-loop-assignment-analyzer.cc ('k') | src/hydrogen.cc » ('j') | src/preparser.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698