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

Unified Diff: src/full-codegen.cc

Issue 938443002: [es6] implement spread calls (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Eagerly iterate spread expressions, make parser more complicated, simplify harmony-spread Created 5 years, 10 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 349626b0e08181dcf90781cbc91c51464a384f94..c4521bbea635c2e4b34b1789ba99597fab6c5db1 100644
--- a/src/full-codegen.cc
+++ b/src/full-codegen.cc
@@ -292,6 +292,11 @@ void BreakableStatementChecker::VisitCompareOperation(CompareOperation* expr) {
}
+void BreakableStatementChecker::VisitSpreadOperation(SpreadOperation* expr) {
+ Visit(expr->expression());
+}
+
+
void BreakableStatementChecker::VisitThisFunction(ThisFunction* expr) {
}
@@ -1683,6 +1688,11 @@ void FullCodeGenerator::VisitThrow(Throw* expr) {
}
+void FullCodeGenerator::VisitSpreadOperation(SpreadOperation* expr) {
+ Visit(expr->expression());
+}
+
+
FullCodeGenerator::NestedStatement* FullCodeGenerator::TryCatch::Exit(
int* stack_depth,
int* context_length) {

Powered by Google App Engine
This is Rietveld 408576698