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

Unified Diff: src/typing.cc

Issue 1272673003: [es6] Re-implement rest parameters via desugaring. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase + fix brokenness Created 5 years, 4 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/typing.cc
diff --git a/src/typing.cc b/src/typing.cc
index 1cb7577775622c59880638d2d2bf5067cf5c6d7f..e7d2fae7ebe576b5d5323c550abb7079662d8876 100644
--- a/src/typing.cc
+++ b/src/typing.cc
@@ -371,6 +371,12 @@ void AstTyper::VisitVariableProxy(VariableProxy* expr) {
}
+void AstTyper::VisitRestParameter(RestParameter* node) {
+ // This node should be evicted from the tree before typing ever occurs.
+ UNREACHABLE();
+}
+
+
void AstTyper::VisitLiteral(Literal* expr) {
Type* type = Type::Constant(expr->value(), zone());
NarrowType(expr, Bounds(type));
« src/preparser.h ('K') | « src/runtime/runtime-scopes.cc ('k') | src/x64/code-stubs-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698