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

Unified Diff: src/parser.h

Issue 1163853002: Revert of [es6] implement default parameters via desugaring (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 7 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
« no previous file with comments | « src/messages.h ('k') | src/parser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/parser.h
diff --git a/src/parser.h b/src/parser.h
index 584d69b4f1c8d56e14cd2ea14fb90ae2dcdd412a..eba677c94bb945da45e6f2b4f3fbc3fbbc3e2845 100644
--- a/src/parser.h
+++ b/src/parser.h
@@ -748,10 +748,9 @@
FunctionKind kind = kNormalFunction);
bool DeclareFormalParameter(Scope* scope, const AstRawString* name,
- bool is_rest, int pos) {
+ bool is_rest) {
bool is_duplicate = false;
- Variable* var =
- scope->DeclareParameter(name, VAR, is_rest, &is_duplicate, pos);
+ Variable* var = scope->DeclareParameter(name, VAR, is_rest, &is_duplicate);
if (is_sloppy(scope->language_mode())) {
// TODO(sigurds) Mark every parameter as maybe assigned. This is a
// conservative approximation necessary to account for parameters
@@ -1026,6 +1025,7 @@
bool* ok_;
};
+
void ParseVariableDeclarations(VariableDeclarationContext var_context,
DeclarationParsingResult* parsing_result,
bool* ok);
@@ -1071,10 +1071,6 @@
ForStatement* loop, Statement* init, Expression* cond, Statement* next,
Statement* body, bool* ok);
- ZoneList<Statement*>* DesugarInitializeParameters(
- Scope* scope, bool has_parameter_expressions,
- ZoneList<Expression*>* initializers);
-
FunctionLiteral* ParseFunctionLiteral(
const AstRawString* name, Scanner::Location function_name_location,
bool name_is_strict_reserved, FunctionKind kind,
« no previous file with comments | « src/messages.h ('k') | src/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698