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

Side by Side Diff: src/parser.h

Issue 932333004: [strong] Deprecate arguments (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Comments 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 unified diff | Download patch
« no previous file with comments | « src/messages.js ('k') | src/parser.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_PARSER_H_ 5 #ifndef V8_PARSER_H_
6 #define V8_PARSER_H_ 6 #define V8_PARSER_H_
7 7
8 #include "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/ast.h" 9 #include "src/ast.h"
10 #include "src/compiler.h" // For CachedDataMode 10 #include "src/compiler.h" // For CachedDataMode
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after
376 typedef ZoneList<ObjectLiteral::Property*>* PropertyList; 376 typedef ZoneList<ObjectLiteral::Property*>* PropertyList;
377 typedef ZoneList<v8::internal::Statement*>* StatementList; 377 typedef ZoneList<v8::internal::Statement*>* StatementList;
378 378
379 // For constructing objects returned by the traversing functions. 379 // For constructing objects returned by the traversing functions.
380 typedef AstNodeFactory Factory; 380 typedef AstNodeFactory Factory;
381 }; 381 };
382 382
383 explicit ParserTraits(Parser* parser) : parser_(parser) {} 383 explicit ParserTraits(Parser* parser) : parser_(parser) {}
384 384
385 // Helper functions for recursive descent. 385 // Helper functions for recursive descent.
386 bool IsEval(const AstRawString* identifier) const;
387 bool IsArguments(const AstRawString* identifier) const;
386 bool IsEvalOrArguments(const AstRawString* identifier) const; 388 bool IsEvalOrArguments(const AstRawString* identifier) const;
387 V8_INLINE bool IsFutureStrictReserved(const AstRawString* identifier) const; 389 V8_INLINE bool IsFutureStrictReserved(const AstRawString* identifier) const;
388 390
389 // Returns true if the expression is of type "this.foo". 391 // Returns true if the expression is of type "this.foo".
390 static bool IsThisProperty(Expression* expression); 392 static bool IsThisProperty(Expression* expression);
391 393
392 static bool IsIdentifier(Expression* expression); 394 static bool IsIdentifier(Expression* expression);
393 395
394 bool IsPrototype(const AstRawString* identifier) const; 396 bool IsPrototype(const AstRawString* identifier) const;
395 397
(...skipping 551 matching lines...) Expand 10 before | Expand all | Expand 10 after
947 } 949 }
948 950
949 951
950 Expression* ParserTraits::CloseTemplateLiteral(TemplateLiteralState* state, 952 Expression* ParserTraits::CloseTemplateLiteral(TemplateLiteralState* state,
951 int start, Expression* tag) { 953 int start, Expression* tag) {
952 return parser_->CloseTemplateLiteral(state, start, tag); 954 return parser_->CloseTemplateLiteral(state, start, tag);
953 } 955 }
954 } } // namespace v8::internal 956 } } // namespace v8::internal
955 957
956 #endif // V8_PARSER_H_ 958 #endif // V8_PARSER_H_
OLDNEW
« no previous file with comments | « src/messages.js ('k') | src/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698