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

Side by Side Diff: src/parsing/preparser.h

Issue 2156303002: Implement new Function.prototype.toString and fix CreateDynamicFunction parsing (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebase Created 3 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/parsing/parser-base.h ('k') | src/runtime/runtime-compiler.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_PARSING_PREPARSER_H 5 #ifndef V8_PARSING_PREPARSER_H
6 #define V8_PARSING_PREPARSER_H 6 #define V8_PARSING_PREPARSER_H
7 7
8 #include "src/ast/ast.h" 8 #include "src/ast/ast.h"
9 #include "src/ast/scopes.h" 9 #include "src/ast/scopes.h"
10 #include "src/parsing/parser-base.h" 10 #include "src/parsing/parser-base.h"
(...skipping 1672 matching lines...) Expand 10 before | Expand all | Expand 10 after
1683 } 1683 }
1684 1684
1685 V8_INLINE ZoneList<PreParserExpression>* GetNonPatternList() const { 1685 V8_INLINE ZoneList<PreParserExpression>* GetNonPatternList() const {
1686 return function_state_->non_patterns_to_rewrite(); 1686 return function_state_->non_patterns_to_rewrite();
1687 } 1687 }
1688 1688
1689 V8_INLINE void CountUsage(v8::Isolate::UseCounterFeature feature) { 1689 V8_INLINE void CountUsage(v8::Isolate::UseCounterFeature feature) {
1690 if (use_counts_ != nullptr) ++use_counts_[feature]; 1690 if (use_counts_ != nullptr) ++use_counts_[feature];
1691 } 1691 }
1692 1692
1693 V8_INLINE bool ParsingDynamicFunctionDeclaration() const { return false; }
1694
1693 // Preparser's private field members. 1695 // Preparser's private field members.
1694 1696
1695 int* use_counts_; 1697 int* use_counts_;
1696 bool track_unresolved_variables_; 1698 bool track_unresolved_variables_;
1697 PreParserLogger log_; 1699 PreParserLogger log_;
1698 PendingCompilationErrorHandler* pending_error_handler_; 1700 PendingCompilationErrorHandler* pending_error_handler_;
1699 }; 1701 };
1700 1702
1701 PreParserExpression PreParser::SpreadCall(PreParserExpression function, 1703 PreParserExpression PreParser::SpreadCall(PreParserExpression function,
1702 PreParserExpressionList args, int pos, 1704 PreParserExpressionList args, int pos,
(...skipping 10 matching lines...) Expand all
1713 PreParserExpression PreParser::CloseTemplateLiteral(TemplateLiteralState* state, 1715 PreParserExpression PreParser::CloseTemplateLiteral(TemplateLiteralState* state,
1714 int start, 1716 int start,
1715 PreParserExpression tag) { 1717 PreParserExpression tag) {
1716 return EmptyExpression(); 1718 return EmptyExpression();
1717 } 1719 }
1718 1720
1719 } // namespace internal 1721 } // namespace internal
1720 } // namespace v8 1722 } // namespace v8
1721 1723
1722 #endif // V8_PARSING_PREPARSER_H 1724 #endif // V8_PARSING_PREPARSER_H
OLDNEW
« no previous file with comments | « src/parsing/parser-base.h ('k') | src/runtime/runtime-compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698