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

Unified Diff: src/full-codegen.h

Issue 919703003: WIP: Implement ES6 Spread-calls (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: AssignmentExpressions are not spreadable, add cctests for parsing 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.h
diff --git a/src/full-codegen.h b/src/full-codegen.h
index 9a2e7460fc3338ae89087f6e5f0f22bce76c7e4e..8c15406810014b8acd3f4eb24f873f8a37f70865 100644
--- a/src/full-codegen.h
+++ b/src/full-codegen.h
@@ -371,6 +371,12 @@ class FullCodeGenerator: public AstVisitor {
// need the write barrier if location is CONTEXT.
MemOperand VarOperand(Variable* var, Register scratch);
+ // Special visitor for a spread argument, will update a scratch register with
+ // total parameter count, and push each spread value from left to right onto
+ // the stack.
+ void DoSpreadArgument(SpreadOperation* expr, Register arg_count);
+
+
void VisitForEffect(Expression* expr) {
EffectContext context(this);
Visit(expr);

Powered by Google App Engine
This is Rietveld 408576698