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

Unified Diff: src/parser.h

Issue 938443002: [es6] implement spread calls (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add construct support, clean out some gunk 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 4139ba5811f85066e9eea730933e3dea30767531..a2a4e3c0839be80852bd9fbf4566b7fade90da8c 100644
--- a/src/parser.h
+++ b/src/parser.h
@@ -629,6 +629,11 @@ class ParserTraits {
return tag != NULL;
}
+ V8_INLINE ZoneList<v8::internal::Expression*>* PrepareSpreadCallArguments(
+ Expression* function, ZoneList<v8::internal::Expression*>* list);
+ V8_INLINE ZoneList<v8::internal::Expression*>* PrepareSpreadCallNewArguments(
+ Expression* function, ZoneList<v8::internal::Expression*>* list);
+
private:
Parser* parser_;
};
@@ -837,6 +842,11 @@ class Parser : public ParserBase<ParserTraits> {
Expression* tag);
uint32_t ComputeTemplateLiteralHash(const TemplateLiteral* lit);
+ ZoneList<v8::internal::Expression*>* PrepareSpreadCallArguments(
+ Expression* function, ZoneList<v8::internal::Expression*>* list);
+ ZoneList<v8::internal::Expression*>* PrepareSpreadCallNewArguments(
+ Expression* function, ZoneList<v8::internal::Expression*>* list);
+
Scanner scanner_;
PreParser* reusable_preparser_;
Scope* original_scope_; // for ES5 function declarations in sloppy eval
@@ -952,6 +962,19 @@ Expression* ParserTraits::CloseTemplateLiteral(TemplateLiteralState* state,
int start, Expression* tag) {
return parser_->CloseTemplateLiteral(state, start, tag);
}
+
+
+ZoneList<v8::internal::Expression*>* ParserTraits::PrepareSpreadCallArguments(
+ Expression* function, ZoneList<v8::internal::Expression*>* list) {
+ return parser_->PrepareSpreadCallArguments(function, list);
+}
+
+
+ZoneList<v8::internal::Expression*>*
+ParserTraits::PrepareSpreadCallNewArguments(
+ Expression* function, ZoneList<v8::internal::Expression*>* list) {
+ return parser_->PrepareSpreadCallNewArguments(function, list);
+}
} } // namespace v8::internal
#endif // V8_PARSER_H_

Powered by Google App Engine
This is Rietveld 408576698