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

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

Issue 2224843003: Reduce number of scope() accesses (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Undo unrelated change Created 4 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 unified diff | Download patch
« no previous file with comments | « src/parsing/parser-base.h ('k') | no next file » | 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/scopes.h" 8 #include "src/ast/scopes.h"
9 #include "src/bailout-reason.h" 9 #include "src/bailout-reason.h"
10 #include "src/base/hashmap.h" 10 #include "src/base/hashmap.h"
(...skipping 783 matching lines...) Expand 10 before | Expand all | Expand 10 after
794 } 794 }
795 795
796 // Producing data during the recursive descent. 796 // Producing data during the recursive descent.
797 PreParserIdentifier GetSymbol(Scanner* scanner); 797 PreParserIdentifier GetSymbol(Scanner* scanner);
798 PreParserIdentifier GetNumberAsSymbol(Scanner* scanner); 798 PreParserIdentifier GetNumberAsSymbol(Scanner* scanner);
799 799
800 static PreParserIdentifier GetNextSymbol(Scanner* scanner) { 800 static PreParserIdentifier GetNextSymbol(Scanner* scanner) {
801 return PreParserIdentifier::Default(); 801 return PreParserIdentifier::Default();
802 } 802 }
803 803
804 static PreParserExpression ThisExpression(Scope* scope, 804 static PreParserExpression ThisExpression(PreParserFactory* factory,
805 PreParserFactory* factory,
806 int pos) { 805 int pos) {
807 return PreParserExpression::This(); 806 return PreParserExpression::This();
808 } 807 }
809 808
810 static PreParserExpression NewSuperPropertyReference( 809 static PreParserExpression NewSuperPropertyReference(
811 Scope* scope, PreParserFactory* factory, int pos) { 810 PreParserFactory* factory, int pos) {
812 return PreParserExpression::Default(); 811 return PreParserExpression::Default();
813 } 812 }
814 813
815 static PreParserExpression NewSuperCallReference(Scope* scope, 814 static PreParserExpression NewSuperCallReference(PreParserFactory* factory,
816 PreParserFactory* factory,
817 int pos) { 815 int pos) {
818 return PreParserExpression::SuperCallReference(); 816 return PreParserExpression::SuperCallReference();
819 } 817 }
820 818
821 static PreParserExpression NewTargetExpression(Scope* scope, 819 static PreParserExpression NewTargetExpression(PreParserFactory* factory,
822 PreParserFactory* factory,
823 int pos) { 820 int pos) {
824 return PreParserExpression::Default(); 821 return PreParserExpression::Default();
825 } 822 }
826 823
827 static PreParserExpression FunctionSentExpression(Scope* scope, 824 static PreParserExpression FunctionSentExpression(PreParserFactory* factory,
828 PreParserFactory* factory,
829 int pos) { 825 int pos) {
830 return PreParserExpression::Default(); 826 return PreParserExpression::Default();
831 } 827 }
832 828
833 static PreParserExpression ExpressionFromLiteral( 829 static PreParserExpression ExpressionFromLiteral(
834 Token::Value token, int pos, Scanner* scanner, 830 Token::Value token, int pos, Scanner* scanner,
835 PreParserFactory* factory) { 831 PreParserFactory* factory) {
836 return PreParserExpression::Default(); 832 return PreParserExpression::Default();
837 } 833 }
838 834
839 static PreParserExpression ExpressionFromIdentifier( 835 static PreParserExpression ExpressionFromIdentifier(
840 PreParserIdentifier name, int start_position, int end_position, 836 PreParserIdentifier name, int start_position, int end_position,
841 Scope* scope, PreParserFactory* factory) { 837 PreParserFactory* factory) {
842 return PreParserExpression::FromIdentifier(name); 838 return PreParserExpression::FromIdentifier(name);
843 } 839 }
844 840
845 PreParserExpression ExpressionFromString(int pos, 841 PreParserExpression ExpressionFromString(int pos,
846 Scanner* scanner, 842 Scanner* scanner,
847 PreParserFactory* factory = NULL); 843 PreParserFactory* factory = NULL);
848 844
849 PreParserExpression GetIterator(PreParserExpression iterable, 845 PreParserExpression GetIterator(PreParserExpression iterable,
850 PreParserFactory* factory, int pos) { 846 PreParserFactory* factory, int pos) {
851 return PreParserExpression::Default(); 847 return PreParserExpression::Default();
(...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after
1264 const PreParserFormalParameters& parameters, FunctionKind kind, 1260 const PreParserFormalParameters& parameters, FunctionKind kind,
1265 FunctionLiteral::FunctionType function_type, bool* ok) { 1261 FunctionLiteral::FunctionType function_type, bool* ok) {
1266 return pre_parser_->ParseEagerFunctionBody(function_name, pos, parameters, 1262 return pre_parser_->ParseEagerFunctionBody(function_name, pos, parameters,
1267 kind, function_type, ok); 1263 kind, function_type, ok);
1268 } 1264 }
1269 1265
1270 } // namespace internal 1266 } // namespace internal
1271 } // namespace v8 1267 } // namespace v8
1272 1268
1273 #endif // V8_PARSING_PREPARSER_H 1269 #endif // V8_PARSING_PREPARSER_H
OLDNEW
« no previous file with comments | « src/parsing/parser-base.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698