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

Unified Diff: src/parser.h

Issue 919703003: WIP: Implement ES6 Spread-calls (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Flag calls as spread calls in parser, error on spread intrinsics/construct calls 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/parser.h
diff --git a/src/parser.h b/src/parser.h
index 19036e7739787108d49a4b3a6d215ab5aa17a0aa..318308fb01d9632f0813c82e0e98d9ab119fbcc3 100644
--- a/src/parser.h
+++ b/src/parser.h
@@ -628,6 +628,12 @@ class ParserTraits {
return tag != NULL;
}
+ V8_INLINE void MarkSpreadCall(Expression* call) {
+ // TODO(caitp): support CallNew, CallRuntime
+ DCHECK(call->IsCall());
+ call->AsCall()->MarkSpreadCall();
+ }
+
private:
Parser* parser_;
};

Powered by Google App Engine
This is Rietveld 408576698