| OLD | NEW |
| 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_PARSING_PARSER_H_ | 5 #ifndef V8_PARSING_PARSER_H_ |
| 6 #define V8_PARSING_PARSER_H_ | 6 #define V8_PARSING_PARSER_H_ |
| 7 | 7 |
| 8 #include "src/allocation.h" | 8 #include "src/allocation.h" |
| 9 #include "src/ast/ast.h" | 9 #include "src/ast/ast.h" |
| 10 #include "src/ast/scopes.h" | 10 #include "src/ast/scopes.h" |
| (...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 356 bool IsEvalOrArguments(const AstRawString* identifier) const; | 356 bool IsEvalOrArguments(const AstRawString* identifier) const; |
| 357 bool IsUndefined(const AstRawString* identifier) const; | 357 bool IsUndefined(const AstRawString* identifier) const; |
| 358 bool IsAwait(const AstRawString* identifier) const; | 358 bool IsAwait(const AstRawString* identifier) const; |
| 359 V8_INLINE bool IsFutureStrictReserved(const AstRawString* identifier) const; | 359 V8_INLINE bool IsFutureStrictReserved(const AstRawString* identifier) const; |
| 360 | 360 |
| 361 // Returns true if the expression is of type "this.foo". | 361 // Returns true if the expression is of type "this.foo". |
| 362 static bool IsThisProperty(Expression* expression); | 362 static bool IsThisProperty(Expression* expression); |
| 363 | 363 |
| 364 static bool IsIdentifier(Expression* expression); | 364 static bool IsIdentifier(Expression* expression); |
| 365 | 365 |
| 366 static bool IsEmptyExpression(Expression* expression); |
| 367 |
| 366 bool IsPrototype(const AstRawString* identifier) const; | 368 bool IsPrototype(const AstRawString* identifier) const; |
| 367 | 369 |
| 368 bool IsConstructor(const AstRawString* identifier) const; | 370 bool IsConstructor(const AstRawString* identifier) const; |
| 369 | 371 |
| 370 static const AstRawString* AsIdentifier(Expression* expression) { | 372 static const AstRawString* AsIdentifier(Expression* expression) { |
| 371 DCHECK(IsIdentifier(expression)); | 373 DCHECK(IsIdentifier(expression)); |
| 372 return expression->AsVariableProxy()->raw_name(); | 374 return expression->AsVariableProxy()->raw_name(); |
| 373 } | 375 } |
| 374 | 376 |
| 375 bool IsDirectEvalCall(Expression* expression) { | 377 bool IsDirectEvalCall(Expression* expression) { |
| (...skipping 943 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1319 | 1321 |
| 1320 DoExpression* ParserTraits::ParseDoExpression(bool* ok) { | 1322 DoExpression* ParserTraits::ParseDoExpression(bool* ok) { |
| 1321 return parser_->ParseDoExpression(ok); | 1323 return parser_->ParseDoExpression(ok); |
| 1322 } | 1324 } |
| 1323 | 1325 |
| 1324 | 1326 |
| 1325 } // namespace internal | 1327 } // namespace internal |
| 1326 } // namespace v8 | 1328 } // namespace v8 |
| 1327 | 1329 |
| 1328 #endif // V8_PARSING_PARSER_H_ | 1330 #endif // V8_PARSING_PARSER_H_ |
| OLD | NEW |